{"_id":"@aws-sdk/client-marketplace-entitlement-service-browser","_rev":"19-012a7c444d4fdbbc76bea76eed03e902","name":"@aws-sdk/client-marketplace-entitlement-service-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-marketplace-entitlement-service-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-marketplace-entitlement-service-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":"ad18df7223cd930ed7a352a9de6eeee47b010eef","tarball":"https://registry.npmjs.org/@aws-sdk/client-marketplace-entitlement-service-browser/-/client-marketplace-entitlement-service-browser-0.1.0-preview.2.tgz","fileCount":86,"integrity":"sha512-w9btf2uJk+OYBA7LAvSa9fOx9KvJ4n5RHy+AmAWc43VPcJbDuyzZ0qaxIzgQG2ZUOWLhHwXHkZQvwhlgfsiDSg==","signatures":[{"sig":"MEUCIQCjQgNzvnA2fFgGFiZj2y27TJ4Zfm8lAjQn9L3daLNXrgIgDmOPD0MFyyGL0Pgx6OCtNfYjjMI/V6y71gsASDNVmFA=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":72843,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJddo79CRA9TVsSAnZWagAAJ0QP/AlTKIardCGWw2KEV70C\nx4iKdJWxQAWlXMzNKmrhW2xjlumz5wLbpBhPYnsrZs9ZTapGTyejL8DpOKj+\ntA6M1f8HudK0x4i8ha9qyjjgxisgCCYvfyxnIRhuWboND2FGDxHUgOOQeNvo\n0z2gVa8ZZ3+oQAaqlR1vN2CtUsqIIyA+5Z3MlpQhBZlTZrmStapfIH4ftvHQ\namQqU6HaaEPEBZlwgExaswloFZoMSPrsQYyFnxLJvLG9vcYsZAsqL9dCWqJk\nGAAdgIF18YS7Neprb8jCzm6uzp/RKR54QM8ZqlYHXzoO8lmzT/ArkvB6Ynya\n17NV+iZC8Fo5LsDHSIfNaniD3QcMpunit3DUvsgzxLBG9tnM8MTb77StW36+\nB11cMf7LWQHSVvFyriIsv+jd8iaBIISCUbUDq23JZICUk6Klb4GQF9NKpZPI\nkHShwipy3n7BU+ArFRs0ogl02+Td0IBtLtVZNg/Hcj0RssKjP9FXYecLS+yO\no7h9oOJBj16FUl7cyKVUUglw4iKUPUUmpRpvzwOdQGeN1KGW3rrBs+Jr9Y9Z\na8x+t/lfDOFi5Heb10rUup+IvIriq0gUvlr8YGd6P/a1fLKd1XEbWlHoxZ12\nOzN7aQ0rwZynnYDAWIdWSK1U08zZ2ApcjubMu4SBbgEXFe+spR7TiTg7YZMz\n3Ukd\r\n=qIt1\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-marketplace-entitlement-service-browser has been renamed to @aws-sdk/client-marketplace-entitlement-service. Please install the renamed package.","_npmVersion":"6.9.0","description":"Browser 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/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":{"rimraf":"^2.6.2","typedoc":"^0.14.2","typescript":"~3.4.0","@aws-sdk/client-documentation-generator":"^0.1.0-preview.3"},"_npmOperationalInternal":{"tmp":"tmp/client-marketplace-entitlement-service-browser_0.1.0-preview.2_1568050940300_0.8578074703613872","host":"s3://npm-registry-packages"}},"0.1.0-preview.3":{"name":"@aws-sdk/client-marketplace-entitlement-service-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-marketplace-entitlement-service-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":"db3148863a3d479f2ff0c1d238a02d0761e08c26","tarball":"https://registry.npmjs.org/@aws-sdk/client-marketplace-entitlement-service-browser/-/client-marketplace-entitlement-service-browser-0.1.0-preview.3.tgz","fileCount":86,"integrity":"sha512-PFd67EIn8+JFJuEIonY3jRMAuNVQZyaRQm77vwV2i1y57Dx3xIVtmwbCOcNHq/4Cm0Lz5YNgM8/0RUcOPlnsTw==","signatures":[{"sig":"MEYCIQCmB3mA+eCN8aH09acgnDF81OmFd1MRX3F18+hVja/RbwIhAOWk0im7jN+Mdt+sDZInROfdqLzZl7u5f8TQUYY3Mx13","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":73063,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdg6S3CRA9TVsSAnZWagAApKkP/iFR+c8R6zGCfZv3nM07\n39u8qrtoS+OCD2I9KV7mJKZZexzxyGH30h7ZtU92U8SbIbPSaPjv3oE4RwSE\n0hTMDAFKCOAI02RqvgUIufHFDdsZr6PtVk9YYfbprGxDexkYJrQQkxZ6SJXs\nG5soKi6Y+3wN/a32gv1clZ442nGgPSiO6fHMzVlsuOhXe0n3hGsNi5dAjepb\nPR7B6LirQDYlHBRbDM1GNUTlj8CyDN9X9pPARd991IA3yYigrbK1iCIIbTYt\nB9/1J4oUMlmIaEqV80pbbW/IH1KkxojEQ+lojX6m1kBQFGlCPA65Yt1w6krS\niajj3FT3tdsP+PXLnc+FsgsN3epm9fVap2jYJkJtV7DE39Upx09ESLe5gKe9\nZz2bjhI/1mooJWIcikm9928poxhnMtVGrABg3boHtl32E2Ys8j19Blglfuu8\n5rfOw8I2Ihu5+bEXFCt+r3nGUHz+nn/lhfIGKUN+Pg3MJvlQGjLzVphkoB3/\nDCvhSDDNWjTb6Vsfy7IAKld//YFIMvccmxiq8jqL0CNW9IkBTMa8Az0kIiWZ\nB/NqBr5blkiA4ftQGxmIkyk9jAOHdtpRGSNhMTc87EozXfZawQsAYtr/uedF\nFR8OEgjhCFXzK/a/DWpTRgU8fmd8uIr3K/cElc1QO4uU1cXHCbaZh+rY6e9S\nT9HD\r\n=cbgF\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./index.js","types":"./index.d.ts","readme":"# @aws-sdk/client-marketplace-entitlement-service-browser\n\n[![NPM version](https://img.shields.io/npm/v/@aws-sdk/client-marketplace-entitlement-service-browser/preview.svg)](https://www.npmjs.com/package/@aws-sdk/client-marketplace-entitlement-service-browser)\n[![NPM downloads](https://img.shields.io/npm/dm/@aws-sdk/client-marketplace-entitlement-service-browser.svg)](https://www.npmjs.com/package/@aws-sdk/client-marketplace-entitlement-service-browser)\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-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(`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-browser/MarketplaceEntitlementServiceClient\");\nconst {\n  GetEntitlementsCommand\n} = require(\"@aws-sdk/client-marketplace-entitlement-service-browser/commands/GetEntitlementsCommand\");\n```\n\n```javascript\n//TypeScript\nimport { MarketplaceEntitlementServiceClient } from \"@aws-sdk/client-marketplace-entitlement-service-browser/MarketplaceEntitlementServiceClient\";\nimport { GetEntitlementsCommand } from \"@aws-sdk/client-marketplace-entitlement-service-browser/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-browser/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-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-marketplace-entitlement-service-browser has been renamed to @aws-sdk/client-marketplace-entitlement-service. Please install the renamed package.","_npmVersion":"6.9.0","description":"Browser 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/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":{"rimraf":"^2.6.2","typedoc":"^0.14.2","typescript":"~3.4.0","@aws-sdk/client-documentation-generator":"^0.1.0-preview.3"},"_npmOperationalInternal":{"tmp":"tmp/client-marketplace-entitlement-service-browser_0.1.0-preview.3_1568908470707_0.7099105110586061","host":"s3://npm-registry-packages"}},"0.1.0-preview.4":{"name":"@aws-sdk/client-marketplace-entitlement-service-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-marketplace-entitlement-service-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":"da5ef50e75bf39fc5632a90a9970618e31658b2d","tarball":"https://registry.npmjs.org/@aws-sdk/client-marketplace-entitlement-service-browser/-/client-marketplace-entitlement-service-browser-0.1.0-preview.4.tgz","fileCount":86,"integrity":"sha512-gWf4fcvEowmH0NWBiFr5klvy37LK7v3QpSXVOz+r7wqmcQQRhA5Bsx8jn56G5zivBB7+H9/1N/Bmryd97AI5WA==","signatures":[{"sig":"MEUCIQDEsXZl+h5tZBtB+TS9Iz3IN6jEC1v3ELHi+GcEP1KxGgIgFJ71M8UStTw9zubhvMT9CZSvpAo5NdIJX4u5Y4SMPNw=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":72983,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJduM8FCRA9TVsSAnZWagAA2cUP/0QHaTUaisxIxgrooNMV\nmpGY8yd2GXSuEVrzkcikc7HYLEr0z5pffbRLhuqm2+qhYk1A+L3bfvzYexcZ\nKhmwdTgWkq8Qa56+P8EVL4etwyRqP9UVta3IBr28PQ0Qb+IwJoawZrHa+54E\nxlpCUR2prR80isEkIt53D1oGUIM7S69iJ7LrvY7ZGV1BdJnXONh5iVxGBN8n\niqW0FHezR8P4yGojPnPLcanZgEjSUM1EvHnVy1epkSeIscjd/yFpj86huEoh\nQrqhKrbSgGp93fgQdaQW18tOyn8jS7cAl18/ehPt1oA1ZJUAB84Pz2CatM9L\nf0fuim7/V2eV3/d7yxD+a5ZxQyEU2kQLolx6mZMhA525rylh+rNvGRcyVrKS\nA9Cq5cXGQyvR0FKi+UMPRw/p/EEGgtdInxndnaAbvIlYflqDlzYbpUgfgN1M\nXNzA0pM5LheDOXvl6ePTwchyV95fyph0XB4k1SNSAEQe/LJM5Xmm8zrX+loC\nPTWEEp4kEJ4B+D81ruGvKd0jd0KwdpneRAY6QsvajdhHMqa/2bq2/agbdOD1\npEJFY3Q302nSsq2iEqSM7wwYvq6u3MtJYDLdJpQMoCaYGB7jyA7ceMhUSN/c\nc+44CuiI808wfIzxemt7qDfAyOS10LzG8S80ZPAJIvSlY5UiqRz6dxoZw/Xb\nRX6c\r\n=xrKi\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./index.js","types":"./index.d.ts","readme":"# @aws-sdk/client-marketplace-entitlement-service-browser\n\n[![NPM version](https://img.shields.io/npm/v/@aws-sdk/client-marketplace-entitlement-service-browser/preview.svg)](https://www.npmjs.com/package/@aws-sdk/client-marketplace-entitlement-service-browser)\n[![NPM downloads](https://img.shields.io/npm/dm/@aws-sdk/client-marketplace-entitlement-service-browser.svg)](https://www.npmjs.com/package/@aws-sdk/client-marketplace-entitlement-service-browser)\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-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(`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-browser\");\n```\n\n```javascript\n//TypeScript\nimport {\n  MarketplaceEntitlementServiceClient,\n  GetEntitlementsCommand\n} from \"@aws-sdk/client-marketplace-entitlement-service-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 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-browser\";\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-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-marketplace-entitlement-service-browser has been renamed to @aws-sdk/client-marketplace-entitlement-service. Please install the renamed package.","_npmVersion":"6.9.0","description":"Browser 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/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":{"rimraf":"^2.6.2","typedoc":"^0.14.2","typescript":"~3.4.0","@aws-sdk/client-documentation-generator":"^0.1.0-preview.3"},"_npmOperationalInternal":{"tmp":"tmp/client-marketplace-entitlement-service-browser_0.1.0-preview.4_1572392708605_0.33414639293713844","host":"s3://npm-registry-packages"}},"0.1.0-preview.5":{"name":"@aws-sdk/client-marketplace-entitlement-service-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-marketplace-entitlement-service-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":"983468775bba24e7e9fad71ad83ef140ce52b915","tarball":"https://registry.npmjs.org/@aws-sdk/client-marketplace-entitlement-service-browser/-/client-marketplace-entitlement-service-browser-0.1.0-preview.5.tgz","fileCount":86,"integrity":"sha512-DZqwq8LtoT14G+QPfh7u0D3UyL9t5dai9YgC3iXELy48hKVT4bT5SIxFxNVsVdTYGYacHI6/KiLQMJNshZaasA==","signatures":[{"sig":"MEUCIQDu1mlyIosab0vLYmrojCqvws9zesnGmw//T0UdJdtD1gIgGewOC676cwZrtnV4tivps8MwCh3p8Y/YFM7iOvMPYeM=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":73227,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdueH3CRA9TVsSAnZWagAATR0P/1G3R7i3UL0gH5U3nRnd\nryvExlV2+c6lWAewU5saSXG3uiZHqIA2c0wBbKeejW0EE1A9Ni15YycKQpdN\nBVKG+sngh1YFgziMI8TXMcM4nIDTwSukKPhn8/NsMGsIKTogpOExjEU6AYWI\n2fI8prqvHDmrLcMWZeMQuX+EWqLFQaXLk+wiujVOPGBbnE8wKhrvJO2vLgoX\n6Sy6CTiSNdpv688vtMliEmU/NTB8FUSGUAMtyh+4+Hkf116sDwzpCPS43XAH\nEPJf54BAOMBCKz+DPHWnp68WLueProGWrfUV042V907w/ODoEKQu7sYnGDM/\ndjHeecrambyjKXImiaa3J8dHqM9M524Ox4M4B4NNuaap2RqByDw6dV6rbAPq\nS+UF991DMN8Urz+QFa0Cq09xutpueNPmj2R0Kdr3jXEHltdq618bzhdWj/mT\nP7hFn94EJgYEmgftOTeCx9p/5cM1S7U1LigvHN6SaGLZ3wzirzIb960L52fe\n1KSiFUu8HhvDuq48BqMHp8dRzJsTjwNJzIyGaWNh8YFMtStmZzOAeqKz/t3X\nnEbcOhCsBdFwwNB1zzximdcA6shxmZTz73En80W9zrmTAKW6ehqc+llrR+A0\nPcS/mdtd0bre5ZC4zf55EhtxsvaI7kfzPtbUCoxZyK9EZugL37fJ9EmroAdv\nHBfV\r\n=HR+I\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./index.js","types":"./index.d.ts","readme":"# @aws-sdk/client-marketplace-entitlement-service-browser\n\n[![NPM version](https://img.shields.io/npm/v/@aws-sdk/client-marketplace-entitlement-service-browser/preview.svg)](https://www.npmjs.com/package/@aws-sdk/client-marketplace-entitlement-service-browser)\n[![NPM downloads](https://img.shields.io/npm/dm/@aws-sdk/client-marketplace-entitlement-service-browser.svg)](https://www.npmjs.com/package/@aws-sdk/client-marketplace-entitlement-service-browser)\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-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(`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-browser\");\n```\n\n```javascript\n//TypeScript\nimport {\n  MarketplaceEntitlementServiceClient,\n  GetEntitlementsCommand\n} from \"@aws-sdk/client-marketplace-entitlement-service-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 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-browser\";\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-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-marketplace-entitlement-service-browser has been renamed to @aws-sdk/client-marketplace-entitlement-service. Please install the renamed package.","_npmVersion":"6.9.0","description":"Browser 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/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":{"rimraf":"^2.6.2","typedoc":"^0.14.2","typescript":"~3.4.0","@aws-sdk/client-documentation-generator":"^0.1.0-preview.3"},"_npmOperationalInternal":{"tmp":"tmp/client-marketplace-entitlement-service-browser_0.1.0-preview.5_1572463095350_0.18385025391727017","host":"s3://npm-registry-packages"}},"0.1.0-preview.6":{"name":"@aws-sdk/client-marketplace-entitlement-service-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-marketplace-entitlement-service-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":"6d9f1cca9f65462d6a753d84f3b6d444a4c59689","tarball":"https://registry.npmjs.org/@aws-sdk/client-marketplace-entitlement-service-browser/-/client-marketplace-entitlement-service-browser-0.1.0-preview.6.tgz","fileCount":86,"integrity":"sha512-1ZFcpYGak5N4VEXHBdp722Oe55LxGvOYnyno7wrYDpM4uWaRDemFjVl105ArJPnPvu9rYDfStkYSvMuQ+7RHZA==","signatures":[{"sig":"MEYCIQDkzIa6a7eTMfTX37qbb0diY5RaHVA72vmD4o1/8sL8kgIhAIg01BMpayPrAJLBTURc6nGr9oWorwB9jSf3JsAkXkIv","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":73497,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd1FN2CRA9TVsSAnZWagAA9w0QAJ67fBUX3K3aFlG8oODR\nvF4JpIekXuOFQL3YGjjG46eCF3wMj3HzqSRwaxtEs4vVsQTHPdYt43WeLmWz\n2OvXb+a9XptCIOLiraUtHrgETezs952wWf7F1lIRrQLhvK6vYEHez0jfkM9A\n/UKPsFHQwYH4snmiF/gzo+UGnKgTDrc2HhnX3lirNimHfN7MlH9DOrJ7AnEW\nhVYG4opUBzr/YBh7c7otYmq+16haxmwlZKZInH+uYIfCaoSArNHcMfjsjIrn\nvkhh84v0npSbV/b8aPXdrjiBn2Bg90OW7SeOwpp81jpHNLKXnNi00j7xBb4Q\n4WeR+Lj5/iBb9XjTA4+eyOXvZ9YrLW9qOAvHfXx/EB+cvf77A9VNDqhlHCiA\n1qP3alEPDY8Bl5N3WkjkCWpdIN+Vl8cKInFTsFmERPEhsN0Wi815hROm7FBu\nDsjlxGrKmNxC/5bjaEkzQTxtqqNOIsxYWiQVzz0T5kosYeg6gHlryJmbJy7T\nI0jMlzWkTvAK1PRIz/jT8hrzpnvH3C8JiZUk9ftlgpbmuaI+SvdhPmYnnddg\n1qpR6cYHwNP/VggOd9Ts9FEBC34+Ne2X0oY4FiMeMY13OBACcU2xQ0Ldxkby\nTdI7Xxc6ORgW72JpS/mt/41uPCpuBUUTbUdM6zYs0/n75ouH+w+iLjvIGXM0\nT2lY\r\n=AW3a\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./index.js","types":"./index.d.ts","readme":"# @aws-sdk/client-marketplace-entitlement-service-browser\n\n[![NPM version](https://img.shields.io/npm/v/@aws-sdk/client-marketplace-entitlement-service-browser/preview.svg)](https://www.npmjs.com/package/@aws-sdk/client-marketplace-entitlement-service-browser)\n[![NPM downloads](https://img.shields.io/npm/dm/@aws-sdk/client-marketplace-entitlement-service-browser.svg)](https://www.npmjs.com/package/@aws-sdk/client-marketplace-entitlement-service-browser)\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-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(`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-browser\");\n```\n\n```javascript\n//TypeScript\nimport {\n  MarketplaceEntitlementServiceClient,\n  GetEntitlementsCommand\n} from \"@aws-sdk/client-marketplace-entitlement-service-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 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-browser\";\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-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-marketplace-entitlement-service-browser has been renamed to @aws-sdk/client-marketplace-entitlement-service. Please install the renamed package.","_npmVersion":"6.9.0","description":"Browser 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/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":{"rimraf":"^2.6.2","typedoc":"^0.14.2","typescript":"~3.4.0","@aws-sdk/client-documentation-generator":"^0.1.0-preview.3"},"_npmOperationalInternal":{"tmp":"tmp/client-marketplace-entitlement-service-browser_0.1.0-preview.6_1574196086001_0.29378536301079494","host":"s3://npm-registry-packages"}}},"time":{"created":"2019-09-09T17:42:20.116Z","modified":"2025-03-27T18:44:28.377Z","0.1.0-preview.2":"2019-09-09T17:42:20.443Z","0.1.0-preview.3":"2019-09-19T15:54:30.859Z","0.1.0-preview.4":"2019-10-29T23:45:08.693Z","0.1.0-preview.5":"2019-10-30T19:18:15.453Z","0.1.0-preview.6":"2019-11-19T20:41:26.195Z"},"author":{"url":"https://aws.amazon.com/javascript/","name":"AWS SDK for JavaScript Team"},"license":"Apache-2.0","description":"Browser 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":""}