{"_id":"@aws-sdk/client-iot-1click-devices-service-browser","_rev":"19-119c9f1ccaebadd8ba27e244a60f1f9a","name":"@aws-sdk/client-iot-1click-devices-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-iot-1click-devices-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-iot-1click-devices-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":"50ce2048022542504f30b0b4870cec026271229c","tarball":"https://registry.npmjs.org/@aws-sdk/client-iot-1click-devices-service-browser/-/client-iot-1click-devices-service-browser-0.1.0-preview.2.tgz","fileCount":389,"integrity":"sha512-9RELlROZg/Zy7SOobYqOvAVE+ubLbJQ5dSy+IOsn+OJDU4BDszsYkGm8kEUCn+wb9mZ4fgeQr3P6XOvL5n+6gQ==","signatures":[{"sig":"MEUCIQD1GS8xBmNw0+/d8cbzg3arA8o6k6FZPmpg2VlsCmALPAIgeljKoLhLn4KjlGwarZwygTnSlpQWkMsVLg9PNoIT4iU=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":228658,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJddo6uCRA9TVsSAnZWagAAAuAP/1pl/Cl0vcixVfJiv2Qy\nZ6KGjiwy2CeliEKujAxhYd17Xk05FRXg4q0Hp9lWduXeLF2D0uw42dUxQogf\nV7qZcHvad1sj/9HqVu6YdBOhjRjnJnEdlUY5rFR6MuqdMkNNWgTupJgA6jZu\nFVFR7aMOIJHbigXAW+Mc7GbKy64VbYkBl83aRtvqEeEMY3rLzP39pNONObNV\nsGG4Fqpxj+chqXFOzvYmAbwr3mH2AVCSAP7aoaGBbtqmhYF+oDlC+f19/DZM\nOi5pLHy5n6fkqLEvPk3nkoCaQLZGA3lZZQSsbmv3CCofbmxlnWiSm/HbPvVm\nBqAZYUaBFEg8uPkWtK4R+Mn8z5svTQcRV1PReZFLZqzrTs6OD9WpBSWhJ2PX\ni6ftniDUiEuCYWgoUlsDzdOKROHIwQbFRGsbwmTfx7m4f3B6TgE2kP37wHcM\nYs+rcLoNvPlymph0OoUtW/llTixnZjuxATkubDkLLQiUXab/Nn3Bd4mWIklq\nkrD+VEgTqeCf/qEF10fGzEEsSHlOPjV7A/03pXKX83YHQcDQ6j7WqV3U45c8\n+xD7AaSTjNFPEToGseyvFUBEvYCXU2aXkkEQFDMF9DqW1GjWhJCRmkjCdxSS\nPX7jPHHLGZl/TOnsc9blC3lp6w1SBY/5jMfCsWFHcva2KAbY2isLnGSMP7X4\nPWxG\r\n=hdnF\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-iot-1click-devices-service-browser has been renamed to @aws-sdk/client-iot-1click-devices-service. Please install the renamed package.","_npmVersion":"6.9.0","description":"Browser SDK for AWS IoT 1-Click Devices 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/protocol-rest":"^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/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-iot-1click-devices-service-browser_0.1.0-preview.2_1568050862112_0.3959915149177793","host":"s3://npm-registry-packages"}},"0.1.0-preview.3":{"name":"@aws-sdk/client-iot-1click-devices-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-iot-1click-devices-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":"a3e5c6853210248aa42e5e995e8d5cee65420396","tarball":"https://registry.npmjs.org/@aws-sdk/client-iot-1click-devices-service-browser/-/client-iot-1click-devices-service-browser-0.1.0-preview.3.tgz","fileCount":389,"integrity":"sha512-cmnkioR4QOmoAWhd4dOtE0KcncP2UG1OSDmjtU5e9JDQnqOfuLhtCqT/uSDPEGrm2udPnI9VGumsRkBi9YnIVg==","signatures":[{"sig":"MEUCIE8n6+dIxI1JAd0WXBh+H+N3pXiQ7WgifbFO1ippBLVOAiEAtP7Z70rw6cMB0V+Qrrp1OhloCZI39v7Lp7Kee3CnZwA=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":228878,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdg6RICRA9TVsSAnZWagAAHgUP/RqCrsm23Qf+18Rv6+zo\nCAvA1H9MAZvwGt0AcHkh9/58fnkiR99Nj4Y+/Cex0IyXtHbJYXkNfNAZYLha\nnP1prUq0b3vz1OdP/2ffIfopgdohPJ9X3P9XEg+qfIOjgRj7t1w1n4bKzfTT\nzzvp9B1BFi+Lz+5zXe+tlY/x9rlRWFet22BCPEEwG//QbKKUkjel2RGs/Vt3\nQg+Quyap5fr+foKlYK1Png9ds1zmGDkyVr9NDuH1p6/WVX6wYFEqDJppzRbH\nT/D8eXVT+Alf+aulc09/c2tshzb6oK1LQB2chU8Q2yfTjKA8Yv4nsbdhy1YX\nObYgH9rP1FkGFb2wco0artuvVHNWq80XuWoLXBmz+UE8H/Q3kRgLX1Pxhbjx\nxwd5tu1y3iH38WpH9cr6hR9pjoX7WZVI9zXknN89H7fsY8Got5M5Ug81zdtZ\nObk9sz1Mj8K9+cb+taYNHyCDtxuQzAV6eNgDdRVbFU5KrAG+hPnmAoSWXGi/\naKgVEB3l/ewFYgXIzcNlTI/9N5dHhSp/HSKKFokl4Ly1Z8Rbp3IFmuovJ1vC\n8zyXPfWVHXNjeLMoyOMiZw4jf7lZeVOFSSfZnO/i1pOZ8CQGO4OofSR4j5rE\nJKN9lOO0ilm/gYCBNhu7SXc5Tglccf4Eqj7BXI4tT0EL2e2aZYcio2oZPL49\nccS9\r\n=RE+M\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./index.js","types":"./index.d.ts","readme":"# @aws-sdk/client-iot-1click-devices-service-browser\n\n[![NPM version](https://img.shields.io/npm/v/@aws-sdk/client-iot-1click-devices-service-browser/preview.svg)](https://www.npmjs.com/package/@aws-sdk/client-iot-1click-devices-service-browser)\n[![NPM downloads](https://img.shields.io/npm/dm/@aws-sdk/client-iot-1click-devices-service-browser.svg)](https://www.npmjs.com/package/@aws-sdk/client-iot-1click-devices-service-browser)\n\n## Description\n\n<p>Describes all of the AWS IoT 1-Click device-related API operations for the service.\n Also provides sample requests, responses, and errors for the supported web services\n protocols.</p>\n\n## Installing\n\nTo install the this package using NPM, simply type the following into a terminal window:\n\n```\nnpm install @aws-sdk/client-iot-1click-devices-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(`IoT1ClickDevicesServiceClient`) and the commands you need, for example `ClaimDevicesByClaimCodeCommand`:\n\n```javascript\n//JavaScript\nconst {\n  IoT1ClickDevicesServiceClient\n} = require(\"@aws-sdk/client-iot-1click-devices-service-browser/IoT1ClickDevicesServiceClient\");\nconst {\n  ClaimDevicesByClaimCodeCommand\n} = require(\"@aws-sdk/client-iot-1click-devices-service-browser/commands/ClaimDevicesByClaimCodeCommand\");\n```\n\n```javascript\n//TypeScript\nimport { IoT1ClickDevicesServiceClient } from \"@aws-sdk/client-iot-1click-devices-service-browser/IoT1ClickDevicesServiceClient\";\nimport { ClaimDevicesByClaimCodeCommand } from \"@aws-sdk/client-iot-1click-devices-service-browser/commands/ClaimDevicesByClaimCodeCommand\";\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 ioT1ClickDevicesService = new IoT1ClickDevicesServiceClient({region: 'region'});\n//clients can be shared by different commands\nconst params = {\n  ClaimCode: /**a string value*/,\n};\nconst claimDevicesByClaimCodeCommand = new ClaimDevicesByClaimCodeCommand(params);\nioT1ClickDevicesService.send(claimDevicesByClaimCodeCommand).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 ioT1ClickDevicesService.send(\n    claimDevicesByClaimCodeCommand\n  );\n  // do something\n} catch (error) {\n  // error handling\n}\n```\n\n```javascript\n// callback\nioT1ClickDevicesService.send(claimDevicesByClaimCodeCommand, (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-iot-1click-devices-service-browser/IoT1ClickDevicesService\";\nconst ioT1ClickDevicesService = new AWS.IoT1ClickDevicesService({\n  region: \"region\"\n});\nioT1ClickDevicesService.claimDevicesByClaimCode(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 ioT1ClickDevicesService.send(\n    claimDevicesByClaimCodeCommand\n  );\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-iot-1click-devices-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-iot-1click-devices-service-browser has been renamed to @aws-sdk/client-iot-1click-devices-service. Please install the renamed package.","_npmVersion":"6.9.0","description":"Browser SDK for AWS IoT 1-Click Devices 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/protocol-rest":"^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/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-iot-1click-devices-service-browser_0.1.0-preview.3_1568908359983_0.0015533716830575806","host":"s3://npm-registry-packages"}},"0.1.0-preview.4":{"name":"@aws-sdk/client-iot-1click-devices-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-iot-1click-devices-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":"d38578ec2d25b3b19f3d912900c51c3d11f1d4d2","tarball":"https://registry.npmjs.org/@aws-sdk/client-iot-1click-devices-service-browser/-/client-iot-1click-devices-service-browser-0.1.0-preview.4.tgz","fileCount":389,"integrity":"sha512-ijKOD9Tq4YWomr5Tsxaav/3FQYPxid99oJpoRcTOJ2opkr1Oo9t48c/WLKIQJER+1IBu/M5+wP+SzNVUIWA8/A==","signatures":[{"sig":"MEUCIQCPhy2Y6rX2gQNxFlWd4Rmt4YmGWHqwcf6IYXPTMU2mEgIgEIN9Wcd9FxcSSv010yIyGlGuYecS+skyKVEVyX0MG54=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":228810,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJduM6/CRA9TVsSAnZWagAAT68P/0Xo+2U6EQmITyFSwfAR\n/ibiwcPO0ZbMDCGaGByVNBWcc7GjWIK+ftsRPmWa0bnWBlkMwilUj7nVvrny\nZPRhjw7WZD0Wf/hhRohjpZGV3YfuLYir1ojgM0ivuabf0A3uPlPNoXrho6Ax\n3xT1RHaMSrZIAnhFaum9XvOpftzSqjlhmcUNEUVQQ/RMfmV+Is8udjoMBxvY\nHq+/njLin8gdBg681vBfjin7SgZInr+sL7TVtmnBY70tg/ibTQqQLT7oxrLn\nlhWmB2CZg3vVryCuyZ2Ai/SIFSkWMudUYe4J0lcsUqJhz0/8K0KuxeuxMwHk\nE9AGHWkIJZFdbtPOaGfhEaYjF1nxR62qCUcXEiKbdRkf3KiDSgtYsLvqWjgM\n69Ke6XCtHfrU/+vQ7sp4db1l7uu/d0Yy3/pnr1WI145CfYiZoeB0dJKZA3uQ\nGY7xdpgN09D4HHxmAb4z1EpPiiA3wYJ3Ghk9ng47iFnwl6qbovEDIEOw12U+\nlfdbu3dwNQNv5n5K8gFRkhLEk5a+fmeiT2ezjj9hWs31gcCkrHuvxhKJFMcg\nKoVMkVt6km7rJKnuXkotr4jb8XVMERNa1FOXrG5NSZv7bSt+KFyuJl58UhYW\nOb/r7UnA0+6fSmYHG1KLOQsuRV8rOAIBubZ6RQ5p7fd15TEVOvaIJjHLY3bX\nSc+b\r\n=7vGS\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./index.js","types":"./index.d.ts","readme":"# @aws-sdk/client-iot-1click-devices-service-browser\n\n[![NPM version](https://img.shields.io/npm/v/@aws-sdk/client-iot-1click-devices-service-browser/preview.svg)](https://www.npmjs.com/package/@aws-sdk/client-iot-1click-devices-service-browser)\n[![NPM downloads](https://img.shields.io/npm/dm/@aws-sdk/client-iot-1click-devices-service-browser.svg)](https://www.npmjs.com/package/@aws-sdk/client-iot-1click-devices-service-browser)\n\n## Description\n\n<p>Describes all of the AWS IoT 1-Click device-related API operations for the service.\n Also provides sample requests, responses, and errors for the supported web services\n protocols.</p>\n\n## Installing\n\nTo install the this package using NPM, simply type the following into a terminal window:\n\n```\nnpm install @aws-sdk/client-iot-1click-devices-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(`IoT1ClickDevicesServiceClient`) and the commands you need, for example `ClaimDevicesByClaimCodeCommand`:\n\n```javascript\n//JavaScript\nconst {\n  IoT1ClickDevicesServiceClient,\n  ClaimDevicesByClaimCodeCommand\n} = require(\"@aws-sdk/client-iot-1click-devices-service-browser\");\n```\n\n```javascript\n//TypeScript\nimport {\n  IoT1ClickDevicesServiceClient,\n  ClaimDevicesByClaimCodeCommand\n} from \"@aws-sdk/client-iot-1click-devices-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 ioT1ClickDevicesService = new IoT1ClickDevicesServiceClient({region: 'region'});\n//clients can be shared by different commands\nconst params = {\n  ClaimCode: /**a string value*/,\n};\nconst claimDevicesByClaimCodeCommand = new ClaimDevicesByClaimCodeCommand(params);\nioT1ClickDevicesService.send(claimDevicesByClaimCodeCommand).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 ioT1ClickDevicesService.send(\n    claimDevicesByClaimCodeCommand\n  );\n  // do something\n} catch (error) {\n  // error handling\n}\n```\n\n```javascript\n// callback\nioT1ClickDevicesService.send(claimDevicesByClaimCodeCommand, (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-iot-1click-devices-service-browser\";\nconst ioT1ClickDevicesService = new AWS.IoT1ClickDevicesService({\n  region: \"region\"\n});\nioT1ClickDevicesService.claimDevicesByClaimCode(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 ioT1ClickDevicesService.send(\n    claimDevicesByClaimCodeCommand\n  );\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-iot-1click-devices-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-iot-1click-devices-service-browser has been renamed to @aws-sdk/client-iot-1click-devices-service. Please install the renamed package.","_npmVersion":"6.9.0","description":"Browser SDK for AWS IoT 1-Click Devices 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/protocol-rest":"^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/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-iot-1click-devices-service-browser_0.1.0-preview.4_1572392639291_0.55949367868809","host":"s3://npm-registry-packages"}},"0.1.0-preview.5":{"name":"@aws-sdk/client-iot-1click-devices-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-iot-1click-devices-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":"e126a0c3a7e108c6fa65c8aeddc17be159c71cc8","tarball":"https://registry.npmjs.org/@aws-sdk/client-iot-1click-devices-service-browser/-/client-iot-1click-devices-service-browser-0.1.0-preview.5.tgz","fileCount":389,"integrity":"sha512-qwgiFU81lbrG3y5bsuVo8UGey4msCNF7NKewb8Tg22TvMJk8OZBMmTjQulDuUWboRdscyYt2YjrzKz5grOXidQ==","signatures":[{"sig":"MEYCIQCzlzrz1mY+aTh/avSYcdo9cifip8GgZw7Z/9rbm7QaSgIhAIUyM87JQHjH6Iubw1m+KMNh5NLzO5OZVLqDUNTeDnJ8","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":229054,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdueGuCRA9TVsSAnZWagAAxvIP/j0+h4FALwutBcjA1ZUY\n1J8vibxhLElG+gT5fuVTm0WTreADsYwSq1+kLuNTWzn9oAJM2FLLgwEZP1xH\nlShs0kcZDRypP0QfVONHh1Cl/SrS30xH2pGj8rv0LXCI+X5igEB+P/6uhepx\nozHS6eHtyQ/rXmmJEAw3lVEm38u5NRQ/mDQCF1OgWc0jGPmf0rYLmn7d9g8E\nvVTz5N3WvuAw/7sckMn1D4VA6Ubg5ohG4JzUrykPPtk1ApCtunWVB/FCuS3j\n+iYDy2RKYlTfECUmoQMprjWMcRMTRkCtjWJUR+N50dk6TgB2lfgsZyJOq9Ip\nnClx6Vr3koSa7M68OnMWCD6SU0mMfX27cCoSeUHS+K+h+npCzOtq0gde/uj+\njWvNzN0i0lJEnVev7dtjwt0rZ3As1TIN6E1ZJZEU6lCLTsVdAOqp22ViS60O\nvevbwe2Vj9ZdcrFb8RujFoDhWFOCA8+rLDaRZtJsTEq6PLO6/HUy1pkXjrNf\nWGk9Oc0qacR8GA6wk7rYjyMULxFd7Zmg2Raz264Dj2u/xy1Nsr2Fn6YeuTCV\nPQhA8kb0+JFptZK6V+AXgXAKG/5aShh68i4KL7HHvbe4N4HXkQ+o8y7nLQfV\nqwFL9RBMoti8Og3G6Oxv4Aj2w2SS+R/xivWJXRgkt3MFMrSFoWQeXQj+3J8t\njZKx\r\n=WiKg\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./index.js","types":"./index.d.ts","readme":"# @aws-sdk/client-iot-1click-devices-service-browser\n\n[![NPM version](https://img.shields.io/npm/v/@aws-sdk/client-iot-1click-devices-service-browser/preview.svg)](https://www.npmjs.com/package/@aws-sdk/client-iot-1click-devices-service-browser)\n[![NPM downloads](https://img.shields.io/npm/dm/@aws-sdk/client-iot-1click-devices-service-browser.svg)](https://www.npmjs.com/package/@aws-sdk/client-iot-1click-devices-service-browser)\n\n## Description\n\n<p>Describes all of the AWS IoT 1-Click device-related API operations for the service.\n Also provides sample requests, responses, and errors for the supported web services\n protocols.</p>\n\n## Installing\n\nTo install the this package using NPM, simply type the following into a terminal window:\n\n```\nnpm install @aws-sdk/client-iot-1click-devices-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(`IoT1ClickDevicesServiceClient`) and the commands you need, for example `ClaimDevicesByClaimCodeCommand`:\n\n```javascript\n//JavaScript\nconst {\n  IoT1ClickDevicesServiceClient,\n  ClaimDevicesByClaimCodeCommand\n} = require(\"@aws-sdk/client-iot-1click-devices-service-browser\");\n```\n\n```javascript\n//TypeScript\nimport {\n  IoT1ClickDevicesServiceClient,\n  ClaimDevicesByClaimCodeCommand\n} from \"@aws-sdk/client-iot-1click-devices-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 ioT1ClickDevicesService = new IoT1ClickDevicesServiceClient({region: 'region'});\n//clients can be shared by different commands\nconst params = {\n  ClaimCode: /**a string value*/,\n};\nconst claimDevicesByClaimCodeCommand = new ClaimDevicesByClaimCodeCommand(params);\nioT1ClickDevicesService.send(claimDevicesByClaimCodeCommand).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 ioT1ClickDevicesService.send(\n    claimDevicesByClaimCodeCommand\n  );\n  // do something\n} catch (error) {\n  // error handling\n}\n```\n\n```javascript\n// callback\nioT1ClickDevicesService.send(claimDevicesByClaimCodeCommand, (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-iot-1click-devices-service-browser\";\nconst ioT1ClickDevicesService = new AWS.IoT1ClickDevicesService({\n  region: \"region\"\n});\nioT1ClickDevicesService.claimDevicesByClaimCode(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 ioT1ClickDevicesService.send(\n    claimDevicesByClaimCodeCommand\n  );\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-iot-1click-devices-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-iot-1click-devices-service-browser has been renamed to @aws-sdk/client-iot-1click-devices-service. Please install the renamed package.","_npmVersion":"6.9.0","description":"Browser SDK for AWS IoT 1-Click Devices 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/protocol-rest":"^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/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-iot-1click-devices-service-browser_0.1.0-preview.5_1572463018756_0.18249510992977624","host":"s3://npm-registry-packages"}},"0.1.0-preview.6":{"name":"@aws-sdk/client-iot-1click-devices-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-iot-1click-devices-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":"28f1c1989f078ef9b2dd5776ed37c6cc4f5864f7","tarball":"https://registry.npmjs.org/@aws-sdk/client-iot-1click-devices-service-browser/-/client-iot-1click-devices-service-browser-0.1.0-preview.6.tgz","fileCount":389,"integrity":"sha512-fl4+AOvetypVSP93ylMsVkZ/7LaT3blD+pSKgb2B6hL8aL2kfznLGJqOS1i01k7OIBTnHxltwlUmFFL8BjKFyA==","signatures":[{"sig":"MEUCIHmsG42996pL/6Mk7qH2IWT86nid7zZzCZizgZIONSuYAiEAk5meq6JN1ZnVzLCwPbZFxrr+wmRnOqC7LCL0pK7yWXw=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":229325,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd1FNECRA9TVsSAnZWagAAiXgP/RWQdtSBv0V5nLn0RyWe\n+uKF4QtTWFh/c/lQLfrcKAk0/FdRRvdxhnvuIpU2Ul6bTAnwfYxHtSo5YhmJ\nXfSphamPpgBjlGbP3H/LAMNzRuN0zpTTChgRQl0y+PmqJhJ0rFd9Di7Rxydv\nZTNfMCybevtzbaUMFB9ozRS0mAM1TEpadQ33DyIkhIaKRp5QnH2teYDdwXa5\nRkDT39d0MWd8INqoLWpb9uIMXpTQ/GRQaxzjTZhTyWezH3Eqd759yqT+Tt4q\neF1oZEjGA635foqXU/w8//AmQp9fJCFRuWQxzw7J10vKI0LJV5ZBJCSdS82K\n8yOj/+Np0ETFS8dSo9XcWnerbIYjxQBpDYlVTzrRfWCT5AlRzhsaf1memD81\nnhFnwoHY5RDVQKzYTwBQdLlicbUo/7OO7/Hdq1BZqN9KIfQJeKthQ6oUf3e+\n7VH1AYrrCsvNO4SrudCQ8/bd7dsMA3ZRcc3OaYs1dfWyMbNKhAeyk0CdlYAu\nFMIEPAW3vTU5laR2UMHUbmIxh0nyrtBufu6BWEPw6HxdIcr1vB0UcX1N9Bye\nYKMfYYXT0TtPDrsV5uFhXcSH1YaYfKjAL8s+/P+R+z8x3E8ifihJEWwgcO+h\n+fd6DwJFtUhkXmTS9EbYTmI4ZNqZsQUjUqB0nCJYnVPeIzoUJXPhW5g1xl/e\nb6J2\r\n=On/q\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./index.js","types":"./index.d.ts","readme":"# @aws-sdk/client-iot-1click-devices-service-browser\n\n[![NPM version](https://img.shields.io/npm/v/@aws-sdk/client-iot-1click-devices-service-browser/preview.svg)](https://www.npmjs.com/package/@aws-sdk/client-iot-1click-devices-service-browser)\n[![NPM downloads](https://img.shields.io/npm/dm/@aws-sdk/client-iot-1click-devices-service-browser.svg)](https://www.npmjs.com/package/@aws-sdk/client-iot-1click-devices-service-browser)\n\n## Description\n\n<p>Describes all of the AWS IoT 1-Click device-related API operations for the service.\n Also provides sample requests, responses, and errors for the supported web services\n protocols.</p>\n\n## Installing\n\nTo install the this package using NPM, simply type the following into a terminal window:\n\n```\nnpm install @aws-sdk/client-iot-1click-devices-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(`IoT1ClickDevicesServiceClient`) and the commands you need, for example `ClaimDevicesByClaimCodeCommand`:\n\n```javascript\n//JavaScript\nconst {\n  IoT1ClickDevicesServiceClient,\n  ClaimDevicesByClaimCodeCommand\n} = require(\"@aws-sdk/client-iot-1click-devices-service-browser\");\n```\n\n```javascript\n//TypeScript\nimport {\n  IoT1ClickDevicesServiceClient,\n  ClaimDevicesByClaimCodeCommand\n} from \"@aws-sdk/client-iot-1click-devices-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 ioT1ClickDevicesService = new IoT1ClickDevicesServiceClient({region: 'region'});\n//clients can be shared by different commands\nconst params = {\n  ClaimCode: /**a string value*/,\n};\nconst claimDevicesByClaimCodeCommand = new ClaimDevicesByClaimCodeCommand(params);\nioT1ClickDevicesService.send(claimDevicesByClaimCodeCommand).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 ioT1ClickDevicesService.send(\n    claimDevicesByClaimCodeCommand\n  );\n  // do something\n} catch (error) {\n  // error handling\n}\n```\n\n```javascript\n// callback\nioT1ClickDevicesService.send(claimDevicesByClaimCodeCommand, (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-iot-1click-devices-service-browser\";\nconst ioT1ClickDevicesService = new AWS.IoT1ClickDevicesService({\n  region: \"region\"\n});\nioT1ClickDevicesService.claimDevicesByClaimCode(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 ioT1ClickDevicesService.send(\n    claimDevicesByClaimCodeCommand\n  );\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-iot-1click-devices-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-iot-1click-devices-service-browser has been renamed to @aws-sdk/client-iot-1click-devices-service. Please install the renamed package.","_npmVersion":"6.9.0","description":"Browser SDK for AWS IoT 1-Click Devices 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/protocol-rest":"^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/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-iot-1click-devices-service-browser_0.1.0-preview.6_1574196036383_0.09329623520448105","host":"s3://npm-registry-packages"}}},"time":{"created":"2019-09-09T17:41:01.881Z","modified":"2025-03-27T18:43:24.121Z","0.1.0-preview.2":"2019-09-09T17:41:02.272Z","0.1.0-preview.3":"2019-09-19T15:52:40.188Z","0.1.0-preview.4":"2019-10-29T23:43:59.468Z","0.1.0-preview.5":"2019-10-30T19:16:58.893Z","0.1.0-preview.6":"2019-11-19T20:40:36.540Z"},"author":{"url":"https://aws.amazon.com/javascript/","name":"AWS SDK for JavaScript Team"},"license":"Apache-2.0","description":"Browser SDK for AWS IoT 1-Click Devices Service","maintainers":[{"email":"osa-3p@amazon.com","name":"amzn-oss"},{"email":"aws-sdk-js-automation@amazon.com","name":"aws-sdk-bot"}],"readme":"","readmeFilename":""}