{"_id":"@aws-sdk/client-cloudhsm-v2-browser","_rev":"19-df32118660d9e4ead1d383544210ae2a","name":"@aws-sdk/client-cloudhsm-v2-browser","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-browser","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-browser@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":"974200da428ecefc09c1a9bacd9f5981f7197744","tarball":"https://registry.npmjs.org/@aws-sdk/client-cloudhsm-v2-browser/-/client-cloudhsm-v2-browser-0.1.0-preview.2.tgz","fileCount":396,"integrity":"sha512-pm6ugknqv3EVHtsRPPesqOoXglBdOR+BfysCkERdGDh/X/k7Xd/o+Vt/Hz44lvjbSL1v6enrcVg2P10SPE79VA==","signatures":[{"sig":"MEYCIQCU7piWH8SIVK+XU2PtOsZAHiRoUQbUNX2Mzcl8OOcxIgIhAI46+edZK8cGMPadXKllWwyRgyqSnzzuYmZs0pnn87g9","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":248264,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJddpNLCRA9TVsSAnZWagAAbXEQAJdGgxluQxOiTGvHO+BV\nUyzgJDjEra5+ovEPT4sfPrL9cgC8KMV76tzwXtvS+jWlBzCys3esdq/Kwc0p\njoOHXOSBBP8LooXVxx2CdSnVwud3NL8YXtG8Qf7cDmd8B+76uLoW3a0W+utt\nYzEpSxmohCRl9H+nPX710+z499phM5cq7tD3gUd+4Janli6rP+HDJqImQUr/\np/Byj/N3331t6Tgt567oTavgtHLJjD2IvTAikyAxeb5yy4ITiJcwFkxlBXud\nnsBBIgGVlTqTv/HaL0aKFTSPqemP9RrCzhnjkiGwi3D5b0hUdGpDJhjrBGtF\nLy9zy/t/MiDqx48CCRxcF75vFzWCJnbhNj8/oUJokof2EDEvDeWyiGkEQ9MA\nzgRC5mB5n0wGKEmiH6LbCuqAgu+mc+u4sfnw3P/nSWoQBVb/B9S+HRYI9p0L\n07LsiJTQm0DzWqsijlssyMwVzAMNidJTJ1kQjwCO2Uj1ne49KcXbGI0l2zC+\nWVjlvztmz/KtKpSpCOKHfc5CUTE/nJRWszEl1Csmt+AKAXxdw8RWvtqLa8rM\n5TD0YcFss4MjeRct/iA+y+fzRM0YqScNtfoOPtudy2QnK76Y9/GyYrimTaAX\ns49GdynIuXT/0jDzZRWN11dr7HRABfAhHd37c4UYtEW/8a7CJF76o4zAs5Az\nMf2L\r\n=XrF0\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":"karma start karma.conf","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-browser has been renamed to @aws-sdk/client-cloudhsm-v2. Please install the renamed package.","_npmVersion":"6.9.0","description":"Browser 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/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/config-resolver":"^0.1.0-preview.5","@aws-sdk/middleware-stack":"^0.1.0-preview.6","@aws-sdk/retry-middleware":"^0.1.0-preview.5","@aws-crypto/sha256-browser":"^0.1.0-preview.1","@aws-sdk/protocol-json-rpc":"^0.1.0-preview.6","@aws-sdk/util-utf8-browser":"^0.1.0-preview.3","@aws-sdk/fetch-http-handler":"^0.1.0-preview.5","@aws-sdk/signing-middleware":"^0.1.0-preview.6","@aws-sdk/url-parser-browser":"^0.1.0-preview.5","@aws-sdk/util-base64-browser":"^0.1.0-preview.3","@aws-sdk/middleware-serializer":"^0.1.0-preview.5","@aws-sdk/json-error-unmarshaller":"^0.1.0-preview.6","@aws-sdk/util-user-agent-browser":"^0.1.0-preview.6","@aws-sdk/stream-collector-browser":"^0.1.0-preview.5","@aws-sdk/util-body-length-browser":"^0.1.0-preview.3","@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","karma":"^4.1.0","rimraf":"^2.6.2","typedoc":"^0.14.2","puppeteer":"^1.0.0","typescript":"~3.4.0","@types/jest":"^24.0.12","jasmine-core":"^3.4.0","karma-jasmine":"^2.0.1","karma-coverage":"^1.1.1","karma-typescript":"^4.0.0","karma-chrome-launcher":"^3.0.0","@aws-sdk/karma-credential-loader":"^0.1.0-preview.6","@aws-sdk/client-documentation-generator":"^0.1.0-preview.3"},"_npmOperationalInternal":{"tmp":"tmp/client-cloudhsm-v2-browser_0.1.0-preview.2_1568052042944_0.24032071695275192","host":"s3://npm-registry-packages"}},"0.1.0-preview.3":{"name":"@aws-sdk/client-cloudhsm-v2-browser","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-browser@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":"08ea6ccebff92fbf37eb2235740afda17701d3a4","tarball":"https://registry.npmjs.org/@aws-sdk/client-cloudhsm-v2-browser/-/client-cloudhsm-v2-browser-0.1.0-preview.3.tgz","fileCount":396,"integrity":"sha512-f5aHT9To+bM6maZIiZq3izbz5dEANNnTKkB1eb124n9BjHX/We5n8dmW6Py3UCXrAEausaoh2HHmrWXi3cbpvQ==","signatures":[{"sig":"MEQCIFB9pmPSflucI5MdUiMuFYRCTlaUPd23Vemrn+ByCffQAiBePTKXSqv3DiuoP8be3W/EcwJXXvj/4QttPme3Nbl37w==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":248484,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdg6MoCRA9TVsSAnZWagAAzPUP/j7xe4nc9hOqKA4+nUkH\nwg41Hge+ec/KcPB7/vt5FyiycvcPMfzv71ucyT3UcdJrSSX1xjzuKorTZsEe\n2HeCvOvWcbrwJY0TnvSUIh8U6qGJxBgmAIODSKaQq8e8RHhaiNcaWv/ZNyfS\napww1WBS0+VIJ4yHweRKUgkamQZKHjJDmt0cNqAslv6hQ9RmBlu/AzDGFWvT\nC9yvU9GCDgUMxCzAJAuecrzHhLwykzUF/3xTWgblD61hbklIZ0GNXU3hNsES\n7LECjZ0ojs2JIWlzXAAMWVydW9CBCRCHtJvWzvx/CPGFWPaT6v36Ax+AxTQm\nzyxbHNduW5Sl+zTw6CzpfmzF2GHE6iy4RGOmBuS9D3zOLJ7BAsZscqhNt1GI\nBvO+2vZBqpzxCMA5PqFl/uYJNF96aIR8nDquMao60wscBFGoCowJJTsg0cxA\ntInx9/jLVa3RlSoOK6TtFMBiJTwtD60GuQoPQYeeuhvKuHKQMNRJFupKxews\nCQ4eCuo71ytVzo7CMqzfgDZ5Lam2JphA22oxByvNePiIVbYGcidZBRN4Cnlr\nqWOykWC/5/NsS3LBHZMNAQN6q9BPrVjM0G0MAXL9tYk/rZOs1d8cWRYZTa20\nYmUR7MiLaU+6eW1QsSEcihBu7DfLt/A9o/9tfaEI8VpXYC3oJ5AuVkdvo527\nZdKe\r\n=z9Bj\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./index.js","types":"./index.d.ts","readme":"# @aws-sdk/client-cloudhsm-v2-browser\n\n[![NPM version](https://img.shields.io/npm/v/@aws-sdk/client-cloudhsm-v2-browser/preview.svg)](https://www.npmjs.com/package/@aws-sdk/client-cloudhsm-v2-browser)\n[![NPM downloads](https://img.shields.io/npm/dm/@aws-sdk/client-cloudhsm-v2-browser.svg)](https://www.npmjs.com/package/@aws-sdk/client-cloudhsm-v2-browser)\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-browser\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-browser/CloudHSMV2Client\");\nconst {\n  CopyBackupToRegionCommand\n} = require(\"@aws-sdk/client-cloudhsm-v2-browser/commands/CopyBackupToRegionCommand\");\n```\n\n```javascript\n//TypeScript\nimport { CloudHSMV2Client } from \"@aws-sdk/client-cloudhsm-v2-browser/CloudHSMV2Client\";\nimport { CopyBackupToRegionCommand } from \"@aws-sdk/client-cloudhsm-v2-browser/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-browser/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-browser' 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":"karma start karma.conf","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-browser has been renamed to @aws-sdk/client-cloudhsm-v2. Please install the renamed package.","_npmVersion":"6.9.0","description":"Browser 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/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/config-resolver":"^0.1.0-preview.5","@aws-sdk/middleware-stack":"^0.1.0-preview.6","@aws-sdk/retry-middleware":"^0.1.0-preview.5","@aws-crypto/sha256-browser":"^0.1.0-preview.1","@aws-sdk/protocol-json-rpc":"^0.1.0-preview.6","@aws-sdk/util-utf8-browser":"^0.1.0-preview.3","@aws-sdk/fetch-http-handler":"^0.1.0-preview.5","@aws-sdk/signing-middleware":"^0.1.0-preview.7","@aws-sdk/url-parser-browser":"^0.1.0-preview.5","@aws-sdk/util-base64-browser":"^0.1.0-preview.3","@aws-sdk/middleware-serializer":"^0.1.0-preview.5","@aws-sdk/json-error-unmarshaller":"^0.1.0-preview.6","@aws-sdk/util-user-agent-browser":"^0.1.0-preview.6","@aws-sdk/stream-collector-browser":"^0.1.0-preview.5","@aws-sdk/util-body-length-browser":"^0.1.0-preview.3","@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","karma":"^4.1.0","rimraf":"^2.6.2","typedoc":"^0.14.2","puppeteer":"^1.0.0","typescript":"~3.4.0","@types/jest":"^24.0.12","jasmine-core":"^3.4.0","karma-jasmine":"^2.0.1","karma-coverage":"^1.1.1","karma-typescript":"^4.0.0","karma-chrome-launcher":"^3.0.0","@aws-sdk/karma-credential-loader":"^0.1.0-preview.7","@aws-sdk/client-documentation-generator":"^0.1.0-preview.3"},"_npmOperationalInternal":{"tmp":"tmp/client-cloudhsm-v2-browser_0.1.0-preview.3_1568908072106_0.8188419507468296","host":"s3://npm-registry-packages"}},"0.1.0-preview.4":{"name":"@aws-sdk/client-cloudhsm-v2-browser","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-browser@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":"b572c1ae687eb5d5e4ca74af7eea09aef4e9936b","tarball":"https://registry.npmjs.org/@aws-sdk/client-cloudhsm-v2-browser/-/client-cloudhsm-v2-browser-0.1.0-preview.4.tgz","fileCount":396,"integrity":"sha512-R/lDg9w5chvhAKTCgsV/+Jnn0QL4Us7b5Lt+/LZDoSxgd++CdFDobUGOhpvkbLigCnyY6qPrZvTtbX7tD+t3dg==","signatures":[{"sig":"MEUCIHfESCv1JUd5viQ60znIoY+ylKDo/o/AeWZfI5GKtcsAAiEA6P8Gr1SEg3/slphHIh5EaTTDz5+/7V418/kKOhk17ms=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":248495,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJduNKVCRA9TVsSAnZWagAAnCMQAJvKn7zAFoJ794ItewM0\nnxk2b/2KlCk+8iK3icwGQkixJUtqCE6KIvEnqPgG6e2L00fzbbqITCBccD3X\n3ba6twZzQx2Sm6p5+xuA3THdjI3LpiG8xLRTM5sUJG9+s/JXruHI+vK4OjtT\nqd/2pDzaibrDcH/YIAHB+GTXZgXUzNhLlzVIJgUUOsdKAOEcNEuuzuUxMKwt\ngKyPhcZqu/UafFdYCcCTB6ym0XQiGmgIolS/VmGgvYgQL2IWhyNIKwvbmgSC\np9V9cD5KRBG92EZfYcirPiYzlWwThmeSO+r0QSCescJBNIOP53zP3rfyQFAu\nJnSdZ2/GuKxX22ja8+iVurxnnbdUPySkPjFJ85DKVQKJlgTMBah8N35FuudP\nDhj+x9haxbEOWFc1BxnadYad7/nIkJDS5siBmgkNLq73r62ITjj5DVw/rpFn\nt5Z1qyTCElXSqRfEHgsZJwI0gB/OQqr+geFsxwSCUZpywrkhFbaYPoBCI3zT\na6+VRDFZ6HLxqBSn0YSUft8xPWHC8MWbkeIxNf1z9wJ/ocmZ6xaTagpMrxdZ\npJ8J2B7gR/jqz/R5bAfiGup6m+Lqf+wPl4sQyPByrYp9d0Ub8kC9uIpe0LGS\nD1+4ln+mhk+dmGIPaVEZmmhbi98PKyujLLt7eMtO+alygGnhDnUtjqYkAWSr\nAl+L\r\n=467D\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./index.js","types":"./index.d.ts","readme":"# @aws-sdk/client-cloudhsm-v2-browser\n\n[![NPM version](https://img.shields.io/npm/v/@aws-sdk/client-cloudhsm-v2-browser/preview.svg)](https://www.npmjs.com/package/@aws-sdk/client-cloudhsm-v2-browser)\n[![NPM downloads](https://img.shields.io/npm/dm/@aws-sdk/client-cloudhsm-v2-browser.svg)](https://www.npmjs.com/package/@aws-sdk/client-cloudhsm-v2-browser)\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-browser\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-browser\");\n```\n\n```javascript\n//TypeScript\nimport {\n  CloudHSMV2Client,\n  CopyBackupToRegionCommand\n} from \"@aws-sdk/client-cloudhsm-v2-browser\";\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-browser\";\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-browser' 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":"karma start karma.conf","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-browser has been renamed to @aws-sdk/client-cloudhsm-v2. Please install the renamed package.","_npmVersion":"6.9.0","description":"Browser 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/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/config-resolver":"^0.1.0-preview.6","@aws-sdk/middleware-stack":"^0.1.0-preview.7","@aws-sdk/retry-middleware":"^0.1.0-preview.6","@aws-crypto/sha256-browser":"^0.1.0-preview.1","@aws-sdk/protocol-json-rpc":"^0.1.0-preview.7","@aws-sdk/util-utf8-browser":"^0.1.0-preview.3","@aws-sdk/fetch-http-handler":"^0.1.0-preview.6","@aws-sdk/signing-middleware":"^0.1.0-preview.8","@aws-sdk/url-parser-browser":"^0.1.0-preview.6","@aws-sdk/util-base64-browser":"^0.1.0-preview.3","@aws-sdk/middleware-serializer":"^0.1.0-preview.6","@aws-sdk/json-error-unmarshaller":"^0.1.0-preview.7","@aws-sdk/util-user-agent-browser":"^0.1.0-preview.7","@aws-sdk/stream-collector-browser":"^0.1.0-preview.6","@aws-sdk/util-body-length-browser":"^0.1.0-preview.3","@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","karma":"^4.1.0","rimraf":"^2.6.2","typedoc":"^0.14.2","puppeteer":"^1.0.0","typescript":"~3.4.0","@types/jest":"^24.0.12","jasmine-core":"^3.4.0","karma-jasmine":"^2.0.1","karma-coverage":"^1.1.1","karma-typescript":"^4.0.0","karma-chrome-launcher":"^3.0.0","@aws-sdk/karma-credential-loader":"^0.1.0-preview.8","@aws-sdk/client-documentation-generator":"^0.1.0-preview.3"},"_npmOperationalInternal":{"tmp":"tmp/client-cloudhsm-v2-browser_0.1.0-preview.4_1572393621068_0.25883300397635955","host":"s3://npm-registry-packages"}},"0.1.0-preview.5":{"name":"@aws-sdk/client-cloudhsm-v2-browser","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-browser@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":"be13203659a84e1f01135be04f8496a10f3caacc","tarball":"https://registry.npmjs.org/@aws-sdk/client-cloudhsm-v2-browser/-/client-cloudhsm-v2-browser-0.1.0-preview.5.tgz","fileCount":396,"integrity":"sha512-Pa9CPoUcZoxIJQcXT/KpwR4V/slJYiJvAipoQCl9X6fNzykpts0oZXpjJZjbmGmHGR53KcYNGueBRw54/Y90qA==","signatures":[{"sig":"MEQCIGdHWzXfwJuPM1wVECgX3aCDsylE2HbIcyVEi0TFdfk3AiBVOZC96Np9U+NsNXOsSbJxQldohA3Bk1QPM4JibgTeDg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":248739,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdueYdCRA9TVsSAnZWagAAedMP/i7RuKTW//dxOJGlPmqB\nnXhyxeYhiNtUN8KYooxQ1+l4izURAapvkbhZztSNnk0VVReaphshPg6yaD9m\n04mdMbdqIjM9+T1ovz836KSbY1Ll9XMwGJQJtBN8AdhC785ic/jqaucPe5Yd\nKJomvjDEXu/+FA7wo1znlSuhjuHfy6/SV3uR7gh+VLRT+EZmePuNTF4Wm+Jp\nKts5GT6cqmecwhKp9qItRwRe14q2CYFQ7zFXISvV7jpmbz4VZg3UMfr6eto+\nCG7llaSRne3SU1FNyXuYV2LsbC7H6SbfUoauijpgyPV+8V9sXlEIPB518vqp\n/llT0cPY0TaoBEQGdy04fXVZk3BOdsT9NsgOUAggNHBwBE+8cxTqlJUiJuzO\nC4JF8EmtSPh5mWYf+cjKita43qMX2JTzlVosTlCKJVNffYC9lF2YFnREEodg\na4y8i6uhwu61nEZAfbS0gdWotgjPK/z0zh7QahRcM5HD149iUXMihAnthml4\nfI7WcLWOuugr8sA1Iqcgr4LsK15yJ0Q6McDehdabDYnrC38m8SX5Pd8BXoXq\nv3OVnqdi99EfkepncwXMDN4n/SMN+8Li4FHqmWfqUL4IXruMpheaUXNZZtCq\nc5hfklv+Jvp9mZhetFq7rhp3oeG/oK+L225T+50b2W0mj4WyWOKXJmNAIF24\nj36Z\r\n=3ADN\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./index.js","types":"./index.d.ts","readme":"# @aws-sdk/client-cloudhsm-v2-browser\n\n[![NPM version](https://img.shields.io/npm/v/@aws-sdk/client-cloudhsm-v2-browser/preview.svg)](https://www.npmjs.com/package/@aws-sdk/client-cloudhsm-v2-browser)\n[![NPM downloads](https://img.shields.io/npm/dm/@aws-sdk/client-cloudhsm-v2-browser.svg)](https://www.npmjs.com/package/@aws-sdk/client-cloudhsm-v2-browser)\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-browser\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-browser\");\n```\n\n```javascript\n//TypeScript\nimport {\n  CloudHSMV2Client,\n  CopyBackupToRegionCommand\n} from \"@aws-sdk/client-cloudhsm-v2-browser\";\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-browser\";\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-browser' 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":"karma start karma.conf","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-browser has been renamed to @aws-sdk/client-cloudhsm-v2. Please install the renamed package.","_npmVersion":"6.9.0","description":"Browser 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/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/config-resolver":"^0.1.0-preview.7","@aws-sdk/middleware-stack":"^0.1.0-preview.8","@aws-sdk/retry-middleware":"^0.1.0-preview.7","@aws-crypto/sha256-browser":"^0.1.0-preview.1","@aws-sdk/protocol-json-rpc":"^0.1.0-preview.8","@aws-sdk/util-utf8-browser":"^0.1.0-preview.3","@aws-sdk/fetch-http-handler":"^0.1.0-preview.7","@aws-sdk/signing-middleware":"^0.1.0-preview.9","@aws-sdk/url-parser-browser":"^0.1.0-preview.7","@aws-sdk/util-base64-browser":"^0.1.0-preview.3","@aws-sdk/middleware-serializer":"^0.1.0-preview.7","@aws-sdk/json-error-unmarshaller":"^0.1.0-preview.8","@aws-sdk/util-user-agent-browser":"^0.1.0-preview.8","@aws-sdk/stream-collector-browser":"^0.1.0-preview.7","@aws-sdk/util-body-length-browser":"^0.1.0-preview.3","@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","karma":"^4.1.0","rimraf":"^2.6.2","typedoc":"^0.14.2","puppeteer":"^1.0.0","typescript":"~3.4.0","@types/jest":"^24.0.12","jasmine-core":"^3.4.0","karma-jasmine":"^2.0.1","karma-coverage":"^1.1.1","karma-typescript":"^4.0.0","karma-chrome-launcher":"^3.0.0","@aws-sdk/karma-credential-loader":"^0.1.0-preview.9","@aws-sdk/client-documentation-generator":"^0.1.0-preview.3"},"_npmOperationalInternal":{"tmp":"tmp/client-cloudhsm-v2-browser_0.1.0-preview.5_1572464157600_0.8384057944140477","host":"s3://npm-registry-packages"}},"0.1.0-preview.6":{"name":"@aws-sdk/client-cloudhsm-v2-browser","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-browser@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":"1578280af2520684f1b8063d290afd862d614364","tarball":"https://registry.npmjs.org/@aws-sdk/client-cloudhsm-v2-browser/-/client-cloudhsm-v2-browser-0.1.0-preview.6.tgz","fileCount":396,"integrity":"sha512-7RQn/d8ztLA4QTW5nGfPBkp/NbDLa+Q2yq6BPFVsSUMPf1n+5LX0gSYwNTK6461miner6ZfSpNdS8IbyOfsfrQ==","signatures":[{"sig":"MEUCIQDEgosk6UBlTjEE/9tim8qseEOxUMuMtA2KVHOKJ1sAjAIgeqU9T4QpQSCOTt5xhR900yf4Y069dLz9abbmxCOgr3Q=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":249010,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd1FUoCRA9TVsSAnZWagAAkwIQAJdj4t/O4n0kMBaZs2PN\nAS+4TeEdkPtCrW/TIH2Vbk3q1uPNAVUr8GSw01FsDW3s16GT1lQRvMdm9Hxc\ni1+ZiMgA9yq3LuA7fTLxQ+6ka7AAAlgzat5ZxCx3w0QGerV4VKMkJFhbpgMv\ndni4UKJTDeN3QSkVUSEmV+42o+0fuBW+CiufDod3heE5lMRKzkEOG7+58rsa\nST8dzufEwqhmhOwaQLzKKE5rSE8FLA3aE4xrwFceIrypBsfyRTIL+y1L8k2g\nduVTQ99q9g7nkYxJa1VK0imag1evTgcI84xU9TnIhO9MBu0uOU0aLIOETla6\nYC0Ge4FpXLsVTVFt9UwcsanvpJVRbM6x6pzxvvYcto5pJJ4IYtVq2DClJCRZ\nhklV1hOZxMgNV7BmKAj+c8QhXGRUwvWukGdK8Z5zqNFMz9oh/LhyFqLtGvJX\nqRaJCbGzQjrxWkSCOkE3te90YOy7wg8Pwk9HSKrpYirxaQ4tIHkgg1eSGtGy\noH/oWsPymKkVDgpbpTJyBsdxjFuSKfEaZIbsm4xmrHEUF0rz2m8wkvG4UyuI\nFVzl/Xxp8im24gut/u3/b1Eiltt+xilF4XFOt253kn42+QbpxVLxDRp8QTM9\nf01h1FpO8YHM+4zdoO1R7sv2mFQqvJLMg7xqEAwXXhBX+MxaE7a/XSPWf3Pc\nXjPw\r\n=POsa\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./index.js","types":"./index.d.ts","readme":"# @aws-sdk/client-cloudhsm-v2-browser\n\n[![NPM version](https://img.shields.io/npm/v/@aws-sdk/client-cloudhsm-v2-browser/preview.svg)](https://www.npmjs.com/package/@aws-sdk/client-cloudhsm-v2-browser)\n[![NPM downloads](https://img.shields.io/npm/dm/@aws-sdk/client-cloudhsm-v2-browser.svg)](https://www.npmjs.com/package/@aws-sdk/client-cloudhsm-v2-browser)\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-browser\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-browser\");\n```\n\n```javascript\n//TypeScript\nimport {\n  CloudHSMV2Client,\n  CopyBackupToRegionCommand\n} from \"@aws-sdk/client-cloudhsm-v2-browser\";\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-browser\";\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-browser' 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":"karma start karma.conf","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-browser has been renamed to @aws-sdk/client-cloudhsm-v2. Please install the renamed package.","_npmVersion":"6.9.0","description":"Browser 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/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/config-resolver":"^0.1.0-preview.7","@aws-sdk/middleware-stack":"^0.1.0-preview.9","@aws-sdk/retry-middleware":"^0.1.0-preview.7","@aws-crypto/sha256-browser":"^0.1.0-preview.1","@aws-sdk/protocol-json-rpc":"^0.1.0-preview.8","@aws-sdk/util-utf8-browser":"^0.1.0-preview.3","@aws-sdk/fetch-http-handler":"^0.1.0-preview.8","@aws-sdk/signing-middleware":"^0.1.0-preview.10","@aws-sdk/url-parser-browser":"^0.1.0-preview.7","@aws-sdk/util-base64-browser":"^0.1.0-preview.3","@aws-sdk/middleware-serializer":"^0.1.0-preview.7","@aws-sdk/json-error-unmarshaller":"^0.1.0-preview.8","@aws-sdk/util-user-agent-browser":"^0.1.0-preview.9","@aws-sdk/stream-collector-browser":"^0.1.0-preview.7","@aws-sdk/util-body-length-browser":"^0.1.0-preview.3","@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","karma":"^4.1.0","rimraf":"^2.6.2","typedoc":"^0.14.2","puppeteer":"^1.0.0","typescript":"~3.4.0","@types/jest":"^24.0.12","jasmine-core":"^3.4.0","karma-jasmine":"^2.0.1","karma-coverage":"^1.1.1","karma-typescript":"^4.0.0","karma-chrome-launcher":"^3.0.0","@aws-sdk/karma-credential-loader":"^0.1.0-preview.10","@aws-sdk/client-documentation-generator":"^0.1.0-preview.3"},"_npmOperationalInternal":{"tmp":"tmp/client-cloudhsm-v2-browser_0.1.0-preview.6_1574196519878_0.8583257836942733","host":"s3://npm-registry-packages"}}},"time":{"created":"2019-09-09T18:00:42.766Z","modified":"2025-03-27T18:41:01.993Z","0.1.0-preview.2":"2019-09-09T18:00:43.085Z","0.1.0-preview.3":"2019-09-19T15:47:52.242Z","0.1.0-preview.4":"2019-10-30T00:00:21.221Z","0.1.0-preview.5":"2019-10-30T19:35:57.723Z","0.1.0-preview.6":"2019-11-19T20:48:40.037Z"},"author":{"url":"https://aws.amazon.com/javascript/","name":"AWS SDK for JavaScript Team"},"license":"Apache-2.0","description":"Browser 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":""}