{"_id":"@aws-sdk/client-marketplace-entitlement-service-node","_rev":"18-7dea795876b44d4c487671e5026eade9","name":"@aws-sdk/client-marketplace-entitlement-service-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-marketplace-entitlement-service-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-marketplace-entitlement-service-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":"1819e72844bd7987037635f5dd1c08cd764afcad","tarball":"https://registry.npmjs.org/@aws-sdk/client-marketplace-entitlement-service-node/-/client-marketplace-entitlement-service-node-0.1.0-preview.2.tgz","fileCount":86,"integrity":"sha512-jlZ2ClR94NLXlnOfQhuC7m++qJHQZq6ViO1HlloKBfFaFmaszZO7//LgWyFGQScWiJuDMB+ljTqV2d5L1F2XQw==","signatures":[{"sig":"MEUCIBU7qPIXVb6MzCl6FDKTHCOApB1LwnqZYxOIfaGy2wlIAiEA80D0kECdhnHlbxLfEPJ4oXjkZS4mFz0fOZK+x+cgwqE=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":74042,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJddpHNCRA9TVsSAnZWagAArgUQAJfIbeV4HM157rFdqnqJ\n2KDq47fxsuogdoRsdiR2X1yFTRQXurOphc2kCNzjw1Ya+gaSLD+u1VVwz10z\n66JQLNwD0s0LfJpi7QTP8uz5trcrdgSdCfBgCBslk1DL0wDJnSDVQDNw1q04\nk1XhjVcBqutio8Gr3nk4OH8lZ3mqiD0bqm5Nt7WW9OofkhZ93nUikw57dVv3\neXl0w1Cn3jDSsmSsWn4HtPx2SSl5WIK7w5H+xP+r82jT5aeuEH7deWCIqtJL\nZRTruYjmcOJ9UvVjBmS/0g2G1OMreV7E+w+/5Fn4QS+7xmffce9Mt/UuWBa0\nKeSfu55xgJxCPPrU0fsbiGm9Nt8SOC2Tevv5MhHHb7hZ10NOCtKlJsG8RREI\nFHcUmtCuOu+TTKj1mpMIBhE2FQlmYqvBSjleKFq0sEj8DmVRmKh8zUdL9Ubb\n/+YiFJ9jJIcXXs6qCI4Rab5TCMg6ihmOMz19GwReAZOusGlAEY9vJvpjQvfa\n8/lixTgK5X54PJEewb9gxniby7QBjTG/boJi6rx4ertX6tVRWYzJgrvwTPsM\n3KaSGHgaXRunt7cUGHLP0dCi2C4RgHWSWRme0Zdd02GUY+LkrI4Hs8B835Mb\n9mRim07OnH+6tvBe3n+NNuykcMdQ2DLq7djhQ4IQ8i8Y7/+kQDy7tpa+GViW\nElQ+\r\n=//v1\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-marketplace-entitlement-service-node has been renamed to @aws-sdk/client-marketplace-entitlement-service. Please install the renamed package.","_npmVersion":"6.9.0","description":"Node SDK for AWS Marketplace Entitlement Service","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-marketplace-entitlement-service-node_0.1.0-preview.2_1568051660360_0.8988138888227744","host":"s3://npm-registry-packages"}},"0.1.0-preview.3":{"name":"@aws-sdk/client-marketplace-entitlement-service-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-marketplace-entitlement-service-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":"6f8d81e10c7f5887f774378e013202d99824d4dc","tarball":"https://registry.npmjs.org/@aws-sdk/client-marketplace-entitlement-service-node/-/client-marketplace-entitlement-service-node-0.1.0-preview.3.tgz","fileCount":86,"integrity":"sha512-LkesRKm8ZeIrj2JZZgdaQ6DVh5XhMHU/cqjdMVf80OEKpB3x9Q4V1hxKVzUKXNeFbo2Fd4zQ/gauyyL1PZHfdA==","signatures":[{"sig":"MEYCIQCFGHv3fcL384lSXnvPvfSOxMMjlekhx/XSdEbyKmgSVgIhAPT7DWe9rdXPkPxzdwTSuhU1GGwzx6ftHNrcKVXlbHFY","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":72859,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdg6f9CRA9TVsSAnZWagAAgU0P/3TV0k5eEWrV6J/krbnt\n8h6XPR4d1LmIezfcd/II4s9OGtE60tkZH7RUATXeQmtZ07rO6YKFbLJ4fsYl\n7X9lbFCk4eg4uDVCUXIrB7PxFCWjHz5+5wFX6AVe34G9/Ib6nPKcdLaLCdL+\nG6kkfQqc3pQ3+3IfRDvfIgKkUl7eYdaq2kUm9dRa/Yyxk3dpNq5f6sW4mFmb\nJ8YtV4YFXctJyKXesE8NPCer3c5v70NYUIHZK58fLl8dDVhVa4g2y/jf0IOv\nemirVzP6sn5Ypv8+y20ir2xqS5YBTyOq3zbl2N79Ajh92Qzpf3DF9D05yu3t\nPUgw49CsrCIvuoIrysH/DcxdrahwnLpwqeQbLZb+InJ5PCtDpXCnsqhIfEru\ntif9qGDOYBCeH5Elpq9rbCe8qzDrt+Ag1QLrGYZE7YTFcN0M8Qk79Pvep7Gz\nwPATVX+ETeSb9ntl3ma6VxFKnhoyl3ts3bie5CIcgh/fuOUynDjLJ/2G8LKK\nwKCix583hj5dYt5lcmYLOGd9YG1VpPlB2y+JMdrymNNJ/j5AoaKDNXl+2uAV\n+cUtMIzYvmI2lL9UKXJTVgVtTa2CcXkJK+ibOuTCQ9jR9eUSG1jiiRatyQGD\ngpJDvrvO/G43R97xJAMr+IT9fkxTHpc/elXZLJhnpd923dimoUP1hbSCrzYq\nm/2r\r\n=paDX\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./index.js","types":"./index.d.ts","readme":"# @aws-sdk/client-marketplace-entitlement-service-node\n\n[![NPM version](https://img.shields.io/npm/v/@aws-sdk/client-marketplace-entitlement-service-node/preview.svg)](https://www.npmjs.com/package/@aws-sdk/client-marketplace-entitlement-service-node)\n[![NPM downloads](https://img.shields.io/npm/dm/@aws-sdk/client-marketplace-entitlement-service-node.svg)](https://www.npmjs.com/package/@aws-sdk/client-marketplace-entitlement-service-node)\n\n## Description\n\n<fullname>AWS Marketplace Entitlement Service</fullname> <p>This reference provides descriptions of the AWS Marketplace Entitlement Service API.</p> <p>AWS Marketplace Entitlement Service is used to determine the entitlement of a customer to a given product. An entitlement represents capacity in a product owned by the customer. For example, a customer might own some number of users or seats in an SaaS application or some amount of data capacity in a multi-tenant database.</p> <p> <b>Getting Entitlement Records</b> </p> <ul> <li> <p> <i>GetEntitlements</i>- Gets the entitlements for a Marketplace product.</p> </li> </ul>\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-marketplace-entitlement-service-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(`MarketplaceEntitlementServiceClient`) and the commands you need, for example `GetEntitlementsCommand`:\n\n```javascript\n//JavaScript\nconst {\n  MarketplaceEntitlementServiceClient\n} = require(\"@aws-sdk/client-marketplace-entitlement-service-node/MarketplaceEntitlementServiceClient\");\nconst {\n  GetEntitlementsCommand\n} = require(\"@aws-sdk/client-marketplace-entitlement-service-node/commands/GetEntitlementsCommand\");\n```\n\n```javascript\n//TypeScript\nimport { MarketplaceEntitlementServiceClient } from \"@aws-sdk/client-marketplace-entitlement-service-node/MarketplaceEntitlementServiceClient\";\nimport { GetEntitlementsCommand } from \"@aws-sdk/client-marketplace-entitlement-service-node/commands/GetEntitlementsCommand\";\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 marketplaceEntitlementService = new MarketplaceEntitlementServiceClient({region: 'region'});\n//clients can be shared by different commands\nconst params = {\n  ProductCode: /**a string value*/,\n};\nconst getEntitlementsCommand = new GetEntitlementsCommand(params);\nmarketplaceEntitlementService.send(getEntitlementsCommand).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 marketplaceEntitlementService.send(getEntitlementsCommand);\n  // do something\n} catch (error) {\n  // error handling\n}\n```\n\n```javascript\n// callback\nmarketplaceEntitlementService.send(getEntitlementsCommand, (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-marketplace-entitlement-service-node/MarketplaceEntitlementService\";\nconst marketplaceEntitlementService = new AWS.MarketplaceEntitlementService({\n  region: \"region\"\n});\nmarketplaceEntitlementService.getEntitlements(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 marketplaceEntitlementService.send(getEntitlementsCommand);\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-marketplace-entitlement-service-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-marketplace-entitlement-service-node has been renamed to @aws-sdk/client-marketplace-entitlement-service. Please install the renamed package.","_npmVersion":"6.9.0","description":"Node SDK for AWS Marketplace Entitlement Service","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-marketplace-entitlement-service-node_0.1.0-preview.3_1568909309320_0.5459773667909797","host":"s3://npm-registry-packages"}},"0.1.0-preview.4":{"name":"@aws-sdk/client-marketplace-entitlement-service-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-marketplace-entitlement-service-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":"b3552a722c1469c2b5554f92415bbd1cef0d4952","tarball":"https://registry.npmjs.org/@aws-sdk/client-marketplace-entitlement-service-node/-/client-marketplace-entitlement-service-node-0.1.0-preview.4.tgz","fileCount":86,"integrity":"sha512-kZ6ddmSQ+V2K0i+Z6Jr0wtKfDDJwDy3nezD+/ADsF+Y9wTReWjF3qiKKLglUyYpxJw62CUDSDwJ2Bhuf8QxzZg==","signatures":[{"sig":"MEUCIQCVJ/38BQQOgJ1K1yptvMbcKJl4B3xIygk5X5rFER++/wIgOk1MkZ8G0b+v2PBxrW/GWyxL48qos0geyExA2+HP56w=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":72785,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJduNFcCRA9TVsSAnZWagAAtAoQAIbTdc1IuCSl4Cs5rfdh\nnfHb+2N7KY73RxbYN+UZ+2KcVMvJbhMJMwtcqmwCgR9rl7oVtdkfKIrDDTKt\nWNXhjUCl3chcwuLpkRrmpngpSDc8b8APBg1RYA4g7g38l2+hP+PEIYdu8zP0\nksL2y+ei6Gi7NgahfWLdd2AkJpNRD4mOCXCiWFKgFKBzR68s693OjQMCPgRw\nXDhUIBwx1mOpiVxcxraACcFK90wU/VHphikpfm9AG6fCWs68VwaicEFTYSfz\nd+sxuA4S5ydkDOaPXbXllhYyFMRANDY/lQ+XJmaW5vbkU8d9/RmHN0SS9e3J\n/RJqSSyToOHGvi1NzJAYXcz8QuspO0zeNyXZM8aIFrzgUH3vVst5mwoZDSVt\nkhkGIX1h1H96ugXCrYDFQy5CvUXUqCmQZgphrvEfbyUxkm9RAoWEkzIXrjPD\nItshGAsVn43nHDOHEQUCq2jbwEe9kHRfdYvu0i542zE7Kt3kCjclhvWOn34G\npQZDYRKtDVhY6T1CNBcphpR8xaBx3WvRLoBJWEBH18zajQhk+Z0XPBguKZ0e\nGjBjGr2ZCwLiaCNO6ubt+pTTJ9dfg7tRt0KQTr2afU2SNZmZHRN6JR/ubtdw\nxNnKMMllQs09BRmT1bCz0oMVKHLt5MtAo1a3hZJhmkA+9V7EqAqQqONUl1+F\n4pkk\r\n=eQZ4\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./index.js","types":"./index.d.ts","readme":"# @aws-sdk/client-marketplace-entitlement-service-node\n\n[![NPM version](https://img.shields.io/npm/v/@aws-sdk/client-marketplace-entitlement-service-node/preview.svg)](https://www.npmjs.com/package/@aws-sdk/client-marketplace-entitlement-service-node)\n[![NPM downloads](https://img.shields.io/npm/dm/@aws-sdk/client-marketplace-entitlement-service-node.svg)](https://www.npmjs.com/package/@aws-sdk/client-marketplace-entitlement-service-node)\n\n## Description\n\n<fullname>AWS Marketplace Entitlement Service</fullname> <p>This reference provides descriptions of the AWS Marketplace Entitlement Service API.</p> <p>AWS Marketplace Entitlement Service is used to determine the entitlement of a customer to a given product. An entitlement represents capacity in a product owned by the customer. For example, a customer might own some number of users or seats in an SaaS application or some amount of data capacity in a multi-tenant database.</p> <p> <b>Getting Entitlement Records</b> </p> <ul> <li> <p> <i>GetEntitlements</i>- Gets the entitlements for a Marketplace product.</p> </li> </ul>\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-marketplace-entitlement-service-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(`MarketplaceEntitlementServiceClient`) and the commands you need, for example `GetEntitlementsCommand`:\n\n```javascript\n//JavaScript\nconst {\n  MarketplaceEntitlementServiceClient,\n  GetEntitlementsCommand\n} = require(\"@aws-sdk/client-marketplace-entitlement-service-node\");\n```\n\n```javascript\n//TypeScript\nimport {\n  MarketplaceEntitlementServiceClient,\n  GetEntitlementsCommand\n} from \"@aws-sdk/client-marketplace-entitlement-service-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 marketplaceEntitlementService = new MarketplaceEntitlementServiceClient({region: 'region'});\n//clients can be shared by different commands\nconst params = {\n  ProductCode: /**a string value*/,\n};\nconst getEntitlementsCommand = new GetEntitlementsCommand(params);\nmarketplaceEntitlementService.send(getEntitlementsCommand).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 marketplaceEntitlementService.send(getEntitlementsCommand);\n  // do something\n} catch (error) {\n  // error handling\n}\n```\n\n```javascript\n// callback\nmarketplaceEntitlementService.send(getEntitlementsCommand, (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-marketplace-entitlement-service-node\";\nconst marketplaceEntitlementService = new AWS.MarketplaceEntitlementService({\n  region: \"region\"\n});\nmarketplaceEntitlementService.getEntitlements(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 marketplaceEntitlementService.send(getEntitlementsCommand);\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-marketplace-entitlement-service-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-marketplace-entitlement-service-node has been renamed to @aws-sdk/client-marketplace-entitlement-service. Please install the renamed package.","_npmVersion":"6.9.0","description":"Node SDK for AWS Marketplace Entitlement Service","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-marketplace-entitlement-service-node_0.1.0-preview.4_1572393307776_0.19863718539087927","host":"s3://npm-registry-packages"}},"0.1.0-preview.5":{"name":"@aws-sdk/client-marketplace-entitlement-service-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-marketplace-entitlement-service-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":"bb4ab986f1d8ad1fc62339c64946ebdc266173b8","tarball":"https://registry.npmjs.org/@aws-sdk/client-marketplace-entitlement-service-node/-/client-marketplace-entitlement-service-node-0.1.0-preview.5.tgz","fileCount":86,"integrity":"sha512-onu1nNNckB2vbw3Eitf/FLvscPeYpcfw8YaOUibfkpCwmE2TegFx6q5JW+7DDI7XtEVijiHUhwEGD1b6kB7KYA==","signatures":[{"sig":"MEQCIFwmok1AMlrCTlROi3j6AT4Qre2zDM5qtKwy3yQJ6QpBAiBmCF6cv7pq0BJVtTYW8IuqS1bmKbPPkm+J5GuaSPwB1w==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":73029,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdueTFCRA9TVsSAnZWagAAdvYP/i8IfmA3ipfcJr/BLdcX\no7ryRQWXqW9wzRLd0cFJ2FB9AujJ0YO+zPKmZZWBtstat2VQTjvWmL2tEUCU\nVkP6UORJdxxBzWEb6V3PZyga7IjGG0U+Goq5s27szL5ck2kO+iaSUpNJZEiO\nhgIel/tkSN3rIUmxzeTEhSdffG7HBjV3PMSqyeZp8ecEycXznwE1uD58OI5c\nurD4D3QmRdMcdWa06ji6cyf63gdnjwDf7uzK/bBap4SwYGLq+PHrY4QvG7jO\nF1XfMvtxZKUld3Fib+keWtInpdGcPN8lawo0hk7XwByugWuYS6teoA0VF94l\nhGRJobGKsx2USpN/alKJSoW1EB7NdxbpKj0UQMTgtsETsLqmVIHWJ5UP0Lru\n9DgnLF2xq+ZnvWjkkaKvyrkGrv7ZZVJwPubalsbbSjziPktBFp/SLI8j5J91\n1aioMxhsKbxipaUiQlxudEn+2UhKhf3oIRYynZhVM+fTPiu5X0fVdg3qAFRf\n1pbll0hp7LpKCZ7RBOmSwEzhRZU4jjVoNMiRcfXlNTUQpVACqlYdpAZVSCGQ\nKfat8qA28qmWSb9UNklupGRXxJ1gS25mM6wucVWdB/87hYwt+gasH6NVrMi8\n5rF+B564ScSEKDQJvy61uBVxWqFhvjruLoYok9jR+BRdcjQluC6CNVqUWU4N\n7ztK\r\n=4WtP\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./index.js","types":"./index.d.ts","readme":"# @aws-sdk/client-marketplace-entitlement-service-node\n\n[![NPM version](https://img.shields.io/npm/v/@aws-sdk/client-marketplace-entitlement-service-node/preview.svg)](https://www.npmjs.com/package/@aws-sdk/client-marketplace-entitlement-service-node)\n[![NPM downloads](https://img.shields.io/npm/dm/@aws-sdk/client-marketplace-entitlement-service-node.svg)](https://www.npmjs.com/package/@aws-sdk/client-marketplace-entitlement-service-node)\n\n## Description\n\n<fullname>AWS Marketplace Entitlement Service</fullname> <p>This reference provides descriptions of the AWS Marketplace Entitlement Service API.</p> <p>AWS Marketplace Entitlement Service is used to determine the entitlement of a customer to a given product. An entitlement represents capacity in a product owned by the customer. For example, a customer might own some number of users or seats in an SaaS application or some amount of data capacity in a multi-tenant database.</p> <p> <b>Getting Entitlement Records</b> </p> <ul> <li> <p> <i>GetEntitlements</i>- Gets the entitlements for a Marketplace product.</p> </li> </ul>\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-marketplace-entitlement-service-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(`MarketplaceEntitlementServiceClient`) and the commands you need, for example `GetEntitlementsCommand`:\n\n```javascript\n//JavaScript\nconst {\n  MarketplaceEntitlementServiceClient,\n  GetEntitlementsCommand\n} = require(\"@aws-sdk/client-marketplace-entitlement-service-node\");\n```\n\n```javascript\n//TypeScript\nimport {\n  MarketplaceEntitlementServiceClient,\n  GetEntitlementsCommand\n} from \"@aws-sdk/client-marketplace-entitlement-service-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 marketplaceEntitlementService = new MarketplaceEntitlementServiceClient({region: 'region'});\n//clients can be shared by different commands\nconst params = {\n  ProductCode: /**a string value*/,\n};\nconst getEntitlementsCommand = new GetEntitlementsCommand(params);\nmarketplaceEntitlementService.send(getEntitlementsCommand).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 marketplaceEntitlementService.send(getEntitlementsCommand);\n  // do something\n} catch (error) {\n  // error handling\n}\n```\n\n```javascript\n// callback\nmarketplaceEntitlementService.send(getEntitlementsCommand, (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-marketplace-entitlement-service-node\";\nconst marketplaceEntitlementService = new AWS.MarketplaceEntitlementService({\n  region: \"region\"\n});\nmarketplaceEntitlementService.getEntitlements(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 marketplaceEntitlementService.send(getEntitlementsCommand);\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-marketplace-entitlement-service-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-marketplace-entitlement-service-node has been renamed to @aws-sdk/client-marketplace-entitlement-service. Please install the renamed package.","_npmVersion":"6.9.0","description":"Node SDK for AWS Marketplace Entitlement Service","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-marketplace-entitlement-service-node_0.1.0-preview.5_1572463812892_0.8962891879191492","host":"s3://npm-registry-packages"}},"0.1.0-preview.6":{"name":"@aws-sdk/client-marketplace-entitlement-service-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-marketplace-entitlement-service-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":"489dc0e0e289f27d02c98c4b35f0da646a2a8ed3","tarball":"https://registry.npmjs.org/@aws-sdk/client-marketplace-entitlement-service-node/-/client-marketplace-entitlement-service-node-0.1.0-preview.6.tgz","fileCount":86,"integrity":"sha512-fcyDDfUsP9W1U/EFldIduoFzaqGibEw/7AsX/YwZ8lOzVYtn0duSoQnTSfhBICThZlhjGlnoZbgdJ7YSIH7+yw==","signatures":[{"sig":"MEUCIQDYGJPUnaB/9V2wXKPei75OQ2citE4Tc2Pw9zxovpyg9QIgA95jo0B/85VEaIS68pjJXKOAO0hKYAGGULd5iUp//Io=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":73301,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd1FSNCRA9TVsSAnZWagAAzkUP/ivYnQA4JCIbEns2Ph1x\ns1uT9WLcHKjw6bttPGC5Md5yHGF9x5+wu6WQe0OB6FhFlVwE6Ras7IZNgYzL\nYFiWGMpPVoc1jHpYHUub6/O8RnrVdgaJDaEXs4i49FNdnwA5ebm/hPD827BL\nu33DtcWkUHXgIfKBug1Bm8js40xR6fEz4XDmeSQ9EBk8Qi4QAQ8b4hNXbW7b\nBEhxM6ncX8h0dncUQHu2KR15wBK4WzrC3MccVWhwqeOl+O2+yP40POuN1LbQ\nnDxJgHN5jzuR/HmqaOLnYJkm+whp5HncefUbg7DFjVv55hxDvLlwEvCLTFRV\nl14pU5Kkb5ro3SgyMWurKjIndcskGVIz1DWMjvy1DCZQFQi2EIAOMbpaH24u\n5D0Icdbfg0WERE8ij/OdPE1FO8+1Dq5LQegK5lG3l88B/ysVZwJNXM9/HgAz\ngVybmUOgBge9u/MmzDpIZ8bL3ziS9ZVZXuRTt6IV2yGh0MYBHOOqviJh88pW\nTpzNYYd0nXkKBUoSnmBrKZm2/epdHZkbVAk1noxyDpLa1AINycKTsV3u+en9\npblfRQB6nU54zJe/4uv5crgMGWU3/wtBlDURUAlGwL1DoMufRU18PV9A/7Ut\ns9pGxczbtUCbLN5MqZdD8mIN9qP+S/SbSXl3j+AGPLqgB0mawB0IF6neWRxc\nmxRv\r\n=NbnY\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./index.js","types":"./index.d.ts","readme":"# @aws-sdk/client-marketplace-entitlement-service-node\n\n[![NPM version](https://img.shields.io/npm/v/@aws-sdk/client-marketplace-entitlement-service-node/preview.svg)](https://www.npmjs.com/package/@aws-sdk/client-marketplace-entitlement-service-node)\n[![NPM downloads](https://img.shields.io/npm/dm/@aws-sdk/client-marketplace-entitlement-service-node.svg)](https://www.npmjs.com/package/@aws-sdk/client-marketplace-entitlement-service-node)\n\n## Description\n\n<fullname>AWS Marketplace Entitlement Service</fullname> <p>This reference provides descriptions of the AWS Marketplace Entitlement Service API.</p> <p>AWS Marketplace Entitlement Service is used to determine the entitlement of a customer to a given product. An entitlement represents capacity in a product owned by the customer. For example, a customer might own some number of users or seats in an SaaS application or some amount of data capacity in a multi-tenant database.</p> <p> <b>Getting Entitlement Records</b> </p> <ul> <li> <p> <i>GetEntitlements</i>- Gets the entitlements for a Marketplace product.</p> </li> </ul>\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-marketplace-entitlement-service-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(`MarketplaceEntitlementServiceClient`) and the commands you need, for example `GetEntitlementsCommand`:\n\n```javascript\n//JavaScript\nconst {\n  MarketplaceEntitlementServiceClient,\n  GetEntitlementsCommand\n} = require(\"@aws-sdk/client-marketplace-entitlement-service-node\");\n```\n\n```javascript\n//TypeScript\nimport {\n  MarketplaceEntitlementServiceClient,\n  GetEntitlementsCommand\n} from \"@aws-sdk/client-marketplace-entitlement-service-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 marketplaceEntitlementService = new MarketplaceEntitlementServiceClient({region: 'region'});\n//clients can be shared by different commands\nconst params = {\n  ProductCode: /**a string value*/,\n};\nconst getEntitlementsCommand = new GetEntitlementsCommand(params);\nmarketplaceEntitlementService.send(getEntitlementsCommand).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 marketplaceEntitlementService.send(getEntitlementsCommand);\n  // do something\n} catch (error) {\n  // error handling\n}\n```\n\n```javascript\n// callback\nmarketplaceEntitlementService.send(getEntitlementsCommand, (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-marketplace-entitlement-service-node\";\nconst marketplaceEntitlementService = new AWS.MarketplaceEntitlementService({\n  region: \"region\"\n});\nmarketplaceEntitlementService.getEntitlements(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 marketplaceEntitlementService.send(getEntitlementsCommand);\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-marketplace-entitlement-service-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-marketplace-entitlement-service-node has been renamed to @aws-sdk/client-marketplace-entitlement-service. Please install the renamed package.","_npmVersion":"6.9.0","description":"Node SDK for AWS Marketplace Entitlement Service","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-marketplace-entitlement-service-node_0.1.0-preview.6_1574196365371_0.5665960161662982","host":"s3://npm-registry-packages"}}},"time":{"created":"2019-09-09T17:54:20.171Z","modified":"2025-03-27T18:44:29.410Z","0.1.0-preview.2":"2019-09-09T17:54:20.489Z","0.1.0-preview.3":"2019-09-19T16:08:29.436Z","0.1.0-preview.4":"2019-10-29T23:55:07.937Z","0.1.0-preview.5":"2019-10-30T19:30:13.029Z","0.1.0-preview.6":"2019-11-19T20:46:05.516Z"},"author":{"url":"https://aws.amazon.com/javascript/","name":"AWS SDK for JavaScript Team"},"license":"Apache-2.0","description":"Node SDK for AWS Marketplace Entitlement Service","maintainers":[{"email":"osa-3p@amazon.com","name":"amzn-oss"},{"email":"aws-sdk-js-automation@amazon.com","name":"aws-sdk-bot"}],"readme":"","readmeFilename":""}