{"_id":"@aws-sdk/client-iot-1click-devices-service-node","_rev":"18-b3b16fde451c0717b09ad2f2aba8aaf1","name":"@aws-sdk/client-iot-1click-devices-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-iot-1click-devices-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-iot-1click-devices-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":"0d9a34c641c2bb7b65857102b0c62d0df4981d4f","tarball":"https://registry.npmjs.org/@aws-sdk/client-iot-1click-devices-service-node/-/client-iot-1click-devices-service-node-0.1.0-preview.2.tgz","fileCount":389,"integrity":"sha512-zi7DPR2i9SPwMM0b+zUxKn5P2NZoqS/3T4jtKTV2XkWsoSo5bKSaTVugS1jALdHHcE8iUlQqw01oOFyTc0oLog==","signatures":[{"sig":"MEYCIQDBRucKPCE8bJ+HzlHg2T5Mx4IBSZ4N8t8D6X+a7ND+TwIhAJNIUaEHM5HEIFwpqUntr/8sEbr0LI5UE8ssfnHX0Qku","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":231045,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJddpFgCRA9TVsSAnZWagAAVNwP/i8JdVBe+ZJJ9NcD7Zw7\nvyv6WIDaJK7tEadkPig3A1YlaR9BXfwQKa/60crFZg8DVgz4iEVubnGLAP3b\nBO9mxvcxvzXSRov8Lv+SQkzzmQpfs1Y6o0EDXB1gKQD31SVfZPb7nIYsMxDM\nuTtcYOgSjBMcSJiMQSywI/VnNAM9VR0Hav8etuZm/Qjm2aWh8hzhk4sNv2MS\nyBN66ZQjK13e83J3H97CpL3IR9aIYgMFFtlSoqPhESQKAqDVhfXPOnRrdhlm\nejVQGjbiWG8zO3Hd60L9W4p/3JxMmdRg1YtcFdt+w/eTcoZSziAFFb2XvMS7\nlW+Grv5dWLdav63l2EUlezp6A/G2oYFl0FGogThjmheHBtqXiwkC4BSzWnEQ\nfw1V1+XjSGAdp65UHjypuMwWQPjhKVO1ouEDNM1K4YJwRl5L8nJXfhmIPXWY\nt8cZRtPhKtegv78+8DXH/go4Clz5gAluqjRcdTShT606fUH/FPmedtd2tBPj\ny9hEfEBIrLKUr9iZyR+j7LTxb5KBGStwFPXPguUQU9fG9KOwIkohfhqL0iNc\nbpqjJWiFUbnc7PJiUFC+ZoUjEPz62JWbxIIl7yWbqmmmiD7JQFC01sTY/4/U\nPMbHI5KZMoJAxHyLHhfZNbXocWd1nh6HDuMLkx++EvbDFkAvGyCNOOGqYqVi\nYXW6\r\n=yb4w\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-iot-1click-devices-service-node has been renamed to @aws-sdk/client-iot-1click-devices-service. Please install the renamed package.","_npmVersion":"6.9.0","description":"Node 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/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/protocol-rest":"^0.1.0-preview.7","@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/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-iot-1click-devices-service-node_0.1.0-preview.2_1568051551877_0.19242703617551982","host":"s3://npm-registry-packages"}},"0.1.0-preview.3":{"name":"@aws-sdk/client-iot-1click-devices-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-iot-1click-devices-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":"c749f6e55d9cb22a2af56d9076384a6845cd16d2","tarball":"https://registry.npmjs.org/@aws-sdk/client-iot-1click-devices-service-node/-/client-iot-1click-devices-service-node-0.1.0-preview.3.tgz","fileCount":389,"integrity":"sha512-zqQEHqeAGXzQyxNumsNQYxRA0zsotmqo2KoH98rGrzaW4i9CWF7otq1wYI7nec+TAmEmJHSsRJTiXAlZZqyo9A==","signatures":[{"sig":"MEYCIQCnFuuzSgq+SdS3WjQyIGDL8BD+Pvw/AhhyKHzjq5ZArAIhALyuOW7V7WLo7zBO8mE8ujfSpXNumURyvsDpZOvibsCl","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":227905,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdg6d9CRA9TVsSAnZWagAAAI0P/2zPCBZBPSlidZ0CHEDr\nfcwvXQouP3Svxi7JmdSv+E21+x8jyTwmMWznG59M/iLdy3nxNo/FwNQ24371\n83w+ipwmiBZ02EmC5gqR1ByD7WLYphUgzOzLFv7i2pLm2DNZxnfQi8bSwh+O\ngULzHBK7YavmuFetPcym7C/EM/LurnL6XXBk6bARTA4pbZubfMiOAr246XNl\nEV567zGT7VX0bRs6Dwo2gUTK83PHXG9MJ0dxBuGR5GeHpZ3MT+PyWhTnZC50\ndpuFxpTl8NaBbMgbS7buvIqC+tr0DQFTfw+fQR/IxLoBZQSx/uZjPZBFqIn+\nNoDViqCb5POe4RJVtAP101MWrQsZ+CuXM4hfkrV3Gwy+o24QIYbNEVh+6AnX\noOdPd38tjb4VvWlCDvkpfE4o0DvGySM5i0NaC1BnnWJghXpR/0XFRI+bLxrY\nCt24fYskNkltTfv4S/GhtHZ+YGUnS8e7KD+3hr8zuSpTGFbyDbto2QxH2Yyx\nyUl6FtFZqXLeBjrhGnJHIypGICfcyZeT0fu+gEG6Zbk7Eev4Sb3vdUJIWwvr\nc3KAeCfhwp7PPYxloZN670lhBH/s3annNYKwfRhgrg08at8Izi2/9UZz0s9i\nSsTLtX3eYBVOhUuiZIVffY23wS/SV1T18Vsamqladupe9DQ4qqPEBAf4z+kM\nW8Zi\r\n=hxd4\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./index.js","types":"./index.d.ts","readme":"# @aws-sdk/client-iot-1click-devices-service-node\n\n[![NPM version](https://img.shields.io/npm/v/@aws-sdk/client-iot-1click-devices-service-node/preview.svg)](https://www.npmjs.com/package/@aws-sdk/client-iot-1click-devices-service-node)\n[![NPM downloads](https://img.shields.io/npm/dm/@aws-sdk/client-iot-1click-devices-service-node.svg)](https://www.npmjs.com/package/@aws-sdk/client-iot-1click-devices-service-node)\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-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(`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-node/IoT1ClickDevicesServiceClient\");\nconst {\n  ClaimDevicesByClaimCodeCommand\n} = require(\"@aws-sdk/client-iot-1click-devices-service-node/commands/ClaimDevicesByClaimCodeCommand\");\n```\n\n```javascript\n//TypeScript\nimport { IoT1ClickDevicesServiceClient } from \"@aws-sdk/client-iot-1click-devices-service-node/IoT1ClickDevicesServiceClient\";\nimport { ClaimDevicesByClaimCodeCommand } from \"@aws-sdk/client-iot-1click-devices-service-node/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-node/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-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-iot-1click-devices-service-node has been renamed to @aws-sdk/client-iot-1click-devices-service. Please install the renamed package.","_npmVersion":"6.9.0","description":"Node 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/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/protocol-rest":"^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/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-iot-1click-devices-service-node_0.1.0-preview.3_1568909180871_0.3958752621481929","host":"s3://npm-registry-packages"}},"0.1.0-preview.4":{"name":"@aws-sdk/client-iot-1click-devices-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-iot-1click-devices-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":"8fdc0b54923ab48e80daf15a0fb77c8a97443af0","tarball":"https://registry.npmjs.org/@aws-sdk/client-iot-1click-devices-service-node/-/client-iot-1click-devices-service-node-0.1.0-preview.4.tgz","fileCount":389,"integrity":"sha512-nNxfhw4xEyAdVKoAVgOHFLcfRjgZKGpfhmJCI84Lgb+xzmOFM9p1VjMakC7X98Nfr+ew2MMpuqoaroyEqsZV9w==","signatures":[{"sig":"MEUCIHo8dMSGv5MnkGgp00ph9u1xSznwmoC0JVJl1xnyEAt7AiEA9zb1boHJeS/Pp/DHd5jSgPD0dHsoaQrC+a66tuP0bho=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":227843,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJduND0CRA9TVsSAnZWagAATjsQAJdiMDGkfqH5Fpc8+DlP\nPf+DavTV2H362Q1N/Snl3+t9B/sFkwYRZrUwQgyApTaLxJfLt/mFbGHVWF2l\ncwhZg4+Mp+TxOyBK+uzY0fJayHVBeLcsf1qz3qd9uuyP3FAV9J6BXaSkdrr+\nYbIG1IFog+8KIvFKupfL1cLIKvP+tZqGnIF5/aiVsjW2TXTLg4JYaZUtyXJ0\n724qJZc/DoZ0XqAmRzI07Sx5d4Nj7Ku6rYgWoQJRPN6fYO8/ZGaMQNYZzAiA\ndFvi1EL2Oy/qAoRg/tGIA7f4nGnMBOjkKR+ARdRfwtRKy5pFne5+CJxdy2JU\nxxTKAGNy2uegFrvGEAaCNdX+UoYQ8NQmkh6wALDIcRzDFXoi2PgngklVfcg6\nYaWAc+wblIWzM5Cx8bo0avxhNpClwV3gw1SfSpe+zcEOG0m38HyRjfQGrngp\nI6vssDDCB64U1NsRQu7fuJaLp7YON83RYsV5tAGd8piUdPOpLXVb0bPEBWru\nih0SZg3oIp6ZCZl8zAeYMwYz7FkTiqGU+Osslx3apNarfGPjmjQCds+XmQTN\nrxsFF9srOyJkWWdR0ICfXIx8jC1xxdpYZJnD11fND1A646GkXWkVzwX/E6W6\n7zluU6ZAb4Z7DxZ8K+H06I/kHMWlMcpg+lPtU8R4n4yCOnFG+zbJk7lmzQGC\ninHo\r\n=XjaF\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./index.js","types":"./index.d.ts","readme":"# @aws-sdk/client-iot-1click-devices-service-node\n\n[![NPM version](https://img.shields.io/npm/v/@aws-sdk/client-iot-1click-devices-service-node/preview.svg)](https://www.npmjs.com/package/@aws-sdk/client-iot-1click-devices-service-node)\n[![NPM downloads](https://img.shields.io/npm/dm/@aws-sdk/client-iot-1click-devices-service-node.svg)](https://www.npmjs.com/package/@aws-sdk/client-iot-1click-devices-service-node)\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-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(`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-node\");\n```\n\n```javascript\n//TypeScript\nimport {\n  IoT1ClickDevicesServiceClient,\n  ClaimDevicesByClaimCodeCommand\n} from \"@aws-sdk/client-iot-1click-devices-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 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-node\";\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-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-iot-1click-devices-service-node has been renamed to @aws-sdk/client-iot-1click-devices-service. Please install the renamed package.","_npmVersion":"6.9.0","description":"Node 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/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/protocol-rest":"^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/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-iot-1click-devices-service-node_0.1.0-preview.4_1572393203784_0.8134824699433154","host":"s3://npm-registry-packages"}},"0.1.0-preview.5":{"name":"@aws-sdk/client-iot-1click-devices-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-iot-1click-devices-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":"bfe93c15d4f4a8ecae3720b6b3c925430f58ed0f","tarball":"https://registry.npmjs.org/@aws-sdk/client-iot-1click-devices-service-node/-/client-iot-1click-devices-service-node-0.1.0-preview.5.tgz","fileCount":389,"integrity":"sha512-oHytk0ng3hx2n5aCq1Lf4lelabgBI7+JFXBAc4Xli2jzImfNbFM/ySnawjV+wvZptCVLQq4y1PdBJjpIZI7ChA==","signatures":[{"sig":"MEUCIF4qr09GV0XaZDVcQM+e8oGJei8UCJ9gS65uWCDGPeD0AiEAs4qLprbRXDgs7zJfViLcuXgfqKGSG0KBYPBqdwUCpi8=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":228087,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdueQpCRA9TVsSAnZWagAAXkQP/2QbZ5c/fZvLbcHZt7zZ\nZh+igeRGt4eteBIDnUD2vgJNyE9sqXwy8YPNVAM3G+nP5tMsfzyedwCzrDDa\nIczc4NocQGRE0bUqwFAXQ65wGpSOQ6LKwnmtKR4DXmavStlH+P0HIYl9VvVU\n74Ewj6GVO/Cc/AgPOmwDNkVv45tVbJz59Fi51PUOIgSfe1cyaEEAQhJC93JQ\ndBxjfIUSc6gc+mBAKwa/draB9C7eSA/3kO6YPa7xKfd1gbqqeV6rHxarADwf\n4S/0OkPuBxe5gGPhE3GyKtnEoESiWtGCPIFJ+JdtVfQqk4FELZC41O1wiob3\np7ZirTS3eEuq3K7C4zGo5jOPnr1q9is4uNcb5KCtE89fCiLjmosKfFIhO8OL\neNkfhuv8T56MAibrnFKizPREiMwlIiOHyNbWW8xYFxTdWT/yICoXgHs70LuQ\nbcGvE9VdCjYo6gW/ZNn8DVCHRRUNs/WTNKoe3sQyjR0BXXPqzDfcwryo0zW3\nKCnO1aN+IDDVX8ztV+DAEOvn9Cf5YmgyTxw1zm+qP9KadiWHyATBfmEpF+uJ\nMiIOwCCALQU21K1/HoqzwLD8AAIDVT/bqEZqBr25E6YtPTetKpozfEAYmWJr\nTOiel1GJQk1NoLPdjqh8CVlgfe/48pZN4AHlZ4GRvOcDiz/Dsq5yuoiWNuDT\nXIQC\r\n=WJ8a\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./index.js","types":"./index.d.ts","readme":"# @aws-sdk/client-iot-1click-devices-service-node\n\n[![NPM version](https://img.shields.io/npm/v/@aws-sdk/client-iot-1click-devices-service-node/preview.svg)](https://www.npmjs.com/package/@aws-sdk/client-iot-1click-devices-service-node)\n[![NPM downloads](https://img.shields.io/npm/dm/@aws-sdk/client-iot-1click-devices-service-node.svg)](https://www.npmjs.com/package/@aws-sdk/client-iot-1click-devices-service-node)\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-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(`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-node\");\n```\n\n```javascript\n//TypeScript\nimport {\n  IoT1ClickDevicesServiceClient,\n  ClaimDevicesByClaimCodeCommand\n} from \"@aws-sdk/client-iot-1click-devices-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 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-node\";\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-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-iot-1click-devices-service-node has been renamed to @aws-sdk/client-iot-1click-devices-service. Please install the renamed package.","_npmVersion":"6.9.0","description":"Node 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/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/protocol-rest":"^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/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-iot-1click-devices-service-node_0.1.0-preview.5_1572463656887_0.3816155884247041","host":"s3://npm-registry-packages"}},"0.1.0-preview.6":{"name":"@aws-sdk/client-iot-1click-devices-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-iot-1click-devices-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":"452beb6ea1660ae7840254ccf5eb95672ac597aa","tarball":"https://registry.npmjs.org/@aws-sdk/client-iot-1click-devices-service-node/-/client-iot-1click-devices-service-node-0.1.0-preview.6.tgz","fileCount":389,"integrity":"sha512-gQ2v7ksNdhTKBucNzhQe01sRrHtSMmF5nMh5et76rK2ltIQ+Era+BLq7PUXwX2KZRJ/BFABoe5MCXi1V+Xafug==","signatures":[{"sig":"MEUCIGRWnmDogHqd0O+nfrrsE70TomGF+MF3TGP+NvTLlsrrAiEAkY/UvhdHDTp3OomOkiAh2KGmtqkNRwWdpsUezkZj4ec=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":228360,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd1FRhCRA9TVsSAnZWagAAwmsP+waWb1ce0GJuFwu25gHA\nge2S5jVI0yFHpA4D1rC7aJrdinI7c601xlWnxBOtMMzuOXFOVVBRF3U4yPR1\n4isCPutnEwN0PztHSN+ie5uDrBEvPNv2kErIbs6NjQMKrI2Xonsn4i8l0uBF\nIsueTAe2s+6JCYJC1LEPnPukqA4YtP+otSQAZuTeq7s954ukk9hFUsbvS2D9\nHxW++qyQB/kiKtC2OWu908xRePnAhaELdeNa4onjsR37DA/PM5BcT+a4Jb6D\npmRFKk/I1fqEfUWQMPPi2MAXo3DCs63pOw/8qlv3H6+cLu1PYhSZwIfEgIub\nTAsdvdAEmA0xT/oxlkAANDetoKlxcjT8fPJDH2fS4lJy3iyNbS+56Cul5TBR\nNznhtLCcXOtu/hGnDdE2YWOf4FWRaGykfNTfFJG5oZFSB6VyF8bsrqqbdJDG\nXT0RSDI1Ag+eD0j5dNixaxNzARMWZbJL0bi7aX3TG90koR5JHLemUXKvXzTf\np3x2YJ+LiDcdy8TAaYEQ2FN5bUOS+Or3XSyltDPdWtETLg6YU0ZDi/tbD41i\ntsd6vCssZo6uQ/zNiy5vmV+xLavE/ZNZx4FbbZoZRyvq71AntrlFGgF/8CCK\nMnUcRCIIFbCZJDaEaFgLLLWvxbd5+Xs2AjUAILUNyak4SI+vW4nRYM9z+faA\no4OH\r\n=vGzw\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./index.js","types":"./index.d.ts","readme":"# @aws-sdk/client-iot-1click-devices-service-node\n\n[![NPM version](https://img.shields.io/npm/v/@aws-sdk/client-iot-1click-devices-service-node/preview.svg)](https://www.npmjs.com/package/@aws-sdk/client-iot-1click-devices-service-node)\n[![NPM downloads](https://img.shields.io/npm/dm/@aws-sdk/client-iot-1click-devices-service-node.svg)](https://www.npmjs.com/package/@aws-sdk/client-iot-1click-devices-service-node)\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-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(`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-node\");\n```\n\n```javascript\n//TypeScript\nimport {\n  IoT1ClickDevicesServiceClient,\n  ClaimDevicesByClaimCodeCommand\n} from \"@aws-sdk/client-iot-1click-devices-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 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-node\";\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-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-iot-1click-devices-service-node has been renamed to @aws-sdk/client-iot-1click-devices-service. Please install the renamed package.","_npmVersion":"6.9.0","description":"Node 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/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/protocol-rest":"^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/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-iot-1click-devices-service-node_0.1.0-preview.6_1574196320871_0.950132816970531","host":"s3://npm-registry-packages"}}},"time":{"created":"2019-09-09T17:52:31.667Z","modified":"2025-03-27T18:39:15.258Z","0.1.0-preview.2":"2019-09-09T17:52:32.081Z","0.1.0-preview.3":"2019-09-19T16:06:21.085Z","0.1.0-preview.4":"2019-10-29T23:53:24.028Z","0.1.0-preview.5":"2019-10-30T19:27:37.109Z","0.1.0-preview.6":"2019-11-19T20:45:20.982Z"},"author":{"url":"https://aws.amazon.com/javascript/","name":"AWS SDK for JavaScript Team"},"license":"Apache-2.0","description":"Node 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":""}