{"_id":"@aws-sdk/client-iot-jobs-data-plane-node","_rev":"18-ddad8f7b2fccd73f587d9a53c44ea3eb","name":"@aws-sdk/client-iot-jobs-data-plane-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-jobs-data-plane-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-jobs-data-plane-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":"ea686bb593b09d16ed6ce077be2e2d5a089449a8","tarball":"https://registry.npmjs.org/@aws-sdk/client-iot-jobs-data-plane-node/-/client-iot-jobs-data-plane-node-0.1.0-preview.2.tgz","fileCount":176,"integrity":"sha512-FQoUgNFXHqC2pfzFSN1QRoP18vHiberUStga1ppOLf8JkGTqbkMmAKCXJ186lAHiv40yPhz9rY+eiRA3heyVWA==","signatures":[{"sig":"MEQCIBY4mhuqkFy6sWPwIHdsRvEuNHf1tMaSr/rskicaOvB8AiAviYGd8BvFA1weY2lERMwqHBMNM84vvF4ZxSu5S9smfw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":129801,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJddpF4CRA9TVsSAnZWagAAKvgP/271gVe+YhqB5J1Dugwl\nTk4le6lD53emrtMymOBiPA8p+TIcvLX8JkLDupyGIVN5rNgPdyNwQInQbh0Y\nWZLDETdTnXBjWOWL1TGG2bwZdlEHVPl/Ednjk29oK42HV7r1X2xUmfxX1+Ui\nIEafmtly08bb40jxid2/fEvEcSiifa6kHZe9CnRUfZBI9fEnuWhzhuLTDPOU\nLK94zKR/Jf9LQxlmsM53mIvLJ8eGu0JPvm1LuVLcOXkR6rJRrXwqLVQWPC29\nBlSZxmjiz0kNEmFK0dukpwR8gUcL97K2hLdAV10xDTlPGBGopBHaFqKxTsP5\neIYPb9vJb+58nmB6Sum3kZ4kU1vCbnQQA1APK5yBkRMgmLGCqZn/x/8DCvvL\nx+TTH2Vw9EXmEnJy+cl3n4O5VvzZLFUEstBvVXJp0Io8YoG8jgHSY3nnP8lf\nWiznAqCEDZisn8LtSMyw8TlogKP8AiH2FXi6FrWgHSJVfKJnfc4iUqVjgBe/\nBurNbL0/0MPLCm71eaDhL1R36KAd38ulGPD7Pr4d1Fk8b6Itphxc1GbxQ942\nnTbA+0z6Q0uJ2B9gbm8Ig3zPOVxTJgIELJ4svTVnzk+cPWYx94TALpnOxDqQ\nQ347hMNGkDPqqEI5a12mFXmRfGE0TmWcO2sx2imlvlI2GzYhpLf/USDStDlX\nBPd1\r\n=aiB1\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-jobs-data-plane-node has been renamed to @aws-sdk/client-iot-jobs-data-plane. Please install the renamed package.","_npmVersion":"6.9.0","description":"Node SDK for AWS IoT Jobs Data Plane","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-jobs-data-plane-node_0.1.0-preview.2_1568051576202_0.6845677240044101","host":"s3://npm-registry-packages"}},"0.1.0-preview.3":{"name":"@aws-sdk/client-iot-jobs-data-plane-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-jobs-data-plane-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":"eb15803de88ba7f7267dada5df50077b1276db84","tarball":"https://registry.npmjs.org/@aws-sdk/client-iot-jobs-data-plane-node/-/client-iot-jobs-data-plane-node-0.1.0-preview.3.tgz","fileCount":176,"integrity":"sha512-TaJaZsjvSnHnE+I2dE1KtSe86AOrvfUIFZfx5eTzbIeLyMRklGzWXDn7YnsLsxP2IMPJbTbUHTkpkw2vIRulAg==","signatures":[{"sig":"MEQCIG+SmHcg6Dm0WlOxfM64bgiozWbSSS9ibUjXbPnFLlCKAiAjKC+rDkIDOmfsr9jVbRWaDG6yiFxw0VqrutJHdiIzcA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":128186,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdg6eUCRA9TVsSAnZWagAAN1UP/i22mimY0qEoBFIzdeAo\nLWq8/De5RGAHWDksoaks7/rp6YGFdeasd5jGQsAal8Xe+JFUZvga35+iMDaW\nF28OfiJ6FO4tz3zbIaKsOh1PoYGGxS0yovczXcLVnU8sJyJvndTxJ6DyDasb\ndiXdwjlze+vlGjHQ/lBeqSsXs7GIP/yVYa7k2Jo4WOorMZEFbsqQs4BXoKaH\no3qi/M5E9qVq5fO1lS6ynqBaYhDcWE7sraTNBN2yioamre2WOgBhZTQ2OqYp\nBb1bAVnptJIQOV28qM4GUVrEXfbkYXbTEzBYrzZg1aQ0kJlTFSNRpkPeeFAB\ncDT3kWtCWbeyU0SoStWiJMtzaOt9u3LLM5AhW8CnzJdWC+6POaS1WyPsuBb1\nJtCChUJcHPqLnZrw01Flet7M8p40Hho3STwlBoeX8Yiji36sXEKLaa+RUami\nu1FZUCvibJ8akMNL8JBJZHoZ5H60XWU7pZyDuMJOHWWj2fI165HEbBcH51VL\nlUILxnp112hESOmMN31Px9BxK3CVlJ7PWnRbSuK6hjeqKmdr4otRQKspyHmT\nkEaZOApXNov8HvRLJky0rLKg1CmJyoMZEOnzavAzYTw4g3COKhHNmkS9fxUT\nOtZq2OebLkfZ1si/DNTF2bZbUGvKRKYgXVzJscVqA5HsR0uHL+yN2Z0SkL3v\nYZbR\r\n=ofeG\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./index.js","types":"./index.d.ts","readme":"# @aws-sdk/client-iot-jobs-data-plane-node\n\n[![NPM version](https://img.shields.io/npm/v/@aws-sdk/client-iot-jobs-data-plane-node/preview.svg)](https://www.npmjs.com/package/@aws-sdk/client-iot-jobs-data-plane-node)\n[![NPM downloads](https://img.shields.io/npm/dm/@aws-sdk/client-iot-jobs-data-plane-node.svg)](https://www.npmjs.com/package/@aws-sdk/client-iot-jobs-data-plane-node)\n\n## Description\n\n<p>AWS IoT Jobs is a service that allows you to define a set of jobs — remote operations that are sent to and executed on one or more devices connected to AWS IoT. For example, you can define a job that instructs a set of devices to download and install application or firmware updates, reboot, rotate certificates, or perform remote troubleshooting operations.</p> <p> To create a job, you make a job document which is a description of the remote operations to be performed, and you specify a list of targets that should perform the operations. The targets can be individual things, thing groups or both.</p> <p> AWS IoT Jobs sends a message to inform the targets that a job is available. The target starts the execution of the job by downloading the job document, performing the operations it specifies, and reporting its progress to AWS IoT. The Jobs service provides commands to track the progress of a job on a specific target and for all the targets of the job</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-jobs-data-plane-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(`IoTJobsDataPlaneClient`) and the commands you need, for example `DescribeJobExecutionCommand`:\n\n```javascript\n//JavaScript\nconst {\n  IoTJobsDataPlaneClient\n} = require(\"@aws-sdk/client-iot-jobs-data-plane-node/IoTJobsDataPlaneClient\");\nconst {\n  DescribeJobExecutionCommand\n} = require(\"@aws-sdk/client-iot-jobs-data-plane-node/commands/DescribeJobExecutionCommand\");\n```\n\n```javascript\n//TypeScript\nimport { IoTJobsDataPlaneClient } from \"@aws-sdk/client-iot-jobs-data-plane-node/IoTJobsDataPlaneClient\";\nimport { DescribeJobExecutionCommand } from \"@aws-sdk/client-iot-jobs-data-plane-node/commands/DescribeJobExecutionCommand\";\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 ioTJobsDataPlane = new IoTJobsDataPlaneClient({region: 'region'});\n//clients can be shared by different commands\nconst params = {\n  jobId: /**a string value*/,\n  thingName: /**a string value*/,\n};\nconst describeJobExecutionCommand = new DescribeJobExecutionCommand(params);\nioTJobsDataPlane.send(describeJobExecutionCommand).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 ioTJobsDataPlane.send(describeJobExecutionCommand);\n  // do something\n} catch (error) {\n  // error handling\n}\n```\n\n```javascript\n// callback\nioTJobsDataPlane.send(describeJobExecutionCommand, (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-jobs-data-plane-node/IoTJobsDataPlane\";\nconst ioTJobsDataPlane = new AWS.IoTJobsDataPlane({ region: \"region\" });\nioTJobsDataPlane.describeJobExecution(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 ioTJobsDataPlane.send(describeJobExecutionCommand);\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-jobs-data-plane-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-jobs-data-plane-node has been renamed to @aws-sdk/client-iot-jobs-data-plane. Please install the renamed package.","_npmVersion":"6.9.0","description":"Node SDK for AWS IoT Jobs Data Plane","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-jobs-data-plane-node_0.1.0-preview.3_1568909204176_0.05573820235699434","host":"s3://npm-registry-packages"}},"0.1.0-preview.4":{"name":"@aws-sdk/client-iot-jobs-data-plane-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-jobs-data-plane-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":"c82940f131e5cdf57b0a4478a82400fffeaba48c","tarball":"https://registry.npmjs.org/@aws-sdk/client-iot-jobs-data-plane-node/-/client-iot-jobs-data-plane-node-0.1.0-preview.4.tgz","fileCount":176,"integrity":"sha512-oU/cGabyjVvjUAsfS07ADgzWCsXQ5NfebJPOxgkULbRKufv0NeS6BqO+TIy4HSclcDu0+oKEj/MfhF3L/yFr9Q==","signatures":[{"sig":"MEYCIQDGcjKDb4tDcR/fbodW/VPTwgX55TGKHHP3LWQw0cqdnAIhAOgwQwTxLcrO1Kmed4CSfGYXB5qITnidai+Jr3vE48Mi","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":128165,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJduNEHCRA9TVsSAnZWagAAD68P/AkbnFU3WKnvVGVI/Ij3\nCxc/cbDXAdFIsSOvoGsHWZK2Kz2duF2WC6LIItWyS5usoPAZQZNvkKojXtZ0\n62h24eeA6SpjTWV57hJHuXIQ6b3zGkZoclgs6X9jiHeIafqCdkJ4+p4X36S0\nZlbJ0wCa35HuSij71Pto4dE0K9XKfbHamGBu/IF4HIrV2+w3yY18QQpYbgKe\nJ4t5eefHF7hv0FIDhsGXHFhgrOy7A6xZx7M9gJNZI/Lii4WxTlna6WByF4kP\naCk6OmqJ67En+rVWy6r88KGCHfao5ycNF0DJYAhVThKqeLg4cNayKpFk2ei+\n4cFPDRFSwPGRuAAne4RetbdRjAu4kd+PU9c63Lagv0X1sJwZDoVaJyHI/7vC\nqkzRuL9/HadbjHy4w8L7fy5zjTEK82oTTf7yHt3fh5Vtnc2Oe9oQMFZkEXC+\niS/1ZJ93Gn5LU93/KO6/P0BWLG89f1AOeVyZq0o9JqSGtnaau+OtmjEJ+KCV\nUN1FK2mEBa/RN1Z2UO2TSyNRsyRLtg3HD/xV2K3viE652A/2SgZYn9PFlNe0\nh43AXIhObC0lmyrEYL+NlCmREwcdVFS3QH/KGtjMXNs2yiHAPvCe9JquHuz8\nnLiYAgorOm7g7tlnsSPnqUHaAiH8aRDls9tOPS5wcxlA2IOfISKEQ/qqQ7sM\nz85S\r\n=jCsW\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./index.js","types":"./index.d.ts","readme":"# @aws-sdk/client-iot-jobs-data-plane-node\n\n[![NPM version](https://img.shields.io/npm/v/@aws-sdk/client-iot-jobs-data-plane-node/preview.svg)](https://www.npmjs.com/package/@aws-sdk/client-iot-jobs-data-plane-node)\n[![NPM downloads](https://img.shields.io/npm/dm/@aws-sdk/client-iot-jobs-data-plane-node.svg)](https://www.npmjs.com/package/@aws-sdk/client-iot-jobs-data-plane-node)\n\n## Description\n\n<p>AWS IoT Jobs is a service that allows you to define a set of jobs — remote operations that are sent to and executed on one or more devices connected to AWS IoT. For example, you can define a job that instructs a set of devices to download and install application or firmware updates, reboot, rotate certificates, or perform remote troubleshooting operations.</p> <p> To create a job, you make a job document which is a description of the remote operations to be performed, and you specify a list of targets that should perform the operations. The targets can be individual things, thing groups or both.</p> <p> AWS IoT Jobs sends a message to inform the targets that a job is available. The target starts the execution of the job by downloading the job document, performing the operations it specifies, and reporting its progress to AWS IoT. The Jobs service provides commands to track the progress of a job on a specific target and for all the targets of the job</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-jobs-data-plane-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(`IoTJobsDataPlaneClient`) and the commands you need, for example `DescribeJobExecutionCommand`:\n\n```javascript\n//JavaScript\nconst {\n  IoTJobsDataPlaneClient,\n  DescribeJobExecutionCommand\n} = require(\"@aws-sdk/client-iot-jobs-data-plane-node\");\n```\n\n```javascript\n//TypeScript\nimport {\n  IoTJobsDataPlaneClient,\n  DescribeJobExecutionCommand\n} from \"@aws-sdk/client-iot-jobs-data-plane-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 ioTJobsDataPlane = new IoTJobsDataPlaneClient({region: 'region'});\n//clients can be shared by different commands\nconst params = {\n  jobId: /**a string value*/,\n  thingName: /**a string value*/,\n};\nconst describeJobExecutionCommand = new DescribeJobExecutionCommand(params);\nioTJobsDataPlane.send(describeJobExecutionCommand).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 ioTJobsDataPlane.send(describeJobExecutionCommand);\n  // do something\n} catch (error) {\n  // error handling\n}\n```\n\n```javascript\n// callback\nioTJobsDataPlane.send(describeJobExecutionCommand, (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-jobs-data-plane-node\";\nconst ioTJobsDataPlane = new AWS.IoTJobsDataPlane({ region: \"region\" });\nioTJobsDataPlane.describeJobExecution(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 ioTJobsDataPlane.send(describeJobExecutionCommand);\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-jobs-data-plane-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-jobs-data-plane-node has been renamed to @aws-sdk/client-iot-jobs-data-plane. Please install the renamed package.","_npmVersion":"6.9.0","description":"Node SDK for AWS IoT Jobs Data Plane","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-jobs-data-plane-node_0.1.0-preview.4_1572393222746_0.8914438023735902","host":"s3://npm-registry-packages"}},"0.1.0-preview.5":{"name":"@aws-sdk/client-iot-jobs-data-plane-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-jobs-data-plane-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":"828f47de03032db9c3192bfd02e22c5fde410b0f","tarball":"https://registry.npmjs.org/@aws-sdk/client-iot-jobs-data-plane-node/-/client-iot-jobs-data-plane-node-0.1.0-preview.5.tgz","fileCount":176,"integrity":"sha512-mOmevm7CWaZmgmO5X5THNxx6xp/2kPheR32vMvoKZ0FaLZI+ynXevBbU5YbLjXFPi5ukgzVZEVp3NFC0TwXwZQ==","signatures":[{"sig":"MEYCIQCtTqasqKU9MxhUS+thfVdR75WxnmkR+VXiSKSS7jf/rQIhAN5wYmPDkjLGUWTC16aiZNxpdst4Rbfoy39lCk2CjnKU","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":128409,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdueQ+CRA9TVsSAnZWagAAcugP/jiDtZoXeBoBYNeOMcT7\no8e0k9RcCV2sXblyVPICGaUBZu8TlCT4360TQ0Y+rG3jgjcauTkGe8BaBx9b\nOExaFrpGtHSKzCjD1aJ4uU/YNJLc4N8satpz2YvV+YEMGi57w7gpnd76KREV\nFZPWvE3jewysgILEkG0rXQg4VOvS7NFeGnVNd76BX8B/UcrpZKNHh2os1l/7\nB4ruVF1xxdSeB+EAh5bTGG6p6Ixcu/S59R/KpND+LxT7G3v9UcVIv31JOlWR\nLuloKcOx+O5Yd+kA3sD/1eEZ1LfEDDxg/wD3uZLB1Tm99i3UjNnY+Vsh4VwV\nZY51JLBfTMV2CwyMzWJHDSocqXTojrwAqdnAO2w4LzLFe6WexnWwXscEf6G8\nglIdq92h05EPGT87CICYbghXOPIUCojdbrUseYAhE3pAF/IvHcjdV7I+yokU\ny993IRMoue00FUrjSMZc1KvjQWoSzRqjp6wLYyovi8dPsFOGIy3hJn78jjiX\n/mBOicMoa9rYYz/66+xA7Qju42GcInekOK8YJN7F8aCh+ld9pGWePQiRoi4e\nZpT915i+z3tg4iWehyH3J9qYKxAUGe4KwiJ+yVO7DbAMUbzd+rubAAW+K6NN\nIoZO4z9jbvvrvUOQJ0XvVlaCnkSqfbC32377uF2DlaoHy74+PXew88VSLNSb\n8UNv\r\n=m7Cf\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./index.js","types":"./index.d.ts","readme":"# @aws-sdk/client-iot-jobs-data-plane-node\n\n[![NPM version](https://img.shields.io/npm/v/@aws-sdk/client-iot-jobs-data-plane-node/preview.svg)](https://www.npmjs.com/package/@aws-sdk/client-iot-jobs-data-plane-node)\n[![NPM downloads](https://img.shields.io/npm/dm/@aws-sdk/client-iot-jobs-data-plane-node.svg)](https://www.npmjs.com/package/@aws-sdk/client-iot-jobs-data-plane-node)\n\n## Description\n\n<p>AWS IoT Jobs is a service that allows you to define a set of jobs — remote operations that are sent to and executed on one or more devices connected to AWS IoT. For example, you can define a job that instructs a set of devices to download and install application or firmware updates, reboot, rotate certificates, or perform remote troubleshooting operations.</p> <p> To create a job, you make a job document which is a description of the remote operations to be performed, and you specify a list of targets that should perform the operations. The targets can be individual things, thing groups or both.</p> <p> AWS IoT Jobs sends a message to inform the targets that a job is available. The target starts the execution of the job by downloading the job document, performing the operations it specifies, and reporting its progress to AWS IoT. The Jobs service provides commands to track the progress of a job on a specific target and for all the targets of the job</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-jobs-data-plane-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(`IoTJobsDataPlaneClient`) and the commands you need, for example `DescribeJobExecutionCommand`:\n\n```javascript\n//JavaScript\nconst {\n  IoTJobsDataPlaneClient,\n  DescribeJobExecutionCommand\n} = require(\"@aws-sdk/client-iot-jobs-data-plane-node\");\n```\n\n```javascript\n//TypeScript\nimport {\n  IoTJobsDataPlaneClient,\n  DescribeJobExecutionCommand\n} from \"@aws-sdk/client-iot-jobs-data-plane-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 ioTJobsDataPlane = new IoTJobsDataPlaneClient({region: 'region'});\n//clients can be shared by different commands\nconst params = {\n  jobId: /**a string value*/,\n  thingName: /**a string value*/,\n};\nconst describeJobExecutionCommand = new DescribeJobExecutionCommand(params);\nioTJobsDataPlane.send(describeJobExecutionCommand).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 ioTJobsDataPlane.send(describeJobExecutionCommand);\n  // do something\n} catch (error) {\n  // error handling\n}\n```\n\n```javascript\n// callback\nioTJobsDataPlane.send(describeJobExecutionCommand, (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-jobs-data-plane-node\";\nconst ioTJobsDataPlane = new AWS.IoTJobsDataPlane({ region: \"region\" });\nioTJobsDataPlane.describeJobExecution(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 ioTJobsDataPlane.send(describeJobExecutionCommand);\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-jobs-data-plane-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-jobs-data-plane-node has been renamed to @aws-sdk/client-iot-jobs-data-plane. Please install the renamed package.","_npmVersion":"6.9.0","description":"Node SDK for AWS IoT Jobs Data Plane","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-jobs-data-plane-node_0.1.0-preview.5_1572463677852_0.41871256100123544","host":"s3://npm-registry-packages"}},"0.1.0-preview.6":{"name":"@aws-sdk/client-iot-jobs-data-plane-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-jobs-data-plane-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":"3632c239fa0e63c99bddbdd967b40260edab37d4","tarball":"https://registry.npmjs.org/@aws-sdk/client-iot-jobs-data-plane-node/-/client-iot-jobs-data-plane-node-0.1.0-preview.6.tgz","fileCount":176,"integrity":"sha512-JeLcBaKDjqctGXu+pLpU0KThnix4uZRyYljbHVfjw5V2RRKXZhL/zmDuErmSmbRH4tMcu3w5RuFatV08Ib857Q==","signatures":[{"sig":"MEUCIC0sKk2oHrvnRsoMMRiqfnINv6l56o41bS4kMaUUToOAAiEAvE6NLshSQGRile2Qsvj1ct9qnJRwMV3avBuxk9YpMN8=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":128682,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd1FRoCRA9TVsSAnZWagAAq8gP/ih4JcebGHodopVM9Ds2\nBmciH7Ybkuvq7eR1TSZP2+RwzfxgXtdWhG3iDLUUkjk+9dVZG1cfp/58o8PW\nH735SmaE1LT1d1iIF+WTwL4Mf3eyGqeEEifOxOAKtw+dRhJrA1NMdRhRx3fM\nMjacZX1VFBi6fR5OmWv7P6KNdH9RA/1ieCt/nO3jqqAaOqWxyDmbxer0/uf6\nBpdRDaQqVNFrRt1vn95Xz13i+w1PdHOr0DlhxjacN+jYdyEZ7UB2bfZCe/0j\nk13RKAB4U87XkKkoOtxPY6bGcHWUe9jmOlauB98bIDzkUCF/B8LB7UsQarh6\noQC6Q/+W+8n5dE142/o86LAe442VzSXx0Uz6aQtcdv2nnXOGRxfNzVI18Bnn\nk0fypwAQ2MyrWdP6yZKSFSE6/yDqh/YZTCsAUZlOEIInlm3stIwmXNYq9xq3\nOkNwtZriSsSZUDfVfqquxIJTecvYFEhVMt+rgSYAvDpyw/03tM3kG9yaffm9\nkAy21HS7jxcwcPRimMNXY0mnngNKowMRXmEzDg0ckQwQiNdMmqgGLFcCNJqS\nQAsh02iQYqavh3y/j+nWVFcg8y1k62iX/U8P6SwMMwGOAsJ2vOQaypra1PCp\nJ/89Gd2H3jJkO1B1VRU+PLy2SAzLaPE81d2PdWK5AYXhKc0IKqFQrpsPNjx1\nTE0B\r\n=Gso3\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./index.js","types":"./index.d.ts","readme":"# @aws-sdk/client-iot-jobs-data-plane-node\n\n[![NPM version](https://img.shields.io/npm/v/@aws-sdk/client-iot-jobs-data-plane-node/preview.svg)](https://www.npmjs.com/package/@aws-sdk/client-iot-jobs-data-plane-node)\n[![NPM downloads](https://img.shields.io/npm/dm/@aws-sdk/client-iot-jobs-data-plane-node.svg)](https://www.npmjs.com/package/@aws-sdk/client-iot-jobs-data-plane-node)\n\n## Description\n\n<p>AWS IoT Jobs is a service that allows you to define a set of jobs — remote operations that are sent to and executed on one or more devices connected to AWS IoT. For example, you can define a job that instructs a set of devices to download and install application or firmware updates, reboot, rotate certificates, or perform remote troubleshooting operations.</p> <p> To create a job, you make a job document which is a description of the remote operations to be performed, and you specify a list of targets that should perform the operations. The targets can be individual things, thing groups or both.</p> <p> AWS IoT Jobs sends a message to inform the targets that a job is available. The target starts the execution of the job by downloading the job document, performing the operations it specifies, and reporting its progress to AWS IoT. The Jobs service provides commands to track the progress of a job on a specific target and for all the targets of the job</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-jobs-data-plane-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(`IoTJobsDataPlaneClient`) and the commands you need, for example `DescribeJobExecutionCommand`:\n\n```javascript\n//JavaScript\nconst {\n  IoTJobsDataPlaneClient,\n  DescribeJobExecutionCommand\n} = require(\"@aws-sdk/client-iot-jobs-data-plane-node\");\n```\n\n```javascript\n//TypeScript\nimport {\n  IoTJobsDataPlaneClient,\n  DescribeJobExecutionCommand\n} from \"@aws-sdk/client-iot-jobs-data-plane-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 ioTJobsDataPlane = new IoTJobsDataPlaneClient({region: 'region'});\n//clients can be shared by different commands\nconst params = {\n  jobId: /**a string value*/,\n  thingName: /**a string value*/,\n};\nconst describeJobExecutionCommand = new DescribeJobExecutionCommand(params);\nioTJobsDataPlane.send(describeJobExecutionCommand).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 ioTJobsDataPlane.send(describeJobExecutionCommand);\n  // do something\n} catch (error) {\n  // error handling\n}\n```\n\n```javascript\n// callback\nioTJobsDataPlane.send(describeJobExecutionCommand, (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-jobs-data-plane-node\";\nconst ioTJobsDataPlane = new AWS.IoTJobsDataPlane({ region: \"region\" });\nioTJobsDataPlane.describeJobExecution(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 ioTJobsDataPlane.send(describeJobExecutionCommand);\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-jobs-data-plane-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-jobs-data-plane-node has been renamed to @aws-sdk/client-iot-jobs-data-plane. Please install the renamed package.","_npmVersion":"6.9.0","description":"Node SDK for AWS IoT Jobs Data Plane","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-jobs-data-plane-node_0.1.0-preview.6_1574196328255_0.16283961656133528","host":"s3://npm-registry-packages"}}},"time":{"created":"2019-09-09T17:52:55.946Z","modified":"2025-03-27T18:43:32.277Z","0.1.0-preview.2":"2019-09-09T17:52:56.354Z","0.1.0-preview.3":"2019-09-19T16:06:44.349Z","0.1.0-preview.4":"2019-10-29T23:53:42.917Z","0.1.0-preview.5":"2019-10-30T19:27:57.946Z","0.1.0-preview.6":"2019-11-19T20:45:28.402Z"},"author":{"url":"https://aws.amazon.com/javascript/","name":"AWS SDK for JavaScript Team"},"license":"Apache-2.0","description":"Node SDK for AWS IoT Jobs Data Plane","maintainers":[{"email":"osa-3p@amazon.com","name":"amzn-oss"},{"email":"aws-sdk-js-automation@amazon.com","name":"aws-sdk-bot"}],"readme":"","readmeFilename":""}