{"_id":"@aws-sdk/client-cloudhsm-v2-node","_rev":"19-a2143b323bf3a7bc8014d9d17e1cca84","name":"@aws-sdk/client-cloudhsm-v2-node","dist-tags":{"latest":"0.1.0-preview.2","preview":"0.1.0-preview.6"},"versions":{"0.1.0-preview.2":{"name":"@aws-sdk/client-cloudhsm-v2-node","version":"0.1.0-preview.2","author":{"url":"https://aws.amazon.com/javascript/","name":"AWS SDK for JavaScript Team"},"license":"Apache-2.0","_id":"@aws-sdk/client-cloudhsm-v2-node@0.1.0-preview.2","maintainers":[{"name":"trivikr-aws","email":"trivikr@amazon.com"},{"name":"aws-sdk-bot","email":"aws-sdk-js@amazon.com"},{"name":"zheallan","email":"zheallan@amazon.com"},{"name":"amzn-oss","email":"osa-3p@amazon.com"}],"dist":{"shasum":"9cd3bbab94786a41fd5a39587a2fe3af25f02a94","tarball":"https://registry.npmjs.org/@aws-sdk/client-cloudhsm-v2-node/-/client-cloudhsm-v2-node-0.1.0-preview.2.tgz","fileCount":395,"integrity":"sha512-RL5rUJFz2vy+O2sRTaQgBY+F+3eWJryvKyyeoTonlPxEH3v39huE+PSKk0eaLLmaQUfdjZG9EWoNHvF1CUJ6Mg==","signatures":[{"sig":"MEYCIQDzk3OF3QTJxKMQAEF6WR/lJjK8w26em8iVc+ZOo6y23QIhALqUf5B8C2yuunEUdRd2tE3IXcSvZjW0buNY+vbcEjX1","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":253057,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJddpBRCRA9TVsSAnZWagAAnUgQAIKJbqjIu/YedwHEn+Bc\nlGGDANQcuoeMI2BiYKgYkfTXdXTDZVG2oFl0d8IUILF+7q+svLRZzL0VRchv\n4LYLo6/7YCpzByKyGdCKa3rdzZxAqgSKPfEtjqK4E6LsMBsNCbhBsIVjog5k\nogEsUZ0SCLqSwZsIU9UnTHEXe/wQtInKPbY01Pn/TPMDZQ02KmAM3ml8hvNj\n6pj6vWkNN9suthgW34PyaNjaJi71Owheq8dpAs8J6W3Lv9n9NSvyZznzxBxa\n8gyNZV8f5oADNQO/IVQxzdIgu1peK+fe9rVbNdRfZ8VxCiV8rGXfEowAhCXA\nie+Cj4gPyI9mlib6yRBq97Z0nZm6F5yK2UqFi2gYbYO2Lfo0FaTgjTiFBvuc\n+Tqw16NmDqJMBr8CwTjZ7ob7xa6H2+KctbCn38fQHdoDi3wmKufIbvr68GiP\nvM7PiOtuoadGVETUDuKIrAUDzNXEl7VURFkupcolZxtdJnXp2b8VR8fmnHUL\nRvKvmhuWwphqRe7UE4oJiMdD5WLtiJ3tmsEusR0OoKACzR3MfDUa2MpxOrRM\n4SMTjblupJncIm+HFLOI1Lljxj1tRYQGky8oRVuRwKVzo14HaHIrKBxLaHVw\n9mEbIvOgxuPvpDiYtblJhTkfZ6QPatdEpaoHF784nTmabjuYZKEFgZYP0HdI\nYV0+\r\n=waZu\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./index.js","types":"./index.d.ts","scripts":{"test":"exit 0","clean":"npm run remove-definitions && npm run remove-maps && npm run remove-js","pretest":"tsc","remove-js":"rimraf *.js && rimraf ./commands/*.js && rimraf ./model/*.js && rimraf ./types/*.js","smoke-test":"npm run pretest && node ./test/smoke/index.spec.js","remove-maps":"rimraf *.js.map && rimraf ./commands/*.js.map && rimraf ./model/*.js.map && rimraf ./types/*.js.map","prepublishOnly":"tsc","remove-definitions":"rimraf *.d.ts && rimraf ./commands/*.d.ts && rimraf ./model/*.d.ts rimraf ./types/*.d.ts","build-documentation":"npm run clean && typedoc ./","remove-documentation":"rimraf ./docs"},"_npmUser":{"name":"aws-sdk-bot","email":"aws-sdk-js@amazon.com"},"deprecated":"The package @aws-sdk/client-cloudhsm-v2-node has been renamed to @aws-sdk/client-cloudhsm-v2. Please install the renamed package.","_npmVersion":"6.9.0","description":"Node SDK for AWS CloudHSM V2","directories":{},"_nodeVersion":"10.1.0","dependencies":{"tslib":"^1.8.0","@aws-sdk/types":"^0.1.0-preview.5","@aws-sdk/hash-node":"^0.1.0-preview.5","@aws-sdk/json-parser":"^0.1.0-preview.5","@aws-sdk/core-handler":"^0.1.0-preview.5","@aws-sdk/json-builder":"^0.1.0-preview.5","@aws-sdk/signature-v4":"^0.1.0-preview.6","@aws-sdk/util-utf8-node":"^0.1.0-preview.3","@aws-sdk/config-resolver":"^0.1.0-preview.5","@aws-sdk/region-provider":"^0.1.0-preview.5","@aws-sdk/url-parser-node":"^0.1.0-preview.5","@aws-sdk/middleware-stack":"^0.1.0-preview.6","@aws-sdk/retry-middleware":"^0.1.0-preview.5","@aws-sdk/util-base64-node":"^0.1.0-preview.3","@aws-sdk/node-http-handler":"^0.1.0-preview.6","@aws-sdk/protocol-json-rpc":"^0.1.0-preview.6","@aws-sdk/signing-middleware":"^0.1.0-preview.6","@aws-sdk/util-user-agent-node":"^0.1.0-preview.6","@aws-sdk/middleware-serializer":"^0.1.0-preview.5","@aws-sdk/stream-collector-node":"^0.1.0-preview.5","@aws-sdk/util-body-length-node":"^0.1.0-preview.4","@aws-sdk/json-error-unmarshaller":"^0.1.0-preview.6","@aws-sdk/credential-provider-node":"^0.1.0-preview.6","@aws-sdk/middleware-content-length":"^0.1.0-preview.5","@aws-sdk/middleware-header-default":"^0.1.0-preview.5"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^24.7.1","rimraf":"^2.6.2","typedoc":"^0.14.2","typescript":"~3.4.0","@types/jest":"^24.0.12","@types/node":"^10.0.0","@aws-sdk/client-documentation-generator":"^0.1.0-preview.3"},"_npmOperationalInternal":{"tmp":"tmp/client-cloudhsm-v2-node_0.1.0-preview.2_1568051280157_0.1621453981606571","host":"s3://npm-registry-packages"}},"0.1.0-preview.3":{"name":"@aws-sdk/client-cloudhsm-v2-node","version":"0.1.0-preview.3","author":{"url":"https://aws.amazon.com/javascript/","name":"AWS SDK for JavaScript Team"},"license":"Apache-2.0","_id":"@aws-sdk/client-cloudhsm-v2-node@0.1.0-preview.3","maintainers":[{"name":"amzn-oss","email":"osa-3p@amazon.com"},{"name":"aws-sdk-bot","email":"aws-sdk-js@amazon.com"},{"name":"trivikr-aws","email":"trivikr@amazon.com"},{"name":"zheallan","email":"zheallan@amazon.com"}],"dist":{"shasum":"78ebb3edeb7a49410bc170a966046bd253dd7f98","tarball":"https://registry.npmjs.org/@aws-sdk/client-cloudhsm-v2-node/-/client-cloudhsm-v2-node-0.1.0-preview.3.tgz","fileCount":395,"integrity":"sha512-I2/n9kJoZ8IjFc4qRfVovHIb9qL9CfK0e06tSZr/z5p88sHwwhcuTWNzJ8HGova0OSq5RKZIU4ahz+DhNGuHPQ==","signatures":[{"sig":"MEUCICxAkuMr6pRrfqGDITy7NftFbMWjChn1fD0XjJGBeQ9jAiEA6BRzgfGwI0ZF/fDUqgVpAkhrVFeLmOB0OjG6c1u7Flk=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":247240,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdg6ZuCRA9TVsSAnZWagAAN00P+wa3b/x29ICYfOWGoP+H\n/9BM+141UwS7XEklKYryVlsfJ/RjTGnd7xbQ1+q/Pyk3G5ZLatLHXjzHJBai\nqmPyVNPpHRf43/JZdLpK8BHeCpW8lYxmaKZ2432YDoPaxw576oie35i0krxa\nHkTgzdKlT0Oh3JzgYCfJTFdhzBFzcPVUDjhMY5PDQtQN2pPb0VEv1pMDZiWz\naYbAZohH9LLh4HivEvYy2+uqGVCAjB3n/0xRvnKGBD9KmiC7Iwqzk+GB2eYp\nh+bP7WTnMZXGsY71uPDsvuUj7GSY/QnQUB0cnRRTbsaCBK8lk455rFHXT1he\nhIvTaUQkGNo9hXa8tQyHJAtQspVMNUo4QjD6+QGUw3tVahuHfxoba7xvjUwF\nehT4rj+PDl42lPKaEl+yVH37hmwqv+WsuaRkBXvFdzjcWY1VKZQJR43GmYc+\n8bwCKSlYMVxcteeok5vcnH3BKMjfycPBdXdO5CuI/Q4wQKqRg90licCRJiuC\nJlbxqJeKAlc9gsScxJ3i6EI5yXcGYyDX3i/n42RkAVyR8J0KWl7D+iLE5xbr\npSLO+N3RKUS8j5jZR1ZHM/iB3x10EgDfFZBrA17IhqaUfJlcWkEPNkngNDl8\nKETYSkYvjlx52BJc7XOyK1wZKg3pl7XIO1t6SGTDEGu/idSmTqm+uYGVEhmr\nZ3LI\r\n=FmvD\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./index.js","types":"./index.d.ts","readme":"# @aws-sdk/client-cloudhsm-v2-node\n\n[![NPM version](https://img.shields.io/npm/v/@aws-sdk/client-cloudhsm-v2-node/preview.svg)](https://www.npmjs.com/package/@aws-sdk/client-cloudhsm-v2-node)\n[![NPM downloads](https://img.shields.io/npm/dm/@aws-sdk/client-cloudhsm-v2-node.svg)](https://www.npmjs.com/package/@aws-sdk/client-cloudhsm-v2-node)\n\n## Description\n\n<p>For more information about AWS CloudHSM, see <a href=\"http://aws.amazon.com/cloudhsm/\">AWS CloudHSM</a> and the <a href=\"http://docs.aws.amazon.com/cloudhsm/latest/userguide/\">AWS CloudHSM User Guide</a>.</p>\n\n## Installing\n\nTo install the this package using NPM, simply type the following into a terminal window:\n\n```\nnpm install @aws-sdk/client-cloudhsm-v2-node\n```\n\n## Getting Started\n\n### Import\n\nThe AWS SDK is modulized by clients and commands in CommonJS modules. To send a request, you only need to import the client(`CloudHSMV2Client`) and the commands you need, for example `CopyBackupToRegionCommand`:\n\n```javascript\n//JavaScript\nconst {\n  CloudHSMV2Client\n} = require(\"@aws-sdk/client-cloudhsm-v2-node/CloudHSMV2Client\");\nconst {\n  CopyBackupToRegionCommand\n} = require(\"@aws-sdk/client-cloudhsm-v2-node/commands/CopyBackupToRegionCommand\");\n```\n\n```javascript\n//TypeScript\nimport { CloudHSMV2Client } from \"@aws-sdk/client-cloudhsm-v2-node/CloudHSMV2Client\";\nimport { CopyBackupToRegionCommand } from \"@aws-sdk/client-cloudhsm-v2-node/commands/CopyBackupToRegionCommand\";\n```\n\n### Usage\n\nTo send a request, you:\n\n- Initiate client with configuration (e.g. credentials, region). For more information you can refer to the [API reference][].\n- Initiate command with input parameters.\n- Call `send` operation on client with command object as input.\n- If you are using a custom http handler, you may call `destroy()` to close open connections.\n\n```javascript\nconst cloudHSMV2 = new CloudHSMV2Client({region: 'region'});\n//clients can be shared by different commands\nconst params = {\n  DestinationRegion: /**a string value*/,\n  BackupId: /**a string value*/,\n};\nconst copyBackupToRegionCommand = new CopyBackupToRegionCommand(params);\ncloudHSMV2.send(copyBackupToRegionCommand).then(data => {\n    // do something\n}).catch(error => {\n    // error handling\n})\n```\n\nIn addition to using promises, there are 2 other ways to send a request:\n\n```javascript\n// async/await\ntry {\n  const data = await cloudHSMV2.send(copyBackupToRegionCommand);\n  // do something\n} catch (error) {\n  // error handling\n}\n```\n\n```javascript\n// callback\ncloudHSMV2.send(copyBackupToRegionCommand, (err, data) => {\n  //do something\n});\n```\n\nThe SDK can also send requests using the simplified callback style from version 2 of the SDK.\n\n```javascript\nimport * as AWS from \"@aws-sdk/@aws-sdk/client-cloudhsm-v2-node/CloudHSMV2\";\nconst cloudHSMV2 = new AWS.CloudHSMV2({ region: \"region\" });\ncloudHSMV2.copyBackupToRegion(params, (err, data) => {\n  //do something\n});\n```\n\n### Troubleshooting\n\nWhen the service returns an exception, the error will include the exception information, as well as response metadata (e.g. request id).\n\n```javascript\ntry {\n  const data = await cloudHSMV2.send(copyBackupToRegionCommand);\n  // do something\n} catch (error) {\n  const metadata = error.$metadata;\n  console.log(\n    `requestId: ${metadata.requestId}\ncfId: ${metadata.cfId}\nextendedRequestId: ${metadata.extendedRequestId}`\n  );\n  /*\nThe keys within exceptions are also parsed. You can access them by specifying exception names:\n    if(error.name === 'SomeServiceException') {\n        const value = error.specialKeyInException;\n    }\n*/\n}\n```\n\n## Getting Help\n\nPlease use these community resources for getting help. We use the GitHub issues for tracking bugs and feature requests and have limited bandwidth to address them.\n\n- Ask a question on [StackOverflow](https://stackoverflow.com/questions/tagged/aws-sdk-js) and tag it with `aws-sdk-js`\n- Come join the AWS JavaScript community on [gitter](https://gitter.im/aws/aws-sdk-js-v3)\n- If it turns out that you may have found a bug, please [open an issue](https://github.com/aws/aws-sdk-js-v3/issues)\n\n## Contributing\n\nThis client code is generated automatically. Any modifications will be overwritten the next time the `@aws-sdk/@aws-sdk/client-cloudhsm-v2-node' package is updated. To contribute to SDK you can checkout our [code generator package][].\n\n## License\n\nThis SDK is distributed under the\n[Apache License, Version 2.0](http://www.apache.org/licenses/LICENSE-2.0),\nsee LICENSE for more information.\n\n[code generator package]: https://github.com/aws/aws-sdk-js-v3/tree/master/packages/service-types-generator\n[api reference]: https://docs.aws.amazon.com/AWSJavaScriptSDK/latest/\n","scripts":{"test":"exit 0","clean":"npm run remove-definitions && npm run remove-maps && npm run remove-js","pretest":"tsc","remove-js":"rimraf *.js && rimraf ./commands/*.js && rimraf ./model/*.js && rimraf ./types/*.js","smoke-test":"npm run pretest && node ./test/smoke/index.spec.js","remove-maps":"rimraf *.js.map && rimraf ./commands/*.js.map && rimraf ./model/*.js.map && rimraf ./types/*.js.map","prepublishOnly":"tsc","remove-definitions":"rimraf *.d.ts && rimraf ./commands/*.d.ts && rimraf ./model/*.d.ts rimraf ./types/*.d.ts","build-documentation":"npm run clean && typedoc ./","remove-documentation":"rimraf ./docs"},"_npmUser":{"name":"aws-sdk-bot","email":"aws-sdk-js@amazon.com"},"deprecated":"The package @aws-sdk/client-cloudhsm-v2-node has been renamed to @aws-sdk/client-cloudhsm-v2. Please install the renamed package.","_npmVersion":"6.9.0","description":"Node SDK for AWS CloudHSM V2","directories":{},"_nodeVersion":"10.1.0","dependencies":{"tslib":"^1.8.0","@aws-sdk/types":"^0.1.0-preview.5","@aws-sdk/hash-node":"^0.1.0-preview.6","@aws-sdk/json-parser":"^0.1.0-preview.5","@aws-sdk/core-handler":"^0.1.0-preview.5","@aws-sdk/json-builder":"^0.1.0-preview.5","@aws-sdk/signature-v4":"^0.1.0-preview.7","@aws-sdk/util-utf8-node":"^0.1.0-preview.4","@aws-sdk/config-resolver":"^0.1.0-preview.5","@aws-sdk/region-provider":"^0.1.0-preview.5","@aws-sdk/url-parser-node":"^0.1.0-preview.6","@aws-sdk/middleware-stack":"^0.1.0-preview.6","@aws-sdk/retry-middleware":"^0.1.0-preview.5","@aws-sdk/util-base64-node":"^0.1.0-preview.4","@aws-sdk/node-http-handler":"^0.1.0-preview.6","@aws-sdk/protocol-json-rpc":"^0.1.0-preview.6","@aws-sdk/signing-middleware":"^0.1.0-preview.7","@aws-sdk/util-user-agent-node":"^0.1.0-preview.7","@aws-sdk/middleware-serializer":"^0.1.0-preview.5","@aws-sdk/stream-collector-node":"^0.1.0-preview.6","@aws-sdk/util-body-length-node":"^0.1.0-preview.5","@aws-sdk/json-error-unmarshaller":"^0.1.0-preview.6","@aws-sdk/credential-provider-node":"^0.1.0-preview.7","@aws-sdk/middleware-content-length":"^0.1.0-preview.5","@aws-sdk/middleware-header-default":"^0.1.0-preview.5"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^24.7.1","rimraf":"^2.6.2","typedoc":"^0.14.2","typescript":"~3.4.0","@types/jest":"^24.0.12","@types/node":"^10.0.0","@aws-sdk/client-documentation-generator":"^0.1.0-preview.3"},"_npmOperationalInternal":{"tmp":"tmp/client-cloudhsm-v2-node_0.1.0-preview.3_1568908909410_0.8952805043057792","host":"s3://npm-registry-packages"}},"0.1.0-preview.4":{"name":"@aws-sdk/client-cloudhsm-v2-node","version":"0.1.0-preview.4","author":{"url":"https://aws.amazon.com/javascript/","name":"AWS SDK for JavaScript Team"},"license":"Apache-2.0","_id":"@aws-sdk/client-cloudhsm-v2-node@0.1.0-preview.4","maintainers":[{"name":"amzn-oss","email":"osa-3p@amazon.com"},{"name":"aws-sdk-bot","email":"aws-sdk-js@amazon.com"},{"name":"trivikr-aws","email":"trivikr@amazon.com"},{"name":"zheallan","email":"zheallan@amazon.com"}],"dist":{"shasum":"cc78f140d2c7fd5cf0422272b28a2eb8f8656d7b","tarball":"https://registry.npmjs.org/@aws-sdk/client-cloudhsm-v2-node/-/client-cloudhsm-v2-node-0.1.0-preview.4.tgz","fileCount":395,"integrity":"sha512-AhePAJ7e9Y88OLJhKNb+igSdm2+qkUae5e3GF7No9XR/EoYY167hle0qNNrq1k1OaX/FtGH/ERQpum9y/vNFIw==","signatures":[{"sig":"MEYCIQC4uaZK9xpWuEBQYHt4jvFAYRAcRrggviJ9NNBH0KOJRQIhAK6oCoL3G+gN1CsbkSKiQHPxXdrEH6lKeg9GgTVJc5z+","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":247257,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJduNApCRA9TVsSAnZWagAA2r8P+wTXg5EfpOYzvtCx5elY\nWGf4bjalNbkvcgr0NUrIFAyVkl8C2am1EN/stsf60w6EBcmiLbjfFXX+CyUR\nI60ksd4e9xd453/8Ur+JNdazYEJOs9AA38A+wt44MvkIf0ccIyscJtO1g/iI\n4dv9NJbr5wydpkEr9xOkYHkupda6BRb72tcBY2UtnSL2paUCuRSRK6QI6AwM\nK949gNjGtOPBqvY5xjC9J4eUW1/1mcCHE5vkIe9f5xYPYU7yi/+CcjxNdOX/\n8uO91twCKtQSDrFfNqdfHLZ77X+zMNyWxL42jmsgL/38rgcQ+L+2s3ofJUpN\nnSnalP44PwIYPDlVAKnyd6JIT02OFQ2GZ+AgnEg+vUoCjd/zTUraJOvDxLIo\nK1R/m8wxXWI6p3Wd2/Up4UPo9VuZjRqHaX6k6hjYNk0jVK3nYnim1x3qLYXR\nzEQaYY3wi8FR0YpLwTANeN45hpZGdJiajuAtvM93Vqty1yNmcFjZVuad5TpA\nSmufoGO0FZC63YOBlol2/9vBEzeT8r2JWkCh/NoCnxVnnAY9Mu99ozP5c3O2\naf9Xsr9i1DlGktfv92RdJLQjt1XDrkU2FnGeqfIRKX90qTmN2wrEOuQ6SaXy\ngEd27Mck8bYzf5UULc4/dSYcvfgDPW4z+UH9ZgsyN+veb3xgGWTpU9Ewulmq\nzhTt\r\n=WHNN\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./index.js","types":"./index.d.ts","readme":"# @aws-sdk/client-cloudhsm-v2-node\n\n[![NPM version](https://img.shields.io/npm/v/@aws-sdk/client-cloudhsm-v2-node/preview.svg)](https://www.npmjs.com/package/@aws-sdk/client-cloudhsm-v2-node)\n[![NPM downloads](https://img.shields.io/npm/dm/@aws-sdk/client-cloudhsm-v2-node.svg)](https://www.npmjs.com/package/@aws-sdk/client-cloudhsm-v2-node)\n\n## Description\n\n<p>For more information about AWS CloudHSM, see <a href=\"http://aws.amazon.com/cloudhsm/\">AWS CloudHSM</a> and the <a href=\"http://docs.aws.amazon.com/cloudhsm/latest/userguide/\">AWS CloudHSM User Guide</a>.</p>\n\n## Installing\n\nTo install the this package using NPM, simply type the following into a terminal window:\n\n```\nnpm install @aws-sdk/client-cloudhsm-v2-node\n```\n\n## Getting Started\n\n### Import\n\nThe AWS SDK is modulized by clients and commands in CommonJS modules. To send a request, you only need to import the client(`CloudHSMV2Client`) and the commands you need, for example `CopyBackupToRegionCommand`:\n\n```javascript\n//JavaScript\nconst {\n  CloudHSMV2Client,\n  CopyBackupToRegionCommand\n} = require(\"@aws-sdk/client-cloudhsm-v2-node\");\n```\n\n```javascript\n//TypeScript\nimport {\n  CloudHSMV2Client,\n  CopyBackupToRegionCommand\n} from \"@aws-sdk/client-cloudhsm-v2-node\";\n```\n\n### Usage\n\nTo send a request, you:\n\n- Initiate client with configuration (e.g. credentials, region). For more information you can refer to the [API reference][].\n- Initiate command with input parameters.\n- Call `send` operation on client with command object as input.\n- If you are using a custom http handler, you may call `destroy()` to close open connections.\n\n```javascript\nconst cloudHSMV2 = new CloudHSMV2Client({region: 'region'});\n//clients can be shared by different commands\nconst params = {\n  DestinationRegion: /**a string value*/,\n  BackupId: /**a string value*/,\n};\nconst copyBackupToRegionCommand = new CopyBackupToRegionCommand(params);\ncloudHSMV2.send(copyBackupToRegionCommand).then(data => {\n    // do something\n}).catch(error => {\n    // error handling\n})\n```\n\nIn addition to using promises, there are 2 other ways to send a request:\n\n```javascript\n// async/await\ntry {\n  const data = await cloudHSMV2.send(copyBackupToRegionCommand);\n  // do something\n} catch (error) {\n  // error handling\n}\n```\n\n```javascript\n// callback\ncloudHSMV2.send(copyBackupToRegionCommand, (err, data) => {\n  //do something\n});\n```\n\nThe SDK can also send requests using the simplified callback style from version 2 of the SDK.\n\n```javascript\nimport * as AWS from \"@aws-sdk/client-cloudhsm-v2-node\";\nconst cloudHSMV2 = new AWS.CloudHSMV2({ region: \"region\" });\ncloudHSMV2.copyBackupToRegion(params, (err, data) => {\n  //do something\n});\n```\n\n### Troubleshooting\n\nWhen the service returns an exception, the error will include the exception information, as well as response metadata (e.g. request id).\n\n```javascript\ntry {\n  const data = await cloudHSMV2.send(copyBackupToRegionCommand);\n  // do something\n} catch (error) {\n  const metadata = error.$metadata;\n  console.log(\n    `requestId: ${metadata.requestId}\ncfId: ${metadata.cfId}\nextendedRequestId: ${metadata.extendedRequestId}`\n  );\n  /*\nThe keys within exceptions are also parsed. You can access them by specifying exception names:\n    if(error.name === 'SomeServiceException') {\n        const value = error.specialKeyInException;\n    }\n*/\n}\n```\n\n## Getting Help\n\nPlease use these community resources for getting help. We use the GitHub issues for tracking bugs and feature requests and have limited bandwidth to address them.\n\n- Ask a question on [StackOverflow](https://stackoverflow.com/questions/tagged/aws-sdk-js) and tag it with `aws-sdk-js`\n- Come join the AWS JavaScript community on [gitter](https://gitter.im/aws/aws-sdk-js-v3)\n- If it turns out that you may have found a bug, please [open an issue](https://github.com/aws/aws-sdk-js-v3/issues)\n\n## Contributing\n\nThis client code is generated automatically. Any modifications will be overwritten the next time the `@aws-sdk/@aws-sdk/client-cloudhsm-v2-node' package is updated. To contribute to SDK you can checkout our [code generator package][].\n\n## License\n\nThis SDK is distributed under the\n[Apache License, Version 2.0](http://www.apache.org/licenses/LICENSE-2.0),\nsee LICENSE for more information.\n\n[code generator package]: https://github.com/aws/aws-sdk-js-v3/tree/master/packages/service-types-generator\n[api reference]: https://docs.aws.amazon.com/AWSJavaScriptSDK/latest/\n","scripts":{"test":"exit 0","clean":"npm run remove-definitions && npm run remove-maps && npm run remove-js","pretest":"tsc","remove-js":"rimraf *.js && rimraf ./commands/*.js && rimraf ./model/*.js && rimraf ./types/*.js","smoke-test":"npm run pretest && node ./test/smoke/index.spec.js","remove-maps":"rimraf *.js.map && rimraf ./commands/*.js.map && rimraf ./model/*.js.map && rimraf ./types/*.js.map","prepublishOnly":"tsc","remove-definitions":"rimraf *.d.ts && rimraf ./commands/*.d.ts && rimraf ./model/*.d.ts rimraf ./types/*.d.ts","build-documentation":"npm run clean && typedoc ./","remove-documentation":"rimraf ./docs"},"_npmUser":{"name":"aws-sdk-bot","email":"aws-sdk-js@amazon.com"},"deprecated":"The package @aws-sdk/client-cloudhsm-v2-node has been renamed to @aws-sdk/client-cloudhsm-v2. Please install the renamed package.","_npmVersion":"6.9.0","description":"Node SDK for AWS CloudHSM V2","directories":{},"_nodeVersion":"10.1.0","dependencies":{"tslib":"^1.8.0","@aws-sdk/types":"^0.1.0-preview.6","@aws-sdk/hash-node":"^0.1.0-preview.7","@aws-sdk/json-parser":"^0.1.0-preview.6","@aws-sdk/core-handler":"^0.1.0-preview.6","@aws-sdk/json-builder":"^0.1.0-preview.6","@aws-sdk/signature-v4":"^0.1.0-preview.8","@aws-sdk/util-utf8-node":"^0.1.0-preview.4","@aws-sdk/config-resolver":"^0.1.0-preview.6","@aws-sdk/region-provider":"^0.1.0-preview.6","@aws-sdk/url-parser-node":"^0.1.0-preview.7","@aws-sdk/middleware-stack":"^0.1.0-preview.7","@aws-sdk/retry-middleware":"^0.1.0-preview.6","@aws-sdk/util-base64-node":"^0.1.0-preview.4","@aws-sdk/node-http-handler":"^0.1.0-preview.7","@aws-sdk/protocol-json-rpc":"^0.1.0-preview.7","@aws-sdk/signing-middleware":"^0.1.0-preview.8","@aws-sdk/util-user-agent-node":"^0.1.0-preview.8","@aws-sdk/middleware-serializer":"^0.1.0-preview.6","@aws-sdk/stream-collector-node":"^0.1.0-preview.7","@aws-sdk/util-body-length-node":"^0.1.0-preview.5","@aws-sdk/json-error-unmarshaller":"^0.1.0-preview.7","@aws-sdk/credential-provider-node":"^0.1.0-preview.8","@aws-sdk/middleware-content-length":"^0.1.0-preview.6","@aws-sdk/middleware-header-default":"^0.1.0-preview.6"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^24.7.1","rimraf":"^2.6.2","typedoc":"^0.14.2","typescript":"~3.4.0","@types/jest":"^24.0.12","@types/node":"^10.0.0","@aws-sdk/client-documentation-generator":"^0.1.0-preview.3"},"_npmOperationalInternal":{"tmp":"tmp/client-cloudhsm-v2-node_0.1.0-preview.4_1572393000975_0.05873130814948757","host":"s3://npm-registry-packages"}},"0.1.0-preview.5":{"name":"@aws-sdk/client-cloudhsm-v2-node","version":"0.1.0-preview.5","author":{"url":"https://aws.amazon.com/javascript/","name":"AWS SDK for JavaScript Team"},"license":"Apache-2.0","_id":"@aws-sdk/client-cloudhsm-v2-node@0.1.0-preview.5","maintainers":[{"name":"amzn-oss","email":"osa-3p@amazon.com"},{"name":"aws-sdk-bot","email":"aws-sdk-js@amazon.com"},{"name":"trivikr-aws","email":"trivikr@amazon.com"},{"name":"zheallan","email":"zheallan@amazon.com"}],"dist":{"shasum":"02eed706784a0c78fddef9f84ab3e899f49757ac","tarball":"https://registry.npmjs.org/@aws-sdk/client-cloudhsm-v2-node/-/client-cloudhsm-v2-node-0.1.0-preview.5.tgz","fileCount":395,"integrity":"sha512-Xg6L63XrQv2fe2OlNqR6kdhR2JO/i+ZAqjJpWoRgbLcWGpqHe3pYrD2dDEf8BdsdJ+zIoUEPDpZMekUNAXK4LA==","signatures":[{"sig":"MEQCIHfPINQu5Nc5I4i7I8LfUvpGmB/LfTMi3xOg5Gyjv/A3AiB5lgO2nTXm4TsJ48Gqo7sMKAiEGe9eyjHZLlONN7YD8Q==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":247501,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdueMqCRA9TVsSAnZWagAAskgQAI+yBBmzlC00m5P5GmuS\nSFcqVLMNId6c9thaGipS1v7SlsesKUwMnjgut3YREeriByuR3hJAO79G7o6r\nxdRjks0+Sku2W5T681Lpk6Yp8zRR5uz3EL4R4AYD4X05Js4jaWOh4JS7S3xm\niIYUMvNNisBAyf2WAMZ9I4IT9lZMeDZWGfOAwDwYEumLZD3IMw/9tqvOFnJu\n2Rdi8bPzc60AV98lSfrVEgrDONPeLfyxPBKH+Ks9uIbeOhcjmXI4d8Y3jfXD\n0c+jBVJithpc5ZrHJn8P1AUKXoTrp4/2mKvvPAvgSvkN8Clmi7oV0CHwDSGp\nSGravRCkbHlIj7xNzDYdFyD9lT1GOp0eDmPGRxVSfLIx2JqGvwGuzRlKY8gt\nV30HkssIfmK6irpMgs5l3AnC+BCJL+UfOmHEWhWuhL9va0HRHvYEyneCzBYV\nRPrCgo1EmhrbdgMriKQTacG+azMzq7ZZxG9hqrDF0uH6FZsgNdwFie3hCbsm\n11e7f0NfOoRUV605yhtUcaw+WeRk3ok6ykTWVH/B+GmsHPEd3PxHxDVFIuck\nbsieCux4lu7Uf11NnKvnxy2Fvl++XjiTsluzH2SV3HAmyy/eQHJE+9XIzukO\n1k2WfrA6OHOZ4KZGZw6ge8gUSPxuJWz2mCpdRXe7Jf2yGM4HJ6DSlPMiNY2r\n4gYX\r\n=iel8\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./index.js","types":"./index.d.ts","readme":"# @aws-sdk/client-cloudhsm-v2-node\n\n[![NPM version](https://img.shields.io/npm/v/@aws-sdk/client-cloudhsm-v2-node/preview.svg)](https://www.npmjs.com/package/@aws-sdk/client-cloudhsm-v2-node)\n[![NPM downloads](https://img.shields.io/npm/dm/@aws-sdk/client-cloudhsm-v2-node.svg)](https://www.npmjs.com/package/@aws-sdk/client-cloudhsm-v2-node)\n\n## Description\n\n<p>For more information about AWS CloudHSM, see <a href=\"http://aws.amazon.com/cloudhsm/\">AWS CloudHSM</a> and the <a href=\"http://docs.aws.amazon.com/cloudhsm/latest/userguide/\">AWS CloudHSM User Guide</a>.</p>\n\n## Installing\n\nTo install the this package using NPM, simply type the following into a terminal window:\n\n```\nnpm install @aws-sdk/client-cloudhsm-v2-node\n```\n\n## Getting Started\n\n### Import\n\nThe AWS SDK is modulized by clients and commands in CommonJS modules. To send a request, you only need to import the client(`CloudHSMV2Client`) and the commands you need, for example `CopyBackupToRegionCommand`:\n\n```javascript\n//JavaScript\nconst {\n  CloudHSMV2Client,\n  CopyBackupToRegionCommand\n} = require(\"@aws-sdk/client-cloudhsm-v2-node\");\n```\n\n```javascript\n//TypeScript\nimport {\n  CloudHSMV2Client,\n  CopyBackupToRegionCommand\n} from \"@aws-sdk/client-cloudhsm-v2-node\";\n```\n\n### Usage\n\nTo send a request, you:\n\n- Initiate client with configuration (e.g. credentials, region). For more information you can refer to the [API reference][].\n- Initiate command with input parameters.\n- Call `send` operation on client with command object as input.\n- If you are using a custom http handler, you may call `destroy()` to close open connections.\n\n```javascript\nconst cloudHSMV2 = new CloudHSMV2Client({region: 'region'});\n//clients can be shared by different commands\nconst params = {\n  DestinationRegion: /**a string value*/,\n  BackupId: /**a string value*/,\n};\nconst copyBackupToRegionCommand = new CopyBackupToRegionCommand(params);\ncloudHSMV2.send(copyBackupToRegionCommand).then(data => {\n    // do something\n}).catch(error => {\n    // error handling\n})\n```\n\nIn addition to using promises, there are 2 other ways to send a request:\n\n```javascript\n// async/await\ntry {\n  const data = await cloudHSMV2.send(copyBackupToRegionCommand);\n  // do something\n} catch (error) {\n  // error handling\n}\n```\n\n```javascript\n// callback\ncloudHSMV2.send(copyBackupToRegionCommand, (err, data) => {\n  //do something\n});\n```\n\nThe SDK can also send requests using the simplified callback style from version 2 of the SDK.\n\n```javascript\nimport * as AWS from \"@aws-sdk/client-cloudhsm-v2-node\";\nconst cloudHSMV2 = new AWS.CloudHSMV2({ region: \"region\" });\ncloudHSMV2.copyBackupToRegion(params, (err, data) => {\n  //do something\n});\n```\n\n### Troubleshooting\n\nWhen the service returns an exception, the error will include the exception information, as well as response metadata (e.g. request id).\n\n```javascript\ntry {\n  const data = await cloudHSMV2.send(copyBackupToRegionCommand);\n  // do something\n} catch (error) {\n  const metadata = error.$metadata;\n  console.log(\n    `requestId: ${metadata.requestId}\ncfId: ${metadata.cfId}\nextendedRequestId: ${metadata.extendedRequestId}`\n  );\n  /*\nThe keys within exceptions are also parsed. You can access them by specifying exception names:\n    if(error.name === 'SomeServiceException') {\n        const value = error.specialKeyInException;\n    }\n*/\n}\n```\n\n## Getting Help\n\nPlease use these community resources for getting help. We use the GitHub issues for tracking bugs and feature requests and have limited bandwidth to address them.\n\n- Ask a question on [StackOverflow](https://stackoverflow.com/questions/tagged/aws-sdk-js) and tag it with `aws-sdk-js`\n- Come join the AWS JavaScript community on [gitter](https://gitter.im/aws/aws-sdk-js-v3)\n- If it turns out that you may have found a bug, please [open an issue](https://github.com/aws/aws-sdk-js-v3/issues)\n\n## Contributing\n\nThis client code is generated automatically. Any modifications will be overwritten the next time the `@aws-sdk/@aws-sdk/client-cloudhsm-v2-node' package is updated. To contribute to SDK you can checkout our [code generator package][].\n\n## License\n\nThis SDK is distributed under the\n[Apache License, Version 2.0](http://www.apache.org/licenses/LICENSE-2.0),\nsee LICENSE for more information.\n\n[code generator package]: https://github.com/aws/aws-sdk-js-v3/tree/master/packages/service-types-generator\n[api reference]: https://docs.aws.amazon.com/AWSJavaScriptSDK/latest/\n","scripts":{"test":"exit 0","clean":"npm run remove-definitions && npm run remove-maps && npm run remove-js","pretest":"tsc","remove-js":"rimraf *.js && rimraf ./commands/*.js && rimraf ./model/*.js && rimraf ./types/*.js","smoke-test":"npm run pretest && node ./test/smoke/index.spec.js","remove-maps":"rimraf *.js.map && rimraf ./commands/*.js.map && rimraf ./model/*.js.map && rimraf ./types/*.js.map","prepublishOnly":"tsc","remove-definitions":"rimraf *.d.ts && rimraf ./commands/*.d.ts && rimraf ./model/*.d.ts rimraf ./types/*.d.ts","build-documentation":"npm run clean && typedoc ./","remove-documentation":"rimraf ./docs"},"_npmUser":{"name":"aws-sdk-bot","email":"aws-sdk-js@amazon.com"},"deprecated":"The package @aws-sdk/client-cloudhsm-v2-node has been renamed to @aws-sdk/client-cloudhsm-v2. Please install the renamed package.","_npmVersion":"6.9.0","description":"Node SDK for AWS CloudHSM V2","directories":{},"_nodeVersion":"10.1.0","dependencies":{"tslib":"^1.8.0","@aws-sdk/types":"^0.1.0-preview.7","@aws-sdk/hash-node":"^0.1.0-preview.8","@aws-sdk/json-parser":"^0.1.0-preview.7","@aws-sdk/core-handler":"^0.1.0-preview.7","@aws-sdk/json-builder":"^0.1.0-preview.7","@aws-sdk/signature-v4":"^0.1.0-preview.9","@aws-sdk/util-utf8-node":"^0.1.0-preview.4","@aws-sdk/config-resolver":"^0.1.0-preview.7","@aws-sdk/region-provider":"^0.1.0-preview.7","@aws-sdk/url-parser-node":"^0.1.0-preview.8","@aws-sdk/middleware-stack":"^0.1.0-preview.8","@aws-sdk/retry-middleware":"^0.1.0-preview.7","@aws-sdk/util-base64-node":"^0.1.0-preview.4","@aws-sdk/node-http-handler":"^0.1.0-preview.8","@aws-sdk/protocol-json-rpc":"^0.1.0-preview.8","@aws-sdk/signing-middleware":"^0.1.0-preview.9","@aws-sdk/util-user-agent-node":"^0.1.0-preview.9","@aws-sdk/middleware-serializer":"^0.1.0-preview.7","@aws-sdk/stream-collector-node":"^0.1.0-preview.8","@aws-sdk/util-body-length-node":"^0.1.0-preview.5","@aws-sdk/json-error-unmarshaller":"^0.1.0-preview.8","@aws-sdk/credential-provider-node":"^0.1.0-preview.9","@aws-sdk/middleware-content-length":"^0.1.0-preview.7","@aws-sdk/middleware-header-default":"^0.1.0-preview.7"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^24.7.1","rimraf":"^2.6.2","typedoc":"^0.14.2","typescript":"~3.4.0","@types/jest":"^24.0.12","@types/node":"^10.0.0","@aws-sdk/client-documentation-generator":"^0.1.0-preview.3"},"_npmOperationalInternal":{"tmp":"tmp/client-cloudhsm-v2-node_0.1.0-preview.5_1572463401940_0.4499510317985387","host":"s3://npm-registry-packages"}},"0.1.0-preview.6":{"name":"@aws-sdk/client-cloudhsm-v2-node","version":"0.1.0-preview.6","author":{"url":"https://aws.amazon.com/javascript/","name":"AWS SDK for JavaScript Team"},"license":"Apache-2.0","_id":"@aws-sdk/client-cloudhsm-v2-node@0.1.0-preview.6","maintainers":[{"name":"amzn-oss","email":"osa-3p@amazon.com"},{"name":"aws-sdk-bot","email":"aws-sdk-js@amazon.com"},{"name":"trivikr-aws","email":"trivikr@amazon.com"},{"name":"zheallan","email":"zheallan@amazon.com"}],"dist":{"shasum":"440fc990a8b01c6e8485870bff268e7c578383fc","tarball":"https://registry.npmjs.org/@aws-sdk/client-cloudhsm-v2-node/-/client-cloudhsm-v2-node-0.1.0-preview.6.tgz","fileCount":395,"integrity":"sha512-txpMhp49Nx6dRkfNsIfwZaeSWp2fPwdoWckjKaZ3ZVS9XhgIodPaqy/kvPBRZ889Nq1GWVEYCSfAmjO2LQ8nug==","signatures":[{"sig":"MEUCIDraQYowOkVRNMn/XpXRDEBTUVuM+5RBOnT/1lrBGWSCAiEA0sM6fCdH6Mjg013JbqlF1CPlI16tLULz+UqC2ILYnHs=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":247773,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd1FP6CRA9TVsSAnZWagAAPhYP/2TvN/K3+RtgjKMGw4uj\nSQZLjy2mipDOhU//5HdF80gVJq1NIH72uff5+zPxWew5ugxpcvOrZ7X6vfyP\nq/moQBSs1dAAboIQ0yDEDNd5C+36QYGI8a31ChwPqMZOE4GBi7rE5UfrrKCc\no/fs6eJgp3ajNjGWhMpkFI2nkDTkpkK9LwD8twtFgRn2b1dJnYBZXvWPF8ko\nUbC5e7XdCrwjzffMrCdu/7ZPjQ2ePVOp4Q3sKoDR9M1Gd57HGKGPWm4K4Tzp\nyFpbyNJxkVbN6pnddNIXXkvAnV7DdPfMVPQ+g9XqAg3AXBZ6SpvKKurY/iEy\nmiPgFdF8qqWDfywt9L+ekarwDG2307IACvGUsfDJW+gvTxzPNanQuoSZP9VJ\nZpiOYLc9d4UiI2BzxsxPOtBkUmlc1ey1nbL9h865okRFt56+uqZieRCHP2hK\n91o8Z9BtbbQWjmCTZrlonOcxND347srwqyIw3OA20fOdRRND3AdaAMN3P/D1\nwQyz+Pp0rr8Pi1zMLSXTEJ5a4zkSHiYXnqZOXAyH8BxJ0wTK9DDWwB6H4crV\nmPL1UAtkEfgYzwp63FgQLIVClrxNxdfKR7mdBKSRs1L2rKWAF8z7QuEBiLcU\ngl2GERhsSPpOaAPfIq6h+XNBDf+OBCe9fvpOPLF+VUhQTd9NBkx+hsz3kOxV\nGWVq\r\n=pbgp\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./index.js","types":"./index.d.ts","readme":"# @aws-sdk/client-cloudhsm-v2-node\n\n[![NPM version](https://img.shields.io/npm/v/@aws-sdk/client-cloudhsm-v2-node/preview.svg)](https://www.npmjs.com/package/@aws-sdk/client-cloudhsm-v2-node)\n[![NPM downloads](https://img.shields.io/npm/dm/@aws-sdk/client-cloudhsm-v2-node.svg)](https://www.npmjs.com/package/@aws-sdk/client-cloudhsm-v2-node)\n\n## Description\n\n<p>For more information about AWS CloudHSM, see <a href=\"http://aws.amazon.com/cloudhsm/\">AWS CloudHSM</a> and the <a href=\"http://docs.aws.amazon.com/cloudhsm/latest/userguide/\">AWS CloudHSM User Guide</a>.</p>\n\n## Installing\n\nTo install the this package using NPM, simply type the following into a terminal window:\n\n```\nnpm install @aws-sdk/client-cloudhsm-v2-node\n```\n\n## Getting Started\n\n### Import\n\nThe AWS SDK is modulized by clients and commands in CommonJS modules. To send a request, you only need to import the client(`CloudHSMV2Client`) and the commands you need, for example `CopyBackupToRegionCommand`:\n\n```javascript\n//JavaScript\nconst {\n  CloudHSMV2Client,\n  CopyBackupToRegionCommand\n} = require(\"@aws-sdk/client-cloudhsm-v2-node\");\n```\n\n```javascript\n//TypeScript\nimport {\n  CloudHSMV2Client,\n  CopyBackupToRegionCommand\n} from \"@aws-sdk/client-cloudhsm-v2-node\";\n```\n\n### Usage\n\nTo send a request, you:\n\n- Initiate client with configuration (e.g. credentials, region). For more information you can refer to the [API reference][].\n- Initiate command with input parameters.\n- Call `send` operation on client with command object as input.\n- If you are using a custom http handler, you may call `destroy()` to close open connections.\n\n```javascript\nconst cloudHSMV2 = new CloudHSMV2Client({region: 'region'});\n//clients can be shared by different commands\nconst params = {\n  DestinationRegion: /**a string value*/,\n  BackupId: /**a string value*/,\n};\nconst copyBackupToRegionCommand = new CopyBackupToRegionCommand(params);\ncloudHSMV2.send(copyBackupToRegionCommand).then(data => {\n    // do something\n}).catch(error => {\n    // error handling\n})\n```\n\nIn addition to using promises, there are 2 other ways to send a request:\n\n```javascript\n// async/await\ntry {\n  const data = await cloudHSMV2.send(copyBackupToRegionCommand);\n  // do something\n} catch (error) {\n  // error handling\n}\n```\n\n```javascript\n// callback\ncloudHSMV2.send(copyBackupToRegionCommand, (err, data) => {\n  //do something\n});\n```\n\nThe SDK can also send requests using the simplified callback style from version 2 of the SDK.\n\n```javascript\nimport * as AWS from \"@aws-sdk/client-cloudhsm-v2-node\";\nconst cloudHSMV2 = new AWS.CloudHSMV2({ region: \"region\" });\ncloudHSMV2.copyBackupToRegion(params, (err, data) => {\n  //do something\n});\n```\n\n### Troubleshooting\n\nWhen the service returns an exception, the error will include the exception information, as well as response metadata (e.g. request id).\n\n```javascript\ntry {\n  const data = await cloudHSMV2.send(copyBackupToRegionCommand);\n  // do something\n} catch (error) {\n  const metadata = error.$metadata;\n  console.log(\n    `requestId: ${metadata.requestId}\ncfId: ${metadata.cfId}\nextendedRequestId: ${metadata.extendedRequestId}`\n  );\n  /*\nThe keys within exceptions are also parsed. You can access them by specifying exception names:\n    if(error.name === 'SomeServiceException') {\n        const value = error.specialKeyInException;\n    }\n*/\n}\n```\n\n## Getting Help\n\nPlease use these community resources for getting help. We use the GitHub issues for tracking bugs and feature requests and have limited bandwidth to address them.\n\n- Ask a question on [StackOverflow](https://stackoverflow.com/questions/tagged/aws-sdk-js) and tag it with `aws-sdk-js`\n- Come join the AWS JavaScript community on [gitter](https://gitter.im/aws/aws-sdk-js-v3)\n- If it turns out that you may have found a bug, please [open an issue](https://github.com/aws/aws-sdk-js-v3/issues)\n\n## Contributing\n\nThis client code is generated automatically. Any modifications will be overwritten the next time the `@aws-sdk/@aws-sdk/client-cloudhsm-v2-node' package is updated. To contribute to SDK you can checkout our [code generator package][].\n\n## License\n\nThis SDK is distributed under the\n[Apache License, Version 2.0](http://www.apache.org/licenses/LICENSE-2.0),\nsee LICENSE for more information.\n\n[code generator package]: https://github.com/aws/aws-sdk-js-v3/tree/master/packages/service-types-generator\n[api reference]: https://docs.aws.amazon.com/AWSJavaScriptSDK/latest/\n","scripts":{"test":"exit 0","clean":"npm run remove-definitions && npm run remove-maps && npm run remove-js","pretest":"tsc","remove-js":"rimraf *.js && rimraf ./commands/*.js && rimraf ./model/*.js && rimraf ./types/*.js","smoke-test":"npm run pretest && node ./test/smoke/index.spec.js","remove-maps":"rimraf *.js.map && rimraf ./commands/*.js.map && rimraf ./model/*.js.map && rimraf ./types/*.js.map","prepublishOnly":"tsc","remove-definitions":"rimraf *.d.ts && rimraf ./commands/*.d.ts && rimraf ./model/*.d.ts rimraf ./types/*.d.ts","build-documentation":"npm run clean && typedoc ./","remove-documentation":"rimraf ./docs"},"_npmUser":{"name":"aws-sdk-bot","email":"aws-sdk-js@amazon.com"},"deprecated":"The package @aws-sdk/client-cloudhsm-v2-node has been renamed to @aws-sdk/client-cloudhsm-v2. Please install the renamed package.","_npmVersion":"6.9.0","description":"Node SDK for AWS CloudHSM V2","directories":{},"_nodeVersion":"10.16.3","dependencies":{"tslib":"^1.8.0","@aws-sdk/types":"^0.1.0-preview.7","@aws-sdk/hash-node":"^0.1.0-preview.8","@aws-sdk/json-parser":"^0.1.0-preview.7","@aws-sdk/core-handler":"^0.1.0-preview.7","@aws-sdk/json-builder":"^0.1.0-preview.7","@aws-sdk/signature-v4":"^0.1.0-preview.10","@aws-sdk/util-utf8-node":"^0.1.0-preview.4","@aws-sdk/config-resolver":"^0.1.0-preview.7","@aws-sdk/region-provider":"^0.1.0-preview.7","@aws-sdk/url-parser-node":"^0.1.0-preview.8","@aws-sdk/middleware-stack":"^0.1.0-preview.9","@aws-sdk/retry-middleware":"^0.1.0-preview.7","@aws-sdk/util-base64-node":"^0.1.0-preview.4","@aws-sdk/node-http-handler":"^0.1.0-preview.8","@aws-sdk/protocol-json-rpc":"^0.1.0-preview.8","@aws-sdk/signing-middleware":"^0.1.0-preview.10","@aws-sdk/util-user-agent-node":"^0.1.0-preview.10","@aws-sdk/middleware-serializer":"^0.1.0-preview.7","@aws-sdk/stream-collector-node":"^0.1.0-preview.9","@aws-sdk/util-body-length-node":"^0.1.0-preview.5","@aws-sdk/json-error-unmarshaller":"^0.1.0-preview.8","@aws-sdk/credential-provider-node":"^0.1.0-preview.10","@aws-sdk/middleware-content-length":"^0.1.0-preview.7","@aws-sdk/middleware-header-default":"^0.1.0-preview.7"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^24.7.1","rimraf":"^2.6.2","typedoc":"^0.14.2","typescript":"~3.4.0","@types/jest":"^24.0.12","@types/node":"^10.0.0","@aws-sdk/client-documentation-generator":"^0.1.0-preview.3"},"_npmOperationalInternal":{"tmp":"tmp/client-cloudhsm-v2-node_0.1.0-preview.6_1574196217828_0.5417515193146061","host":"s3://npm-registry-packages"}}},"time":{"created":"2019-09-09T17:47:59.930Z","modified":"2025-03-27T18:41:02.829Z","0.1.0-preview.2":"2019-09-09T17:48:00.338Z","0.1.0-preview.3":"2019-09-19T16:01:49.577Z","0.1.0-preview.4":"2019-10-29T23:50:01.134Z","0.1.0-preview.5":"2019-10-30T19:23:22.109Z","0.1.0-preview.6":"2019-11-19T20:43:37.977Z"},"author":{"url":"https://aws.amazon.com/javascript/","name":"AWS SDK for JavaScript Team"},"license":"Apache-2.0","description":"Node SDK for AWS CloudHSM V2","maintainers":[{"email":"osa-3p@amazon.com","name":"amzn-oss"},{"email":"aws-sdk-js-automation@amazon.com","name":"aws-sdk-bot"}],"readme":"","readmeFilename":""}