{"_id":"@aws-sdk/client-acm-pca-node","_rev":"19-8ef9a46af447650def11e17ad8686258","name":"@aws-sdk/client-acm-pca-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-acm-pca-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-acm-pca-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":"b775ef0ed187aaeac52d6e101c4e282d853e07e0","tarball":"https://registry.npmjs.org/@aws-sdk/client-acm-pca-node/-/client-acm-pca-node-0.1.0-preview.2.tgz","fileCount":614,"integrity":"sha512-1oktredfO6fFrQcYx6VErTGMDGgRiP+wTdPgWEv9Uy5Ohg3JzYG+WM23ueMV4UH3eiplYb2S+6vP5WUjfyGX/w==","signatures":[{"sig":"MEUCIAm6oTYpqW2L5Ehv81DOdU2e4OoIXiIMXaRRJtXHlSTfAiEAo/VHJWwXhaWv6UFReXuYpR78jXELJ/51x7CWIksrgzk=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":396406,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJddo/0CRA9TVsSAnZWagAAphsQAIJlbkGCOl6ZcW5LN1nC\nKrIYzVpHi7hSWlwfc3qDsb+dVn7ijNtSzcIlV2NpSU/kVnln7x+juHTP96aD\n10JvQe4hxvduNFdA4OaaKtqzVigjsK1L1vjiVbQ0dAw58lHG+rb8wgLWQoJz\nWqj1Hkz1c1N8KPv1pEnvEMSeRwEvz8erxkiDlWc6zSRCs76sJRyBM5U5PCiL\no2pM9SkqoN7zQGAJUYTgi9Y+EvSdsddBBKZKsWbfMbzMED1xIs7eTAMV8t0y\nXmxetUWElhZ5iqGpHAgGTNXBAHHH1KsPh9QSW7wpEkCbd4oCc9G2xVZGKHBJ\nehVjsDF1NvhwaD7+qMzkfp5GHRqVjqiIUFsVh9F1NOdgbKHHwrY5FAb25VQN\nOcDRDu3lRr2BdVw4wLVuSwlgGWTZF+jm3TDOG7bfrGk/T0o0OV0why3D1u6J\nHFTngqc0HMdR4wf9c1U9llg13MHxgYkl8V1mSowMlREDErHPJh7/G+len2p0\nTHhLGcT0yAS9GaVOtQ2jwGu0vfYVAMhPkhXlxFM3t3isph6DKi8NkQTPOCiA\nOaDSRKuLuRDOwi5dx/HPVEC86gEyV8PPJL80MvDOdIdUBeRcQ0Ni0SwNBYcs\nSiS76xMa8WpyANtHxmA7+xf1Dnotch3aCxrCmffFaEoE2Akr1HcYJCh9uH90\n6AYZ\r\n=2mSv\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-acm-pca-node has been renamed to @aws-sdk/client-acm-pca. Please install the renamed package.","_npmVersion":"6.9.0","description":"Node SDK for AWS Certificate Manager Private Certificate Authority","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":{"rimraf":"^2.6.2","typedoc":"^0.14.2","typescript":"~3.4.0","@types/node":"^10.0.0","@aws-sdk/client-documentation-generator":"^0.1.0-preview.3"},"_npmOperationalInternal":{"tmp":"tmp/client-acm-pca-node_0.1.0-preview.2_1568051187778_0.23736336367439503","host":"s3://npm-registry-packages"}},"0.1.0-preview.3":{"name":"@aws-sdk/client-acm-pca-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-acm-pca-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":"5fb6bb0abfef66858d82e97321351e669106dceb","tarball":"https://registry.npmjs.org/@aws-sdk/client-acm-pca-node/-/client-acm-pca-node-0.1.0-preview.3.tgz","fileCount":614,"integrity":"sha512-ignuCuVyWHNrOXAm4FT2rgG8DWsNsx32PV+1rK4n0WbjR+yGslYsR9Y7S4xND8RlQSa7PiEZ4gptqj5fOC+hZg==","signatures":[{"sig":"MEUCIQCxRLa9q+hqgn7aEt+DezWuh0WfYn1dYwrDgkbX8K4AJQIgGqsKJAy67xb5MicyvBq+tXrtiiYXb7p7m5RPDWMTSkM=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":392119,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdg6X6CRA9TVsSAnZWagAA71EQAIBJyukHFUywNe1FUUje\nQOtfui3TxCVDt9x2QCe+AhPfMCqP6n4vA7OpNT30AiV5iyVnAPPGYHlY0AAo\nkW+sb0oq3YEWXDTGghb6J+7JLmwuI8O+fGXwQ3Veq1jSwGWCyIuWYRVWE3sV\nD2eeKoHjcL2m7o22QbVC7hiGZ/w5nMnUXCNYDsY6ad4zv8D244sQgI/Bp+JL\nclaBLORZ4uAWOj2Fw8XUqMWBl/YhQeFCtp/AP7qp2gKDas/RxlAHS/AlVQD/\n+QJzh6SDsQLXWfZDGX6+Domphx8dOO/qh/OK2dAGN7GcBl8PzvGJFxq24rQS\nSYTqOIA1EYAht8IS5sV8XnyICxovuOR4S4GqeRqF+IxyvNy9dbZz0VmHCnxl\nEJl6h2cbIJynV/FggCVcr6oZWcyU2fO9ru+vO3B3kH5saXp6itxMGujMilSs\nBeabVDHhAa7Us7E1pvigwgeAvMEUZ3r45XwAp1sBNa7/mC8PUb4Muf4NWyhW\nNhNkDxQZgpqNY9W4P+9mZlfDqhLqB+IQ5wNHoO0QNFj2hud7u0neWzpNMzC4\nYQd+HHA4peabOvDSSzPwipB6jC7fzTTatuTv/dlUzww4hjqTYaJIcGcMCF2l\n6lpX13kJscJEHs0S3y4pYipCyEl3DHMiFzVOjc5eZOY/VaAxFbKM3s+0BRuI\n4RZd\r\n=mjl8\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./index.js","types":"./index.d.ts","readme":"# @aws-sdk/client-acm-pca-node\n\n[![NPM version](https://img.shields.io/npm/v/@aws-sdk/client-acm-pca-node/preview.svg)](https://www.npmjs.com/package/@aws-sdk/client-acm-pca-node)\n[![NPM downloads](https://img.shields.io/npm/dm/@aws-sdk/client-acm-pca-node.svg)](https://www.npmjs.com/package/@aws-sdk/client-acm-pca-node)\n\n## Description\n\n<p>This is the <i>ACM Private CA API Reference</i>. It provides descriptions, syntax, and usage examples for each of the actions and data types involved in creating and managing private certificate authorities (CA) for your organization.</p> <p>The documentation for each action shows the Query API request parameters and the XML response. Alternatively, you can use one of the AWS SDKs to access an API that's tailored to the programming language or platform that you're using. For more information, see <a href=\"https://aws.amazon.com/tools/#SDKs\">AWS SDKs</a>.</p> <note> <p>Each ACM Private CA API action has a throttling limit which determines the number of times the action can be called per second. For more information, see <a href=\"https://docs.aws.amazon.com/acm-pca/latest/userguide/PcaLimits.html#PcaLimits-api\">API Rate Limits in ACM Private CA</a> in the ACM Private CA user guide.</p> </note>\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-acm-pca-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(`ACMPCAClient`) and the commands you need, for example `CreateCertificateAuthorityCommand`:\n\n```javascript\n//JavaScript\nconst { ACMPCAClient } = require(\"@aws-sdk/client-acm-pca-node/ACMPCAClient\");\nconst {\n  CreateCertificateAuthorityCommand\n} = require(\"@aws-sdk/client-acm-pca-node/commands/CreateCertificateAuthorityCommand\");\n```\n\n```javascript\n//TypeScript\nimport { ACMPCAClient } from \"@aws-sdk/client-acm-pca-node/ACMPCAClient\";\nimport { CreateCertificateAuthorityCommand } from \"@aws-sdk/client-acm-pca-node/commands/CreateCertificateAuthorityCommand\";\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 aCMPCA = new ACMPCAClient({region: 'region'});\n//clients can be shared by different commands\nconst params = {\n  CertificateAuthorityConfiguration: { /**an object specifying CertificateAuthorityConfiguration*/ },\n  CertificateAuthorityType: /**a string value*/,\n};\nconst createCertificateAuthorityCommand = new CreateCertificateAuthorityCommand(params);\naCMPCA.send(createCertificateAuthorityCommand).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 aCMPCA.send(createCertificateAuthorityCommand);\n  // do something\n} catch (error) {\n  // error handling\n}\n```\n\n```javascript\n// callback\naCMPCA.send(createCertificateAuthorityCommand, (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-acm-pca-node/ACMPCA\";\nconst aCMPCA = new AWS.ACMPCA({ region: \"region\" });\naCMPCA.createCertificateAuthority(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 aCMPCA.send(createCertificateAuthorityCommand);\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-acm-pca-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-acm-pca-node has been renamed to @aws-sdk/client-acm-pca. Please install the renamed package.","_npmVersion":"6.9.0","description":"Node SDK for AWS Certificate Manager Private Certificate Authority","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":{"rimraf":"^2.6.2","typedoc":"^0.14.2","typescript":"~3.4.0","@types/node":"^10.0.0","@aws-sdk/client-documentation-generator":"^0.1.0-preview.3"},"_npmOperationalInternal":{"tmp":"tmp/client-acm-pca-node_0.1.0-preview.3_1568908794258_0.8606978417456281","host":"s3://npm-registry-packages"}},"0.1.0-preview.4":{"name":"@aws-sdk/client-acm-pca-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-acm-pca-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":"f70af5a4608e408347c3bd4c91828fb9d329ae74","tarball":"https://registry.npmjs.org/@aws-sdk/client-acm-pca-node/-/client-acm-pca-node-0.1.0-preview.4.tgz","fileCount":614,"integrity":"sha512-x9/Xf5ZN9jjsMpC0wBwuEib9+409EQBJXVAZ1XvhwCvhc7VHi7C9d3yfox12GR6IVr9qtWuqPkDY2FZmKIFhdw==","signatures":[{"sig":"MEYCIQD9CUof1IvcnW1AiZ+F8Xl5/sVdl+d461Wrs1tbWqvmBwIhAN9CymrbjInvamI1rja5cWpBvqKfQvTK9Fg915+csbzQ","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":392142,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJduM/NCRA9TVsSAnZWagAArVMP/iSvX5RKRI8CtZC1cxIA\n8KFgGZKWtDHZ5HrNATjFgs6g0UHJIItBkw67d3Fvklm1Otiesm0clYU9t8oA\nDXOp6f7Dz7RWK7kA4kGizmV9oJkPlF+BtrZcZxvE97jN4HXWIkv/sLeznFrH\nO8FTqk5SIl0O5+/IgEh1FGirkY3FGUpquj/oVMqpfqvsLLEO8dYmRsqa4bbK\nUG/2x3zAgnNk6e05Fci7c8uZdhD+kcW+z6B+bnQ3rQi9ROfnvnwm7Rk0Y3Jx\n+pkMLvA0zIAyVNDgDC1znyCpwPFdjvthACmhq5b6HpagSWR3bdgPEYIyhGU5\nLsNDS7MemQ21Pi5qGOkmBJ4Kr1hx2ePKkF1KJ+8YfJimX7gL32Tr7oK/8ogH\nCSaZpqRE7ew6gYt3LHyO3rxKVKiitW1N3UExZ4bGzN4JzD4YenD0qy1wG8qg\n5MtgU6HXgc3Pky0tHEgWeFMznAgqv2Y6nFGy1TtV+62ZsCYAE20vVgkOgz22\n3fde8qRyZRURaSypGwcEKxjfDUpy96HuUVjmomca4dg918Bf+2+kg3rRT9A3\n+5/igy8zSawVYHG0uPWPJEZqwwfRX88tonAJSUZH2pdlTA5eRTwAeMRM7is0\nCM9P/cm5elhjo164JT273Lr7rpUB/7Bl0hvSRJ970R5t7OVIdR2dKwEnjudE\nGFvf\r\n=hiWX\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./index.js","types":"./index.d.ts","readme":"# @aws-sdk/client-acm-pca-node\n\n[![NPM version](https://img.shields.io/npm/v/@aws-sdk/client-acm-pca-node/preview.svg)](https://www.npmjs.com/package/@aws-sdk/client-acm-pca-node)\n[![NPM downloads](https://img.shields.io/npm/dm/@aws-sdk/client-acm-pca-node.svg)](https://www.npmjs.com/package/@aws-sdk/client-acm-pca-node)\n\n## Description\n\n<p>This is the <i>ACM Private CA API Reference</i>. It provides descriptions, syntax, and usage examples for each of the actions and data types involved in creating and managing private certificate authorities (CA) for your organization.</p> <p>The documentation for each action shows the Query API request parameters and the XML response. Alternatively, you can use one of the AWS SDKs to access an API that's tailored to the programming language or platform that you're using. For more information, see <a href=\"https://aws.amazon.com/tools/#SDKs\">AWS SDKs</a>.</p> <note> <p>Each ACM Private CA API action has a throttling limit which determines the number of times the action can be called per second. For more information, see <a href=\"https://docs.aws.amazon.com/acm-pca/latest/userguide/PcaLimits.html#PcaLimits-api\">API Rate Limits in ACM Private CA</a> in the ACM Private CA user guide.</p> </note>\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-acm-pca-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(`ACMPCAClient`) and the commands you need, for example `CreateCertificateAuthorityCommand`:\n\n```javascript\n//JavaScript\nconst {\n  ACMPCAClient,\n  CreateCertificateAuthorityCommand\n} = require(\"@aws-sdk/client-acm-pca-node\");\n```\n\n```javascript\n//TypeScript\nimport {\n  ACMPCAClient,\n  CreateCertificateAuthorityCommand\n} from \"@aws-sdk/client-acm-pca-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 aCMPCA = new ACMPCAClient({region: 'region'});\n//clients can be shared by different commands\nconst params = {\n  CertificateAuthorityConfiguration: { /**an object specifying CertificateAuthorityConfiguration*/ },\n  CertificateAuthorityType: /**a string value*/,\n};\nconst createCertificateAuthorityCommand = new CreateCertificateAuthorityCommand(params);\naCMPCA.send(createCertificateAuthorityCommand).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 aCMPCA.send(createCertificateAuthorityCommand);\n  // do something\n} catch (error) {\n  // error handling\n}\n```\n\n```javascript\n// callback\naCMPCA.send(createCertificateAuthorityCommand, (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-acm-pca-node\";\nconst aCMPCA = new AWS.ACMPCA({ region: \"region\" });\naCMPCA.createCertificateAuthority(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 aCMPCA.send(createCertificateAuthorityCommand);\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-acm-pca-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-acm-pca-node has been renamed to @aws-sdk/client-acm-pca. Please install the renamed package.","_npmVersion":"6.9.0","description":"Node SDK for AWS Certificate Manager Private Certificate Authority","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":{"rimraf":"^2.6.2","typedoc":"^0.14.2","typescript":"~3.4.0","@types/node":"^10.0.0","@aws-sdk/client-documentation-generator":"^0.1.0-preview.3"},"_npmOperationalInternal":{"tmp":"tmp/client-acm-pca-node_0.1.0-preview.4_1572392909110_0.18732567156317903","host":"s3://npm-registry-packages"}},"0.1.0-preview.5":{"name":"@aws-sdk/client-acm-pca-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-acm-pca-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":"036eac2c196a2199ba0ecb38a27bf6997fbd5ea4","tarball":"https://registry.npmjs.org/@aws-sdk/client-acm-pca-node/-/client-acm-pca-node-0.1.0-preview.5.tgz","fileCount":614,"integrity":"sha512-w/wzlcWg8LpIFfVCxZGxPUOVICLVLJXdLArZ3lAbg5hbTZZ1eF1ytDENO/Ucqzjp0+IS4Y5rT9L3n5asrbc93A==","signatures":[{"sig":"MEUCIBSLaIWj6JcjjPbd9AFUxBJ/HDg5TsUa3Ery5ctIa1DWAiEA5dqPt2hc8DytT+i74MM9doOejWO3A2R51QGo3+d0Cps=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":392386,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdueLECRA9TVsSAnZWagAAgzQP/0MJbTuSqlUAdkrRKXae\nELb+dAQzid+9OjtpDLViKBSfseewEgqNi6NctpASbQLUS5bFBYoYYoQrjamf\nYd8Ag/FBr2s1791tNQBmvJH4WpSBV5i8Si5pjs0XMMhp7qIoDGMJ92ix10uv\nDxJ6ksPKVxkq3NtPiWYmxs4hFTVnbZwYic1CnbF6crsz7XK2JfMizlj0PNk+\n9jhlAUUblVgMd5mfRpOSn8hjF7+Oh7AwKZ5WdFChJPd5jyhrJoAjpBpM1qeD\nhBY6+BcijhU6OEnFFkTeK74/yBLW+LdNP/09eei2/eElsWeh3nPf9jxbaiS0\nhfE5WZFfzRaBy46Wwt/3w8uQQ8EmcKhj2GpiarsqYibFGMBNNqAGo9Md/BAO\nGQAg7ChL4/AsAMfRkZz7kQAnUf8Qn8bVBopE3gzxRRdlPK0ViebUx1g30mGT\nK8L9Duh8dPLCtQ4IHjXb8w4GLuhFqQ48hu6cqjEcIMsieXu1fySsZmLfVRtm\nshlVF2TnEULmPm8TarwKnJm8pf3ARG3x2v7dzY7J0kFNtpOiwIBtmOBjj4dX\n+ucQdGe/8Bxlj6r7gDsvep3ALaiZTJYFxlNIdb4s6Dn3Jru3cUupTeBSB/j7\n9bWltYWxzCc+etEouotpj6ooABl34ALIaBcV/qcwWmXCpgNuJ15JlCMZnX4O\nc+wk\r\n=C+nv\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./index.js","types":"./index.d.ts","readme":"# @aws-sdk/client-acm-pca-node\n\n[![NPM version](https://img.shields.io/npm/v/@aws-sdk/client-acm-pca-node/preview.svg)](https://www.npmjs.com/package/@aws-sdk/client-acm-pca-node)\n[![NPM downloads](https://img.shields.io/npm/dm/@aws-sdk/client-acm-pca-node.svg)](https://www.npmjs.com/package/@aws-sdk/client-acm-pca-node)\n\n## Description\n\n<p>This is the <i>ACM Private CA API Reference</i>. It provides descriptions, syntax, and usage examples for each of the actions and data types involved in creating and managing private certificate authorities (CA) for your organization.</p> <p>The documentation for each action shows the Query API request parameters and the XML response. Alternatively, you can use one of the AWS SDKs to access an API that's tailored to the programming language or platform that you're using. For more information, see <a href=\"https://aws.amazon.com/tools/#SDKs\">AWS SDKs</a>.</p> <note> <p>Each ACM Private CA API action has a throttling limit which determines the number of times the action can be called per second. For more information, see <a href=\"https://docs.aws.amazon.com/acm-pca/latest/userguide/PcaLimits.html#PcaLimits-api\">API Rate Limits in ACM Private CA</a> in the ACM Private CA user guide.</p> </note>\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-acm-pca-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(`ACMPCAClient`) and the commands you need, for example `CreateCertificateAuthorityCommand`:\n\n```javascript\n//JavaScript\nconst {\n  ACMPCAClient,\n  CreateCertificateAuthorityCommand\n} = require(\"@aws-sdk/client-acm-pca-node\");\n```\n\n```javascript\n//TypeScript\nimport {\n  ACMPCAClient,\n  CreateCertificateAuthorityCommand\n} from \"@aws-sdk/client-acm-pca-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 aCMPCA = new ACMPCAClient({region: 'region'});\n//clients can be shared by different commands\nconst params = {\n  CertificateAuthorityConfiguration: { /**an object specifying CertificateAuthorityConfiguration*/ },\n  CertificateAuthorityType: /**a string value*/,\n};\nconst createCertificateAuthorityCommand = new CreateCertificateAuthorityCommand(params);\naCMPCA.send(createCertificateAuthorityCommand).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 aCMPCA.send(createCertificateAuthorityCommand);\n  // do something\n} catch (error) {\n  // error handling\n}\n```\n\n```javascript\n// callback\naCMPCA.send(createCertificateAuthorityCommand, (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-acm-pca-node\";\nconst aCMPCA = new AWS.ACMPCA({ region: \"region\" });\naCMPCA.createCertificateAuthority(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 aCMPCA.send(createCertificateAuthorityCommand);\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-acm-pca-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-acm-pca-node has been renamed to @aws-sdk/client-acm-pca. Please install the renamed package.","_npmVersion":"6.9.0","description":"Node SDK for AWS Certificate Manager Private Certificate Authority","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":{"rimraf":"^2.6.2","typedoc":"^0.14.2","typescript":"~3.4.0","@types/node":"^10.0.0","@aws-sdk/client-documentation-generator":"^0.1.0-preview.3"},"_npmOperationalInternal":{"tmp":"tmp/client-acm-pca-node_0.1.0-preview.5_1572463300085_0.5816729299808137","host":"s3://npm-registry-packages"}},"0.1.0-preview.6":{"name":"@aws-sdk/client-acm-pca-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-acm-pca-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":"1bd8cc2192710209485aeac2977b6c797050f238","tarball":"https://registry.npmjs.org/@aws-sdk/client-acm-pca-node/-/client-acm-pca-node-0.1.0-preview.6.tgz","fileCount":614,"integrity":"sha512-vhhyccNAtBDCTBZTdLT9t39TiCp6MW8sDhTxtPNsPU4VVphTO6XzPvnCBalH7p0pNXLUW8zieSDRHtAogFTs3A==","signatures":[{"sig":"MEQCIDWZPwgS/Uk0UobaMcHhrQZ0Y2gghmTLG4wXciWdS+YOAiAfoThpd/HsoJNMyyBxH0I1N8hoB6h6aUzmCdvQRdikkA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":392658,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd1FPVCRA9TVsSAnZWagAAA/YQAJDBov7KjEHPE/bnI8CM\nxa2TYEf9BQsVfqYiP/dttf1q7L/8KT0l4DZxIYH7IVwiZsomenw6VFP/YynS\n7eXsj3/JO1jacwVVJSTGAbJJ/i77bBycYhCAhHj7/0X60bLxhypRMgTH1V9f\nV6jUeTbEPJeqd4QYsAAmfny8y2U2lp10WeC/hiKcB0nLIFp1bRwH2BFYpNGp\nP8tCcz/CbumC+hvqLFeelO9vGjOUnEeeHudGTl6GTHhBJEeUXqcd19zQpNSG\nHmMdpMeN8qIpImnJWa6ouAvlvX4xIGpxupqcLvL7sD1TfjKn5e6lUp60brER\n95P598iOR3pR464xApLlj1Ygh35EJW2S9/NKoSd76w+mhSYCIMx1ohEVjYfq\n9AWpPhh1I9IovHfvFgrX585rMILBSy1v6gt1xWuI/55eW32p2GuSIWN7IQ4x\nGFkCUZQS9/dhWmE/lWV3123DdJZS+6d7xdtURzHi5cWN1LXgZO6SmU7S43Eu\n64FV8EAdomy9anZKD/8iXFbBnRJxOyAYQylRHZjRo0o6nNHEeKykWXXNv0el\nScpW498suCYr8TJwdAkefrgI2hXCgNEQNr3aMHT6IWaS1IGf5hzc+SIvcgMx\nQXqanbF3CSt8gfTn1Mu72RKys4Bb9K40WP/vh1AXhG6SUGOa8dZ2/x7tufy9\n79xP\r\n=k47+\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./index.js","types":"./index.d.ts","readme":"# @aws-sdk/client-acm-pca-node\n\n[![NPM version](https://img.shields.io/npm/v/@aws-sdk/client-acm-pca-node/preview.svg)](https://www.npmjs.com/package/@aws-sdk/client-acm-pca-node)\n[![NPM downloads](https://img.shields.io/npm/dm/@aws-sdk/client-acm-pca-node.svg)](https://www.npmjs.com/package/@aws-sdk/client-acm-pca-node)\n\n## Description\n\n<p>This is the <i>ACM Private CA API Reference</i>. It provides descriptions, syntax, and usage examples for each of the actions and data types involved in creating and managing private certificate authorities (CA) for your organization.</p> <p>The documentation for each action shows the Query API request parameters and the XML response. Alternatively, you can use one of the AWS SDKs to access an API that's tailored to the programming language or platform that you're using. For more information, see <a href=\"https://aws.amazon.com/tools/#SDKs\">AWS SDKs</a>.</p> <note> <p>Each ACM Private CA API action has a throttling limit which determines the number of times the action can be called per second. For more information, see <a href=\"https://docs.aws.amazon.com/acm-pca/latest/userguide/PcaLimits.html#PcaLimits-api\">API Rate Limits in ACM Private CA</a> in the ACM Private CA user guide.</p> </note>\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-acm-pca-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(`ACMPCAClient`) and the commands you need, for example `CreateCertificateAuthorityCommand`:\n\n```javascript\n//JavaScript\nconst {\n  ACMPCAClient,\n  CreateCertificateAuthorityCommand\n} = require(\"@aws-sdk/client-acm-pca-node\");\n```\n\n```javascript\n//TypeScript\nimport {\n  ACMPCAClient,\n  CreateCertificateAuthorityCommand\n} from \"@aws-sdk/client-acm-pca-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 aCMPCA = new ACMPCAClient({region: 'region'});\n//clients can be shared by different commands\nconst params = {\n  CertificateAuthorityConfiguration: { /**an object specifying CertificateAuthorityConfiguration*/ },\n  CertificateAuthorityType: /**a string value*/,\n};\nconst createCertificateAuthorityCommand = new CreateCertificateAuthorityCommand(params);\naCMPCA.send(createCertificateAuthorityCommand).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 aCMPCA.send(createCertificateAuthorityCommand);\n  // do something\n} catch (error) {\n  // error handling\n}\n```\n\n```javascript\n// callback\naCMPCA.send(createCertificateAuthorityCommand, (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-acm-pca-node\";\nconst aCMPCA = new AWS.ACMPCA({ region: \"region\" });\naCMPCA.createCertificateAuthority(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 aCMPCA.send(createCertificateAuthorityCommand);\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-acm-pca-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-acm-pca-node has been renamed to @aws-sdk/client-acm-pca. Please install the renamed package.","_npmVersion":"6.9.0","description":"Node SDK for AWS Certificate Manager Private Certificate Authority","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":{"rimraf":"^2.6.2","typedoc":"^0.14.2","typescript":"~3.4.0","@types/node":"^10.0.0","@aws-sdk/client-documentation-generator":"^0.1.0-preview.3"},"_npmOperationalInternal":{"tmp":"tmp/client-acm-pca-node_0.1.0-preview.6_1574196181504_0.7519201905458863","host":"s3://npm-registry-packages"}}},"time":{"created":"2019-09-09T17:46:27.583Z","modified":"2025-03-27T18:39:48.323Z","0.1.0-preview.2":"2019-09-09T17:46:28.157Z","0.1.0-preview.3":"2019-09-19T15:59:54.494Z","0.1.0-preview.4":"2019-10-29T23:48:29.246Z","0.1.0-preview.5":"2019-10-30T19:21:40.335Z","0.1.0-preview.6":"2019-11-19T20:43:01.671Z"},"author":{"url":"https://aws.amazon.com/javascript/","name":"AWS SDK for JavaScript Team"},"license":"Apache-2.0","description":"Node SDK for AWS Certificate Manager Private Certificate Authority","maintainers":[{"email":"osa-3p@amazon.com","name":"amzn-oss"},{"email":"aws-sdk-js-automation@amazon.com","name":"aws-sdk-bot"}],"readme":"","readmeFilename":""}