@aws-sdk/client-iot 3.82.0 → 3.90.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,34 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [3.90.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.89.0...v3.90.0) (2022-05-12)
7
+
8
+ **Note:** Version bump only for package @aws-sdk/client-iot
9
+
10
+
11
+
12
+
13
+
14
+ # [3.87.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.86.0...v3.87.0) (2022-05-09)
15
+
16
+ **Note:** Version bump only for package @aws-sdk/client-iot
17
+
18
+
19
+
20
+
21
+
22
+ # [3.85.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.84.0...v3.85.0) (2022-05-05)
23
+
24
+
25
+ ### Features
26
+
27
+ * **client-iot:** AWS IoT Jobs now allows you to create up to 100,000 active continuous and snapshot jobs by using concurrency control. ([6506e14](https://github.com/aws/aws-sdk-js-v3/commit/6506e14ba608ae3ee0a892b7d494250f92bbf3fc))
28
+ * **codegen:** add codegen indicator comment to all generated files ([#3592](https://github.com/aws/aws-sdk-js-v3/issues/3592)) ([567a530](https://github.com/aws/aws-sdk-js-v3/commit/567a5304232fcc1f9db3fd3df545054de8336b4b))
29
+
30
+
31
+
32
+
33
+
6
34
  # [3.82.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.81.0...v3.82.0) (2022-05-02)
7
35
 
8
36
  **Note:** Version bump only for package @aws-sdk/client-iot
package/README.md CHANGED
@@ -1,3 +1,5 @@
1
+ <!-- generated file, do not edit directly -->
2
+
1
3
  # @aws-sdk/client-iot
2
4
 
3
5
  [![NPM version](https://img.shields.io/npm/v/@aws-sdk/client-iot/latest.svg)](https://www.npmjs.com/package/@aws-sdk/client-iot)
@@ -7558,6 +7558,9 @@ const deserializeAws_restJson1CancelJobCommandError = async (output, context) =>
7558
7558
  case "InvalidRequestException":
7559
7559
  case "com.amazonaws.iot#InvalidRequestException":
7560
7560
  throw await deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context);
7561
+ case "LimitExceededException":
7562
+ case "com.amazonaws.iot#LimitExceededException":
7563
+ throw await deserializeAws_restJson1LimitExceededExceptionResponse(parsedOutput, context);
7561
7564
  case "ResourceNotFoundException":
7562
7565
  case "com.amazonaws.iot#ResourceNotFoundException":
7563
7566
  throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
@@ -22900,6 +22903,7 @@ const deserializeAws_restJson1Job = (output, context) => {
22900
22903
  ? deserializeAws_restJson1ParameterMap(output.documentParameters, context)
22901
22904
  : undefined,
22902
22905
  forceCanceled: (0, smithy_client_1.expectBoolean)(output.forceCanceled),
22906
+ isConcurrent: (0, smithy_client_1.expectBoolean)(output.isConcurrent),
22903
22907
  jobArn: (0, smithy_client_1.expectString)(output.jobArn),
22904
22908
  jobExecutionsRetryConfig: output.jobExecutionsRetryConfig !== undefined && output.jobExecutionsRetryConfig !== null
22905
22909
  ? deserializeAws_restJson1JobExecutionsRetryConfig(output.jobExecutionsRetryConfig, context)
@@ -23052,6 +23056,7 @@ const deserializeAws_restJson1JobSummary = (output, context) => {
23052
23056
  createdAt: output.createdAt !== undefined && output.createdAt !== null
23053
23057
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createdAt)))
23054
23058
  : undefined,
23059
+ isConcurrent: (0, smithy_client_1.expectBoolean)(output.isConcurrent),
23055
23060
  jobArn: (0, smithy_client_1.expectString)(output.jobArn),
23056
23061
  jobId: (0, smithy_client_1.expectString)(output.jobId),
23057
23062
  lastUpdatedAt: output.lastUpdatedAt !== undefined && output.lastUpdatedAt !== null
@@ -8262,23 +8262,27 @@ var deserializeAws_restJson1CancelJobCommandError = function (output, context) {
8262
8262
  switch (_b) {
8263
8263
  case "InvalidRequestException": return [3, 2];
8264
8264
  case "com.amazonaws.iot#InvalidRequestException": return [3, 2];
8265
- case "ResourceNotFoundException": return [3, 4];
8266
- case "com.amazonaws.iot#ResourceNotFoundException": return [3, 4];
8267
- case "ServiceUnavailableException": return [3, 6];
8268
- case "com.amazonaws.iot#ServiceUnavailableException": return [3, 6];
8269
- case "ThrottlingException": return [3, 8];
8270
- case "com.amazonaws.iot#ThrottlingException": return [3, 8];
8265
+ case "LimitExceededException": return [3, 4];
8266
+ case "com.amazonaws.iot#LimitExceededException": return [3, 4];
8267
+ case "ResourceNotFoundException": return [3, 6];
8268
+ case "com.amazonaws.iot#ResourceNotFoundException": return [3, 6];
8269
+ case "ServiceUnavailableException": return [3, 8];
8270
+ case "com.amazonaws.iot#ServiceUnavailableException": return [3, 8];
8271
+ case "ThrottlingException": return [3, 10];
8272
+ case "com.amazonaws.iot#ThrottlingException": return [3, 10];
8271
8273
  }
8272
- return [3, 10];
8274
+ return [3, 12];
8273
8275
  case 2: return [4, deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context)];
8274
8276
  case 3: throw _d.sent();
8275
- case 4: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
8277
+ case 4: return [4, deserializeAws_restJson1LimitExceededExceptionResponse(parsedOutput, context)];
8276
8278
  case 5: throw _d.sent();
8277
- case 6: return [4, deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)];
8279
+ case 6: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
8278
8280
  case 7: throw _d.sent();
8279
- case 8: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
8281
+ case 8: return [4, deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)];
8280
8282
  case 9: throw _d.sent();
8281
- case 10:
8283
+ case 10: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
8284
+ case 11: throw _d.sent();
8285
+ case 12:
8282
8286
  parsedBody = parsedOutput.body;
8283
8287
  response = new __BaseException({
8284
8288
  name: parsedBody.code || parsedBody.Code || errorCode,
@@ -28215,6 +28219,7 @@ var deserializeAws_restJson1Job = function (output, context) {
28215
28219
  ? deserializeAws_restJson1ParameterMap(output.documentParameters, context)
28216
28220
  : undefined,
28217
28221
  forceCanceled: __expectBoolean(output.forceCanceled),
28222
+ isConcurrent: __expectBoolean(output.isConcurrent),
28218
28223
  jobArn: __expectString(output.jobArn),
28219
28224
  jobExecutionsRetryConfig: output.jobExecutionsRetryConfig !== undefined && output.jobExecutionsRetryConfig !== null
28220
28225
  ? deserializeAws_restJson1JobExecutionsRetryConfig(output.jobExecutionsRetryConfig, context)
@@ -28367,6 +28372,7 @@ var deserializeAws_restJson1JobSummary = function (output, context) {
28367
28372
  createdAt: output.createdAt !== undefined && output.createdAt !== null
28368
28373
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createdAt)))
28369
28374
  : undefined,
28375
+ isConcurrent: __expectBoolean(output.isConcurrent),
28370
28376
  jobArn: __expectString(output.jobArn),
28371
28377
  jobId: __expectString(output.jobId),
28372
28378
  lastUpdatedAt: output.lastUpdatedAt !== undefined && output.lastUpdatedAt !== null
@@ -3770,6 +3770,11 @@ export interface CreateJobRequest {
3770
3770
  * specified as targets have completed the job (SNAPSHOT). If continuous, the job may also be run on a thing
3771
3771
  * when a change is detected in a target. For example, a job will run on a thing when the thing is added to a
3772
3772
  * target group, even after the job was completed by all things originally in the group.</p>
3773
+ * <note>
3774
+ * <p>We recommend that you use continuous jobs instead of snapshot jobs for dynamic thing group targets.
3775
+ * By using continuous jobs, devices that join the group receive the job execution even after the job has
3776
+ * been created.</p>
3777
+ * </note>
3773
3778
  */
3774
3779
  targetSelection?: TargetSelection | string;
3775
3780
  /**
@@ -3812,7 +3817,13 @@ export interface CreateJobRequest {
3812
3817
  */
3813
3818
  jobExecutionsRetryConfig?: JobExecutionsRetryConfig;
3814
3819
  /**
3815
- * <p>Parameters of a managed template that you can specify to create the job document.</p>
3820
+ * <p>Parameters of an Amazon Web Services managed template that you can specify to create the job document.</p>
3821
+ * <note>
3822
+ * <p>
3823
+ * <code>documentParameters</code> can only be used when creating jobs from Amazon Web Services
3824
+ * managed templates. This parameter can't be used with custom job templates or to
3825
+ * create jobs from them.</p>
3826
+ * </note>
3816
3827
  */
3817
3828
  documentParameters?: {
3818
3829
  [key: string]: string;
@@ -4375,11 +4386,11 @@ export interface CustomCodeSigning {
4375
4386
  */
4376
4387
  certificateChain?: CodeSigningCertificateChain;
4377
4388
  /**
4378
- * <p>The hash algorithm used to code sign the file.</p>
4389
+ * <p>The hash algorithm used to code sign the file. You can use a string as the algorithm name if the target over-the-air (OTA) update devices are able to verify the signature that was generated using the same signature algorithm. For example, FreeRTOS uses <code>SHA256</code> or <code>SHA1</code>, so you can pass either of them based on which was used for generating the signature.</p>
4379
4390
  */
4380
4391
  hashAlgorithm?: string;
4381
4392
  /**
4382
- * <p>The signature algorithm used to code sign the file.</p>
4393
+ * <p>The signature algorithm used to code sign the file. You can use a string as the algorithm name if the target over-the-air (OTA) update devices are able to verify the signature that was generated using the same signature algorithm. For example, FreeRTOS uses <code>ECDSA</code> or <code>RSA</code>, so you can pass either of them based on which was used for generating the signature.</p>
4383
4394
  */
4384
4395
  signatureAlgorithm?: string;
4385
4396
  }
@@ -1622,6 +1622,11 @@ export interface Job {
1622
1622
  * when a change is detected in a target. For example, a job will run on a device when the thing representing
1623
1623
  * the device is added to a target group, even after the job was completed by all things originally in the
1624
1624
  * group. </p>
1625
+ * <note>
1626
+ * <p>We recommend that you use continuous jobs instead of snapshot jobs for dynamic thing group targets.
1627
+ * By using continuous jobs, devices that join the group receive the job execution even after the job has
1628
+ * been created.</p>
1629
+ * </note>
1625
1630
  */
1626
1631
  targetSelection?: TargetSelection | string;
1627
1632
  /**
@@ -1709,10 +1714,17 @@ export interface Job {
1709
1714
  * <p>A key-value map that pairs the patterns that need to be replaced in a managed
1710
1715
  * template job document schema. You can use the description of each key as a guidance
1711
1716
  * to specify the inputs during runtime when creating a job.</p>
1717
+ * <note>
1718
+ * <p>
1719
+ * <code>documentParameters</code> can only be used when creating jobs from Amazon Web Services
1720
+ * managed templates. This parameter can't be used with custom job templates or to
1721
+ * create jobs from them.</p>
1722
+ * </note>
1712
1723
  */
1713
1724
  documentParameters?: {
1714
1725
  [key: string]: string;
1715
1726
  };
1727
+ isConcurrent?: boolean;
1716
1728
  }
1717
1729
  export declare namespace Job {
1718
1730
  /**
@@ -1948,6 +1960,12 @@ export declare namespace DescribeManagedJobTemplateRequest {
1948
1960
  * <p>A map of key-value pairs containing the patterns that need to be replaced in a managed
1949
1961
  * template job document schema. You can use the description of each key as a guidance to specify
1950
1962
  * the inputs during runtime when creating a job.</p>
1963
+ * <note>
1964
+ * <p>
1965
+ * <code>documentParameters</code> can only be used when creating jobs from Amazon Web Services
1966
+ * managed templates. This parameter can't be used with custom job templates or to
1967
+ * create jobs from them.</p>
1968
+ * </note>
1951
1969
  */
1952
1970
  export interface DocumentParameter {
1953
1971
  /**
@@ -2006,6 +2024,12 @@ export interface DescribeManagedJobTemplateResponse {
2006
2024
  /**
2007
2025
  * <p>A map of key-value pairs that you can use as guidance to specify the inputs for creating
2008
2026
  * a job from a managed template.</p>
2027
+ * <note>
2028
+ * <p>
2029
+ * <code>documentParameters</code> can only be used when creating jobs from Amazon Web Services
2030
+ * managed templates. This parameter can't be used with custom job templates or to
2031
+ * create jobs from them.</p>
2032
+ * </note>
2009
2033
  */
2010
2034
  documentParameters?: DocumentParameter[];
2011
2035
  /**
@@ -5234,6 +5258,11 @@ export interface ListJobsRequest {
5234
5258
  * specified as targets have completed the job (SNAPSHOT). If continuous, the job may also be run on a thing
5235
5259
  * when a change is detected in a target. For example, a job will run on a thing when the thing is added to a
5236
5260
  * target group, even after the job was completed by all things originally in the group. </p>
5261
+ * <note>
5262
+ * <p>We recommend that you use continuous jobs instead of snapshot jobs for dynamic thing group targets.
5263
+ * By using continuous jobs, devices that join the group receive the job execution even after the job has
5264
+ * been created.</p>
5265
+ * </note>
5237
5266
  */
5238
5267
  targetSelection?: TargetSelection | string;
5239
5268
  /**
@@ -5292,6 +5321,11 @@ export interface JobSummary {
5292
5321
  * specified as targets have completed the job (SNAPSHOT). If continuous, the job may also be run on a thing
5293
5322
  * when a change is detected in a target. For example, a job will run on a thing when the thing is added to a
5294
5323
  * target group, even after the job was completed by all things originally in the group.</p>
5324
+ * <note>
5325
+ * <p>We recommend that you use continuous jobs instead of snapshot jobs for dynamic thing group targets.
5326
+ * By using continuous jobs, devices that join the group receive the job execution even after the job has
5327
+ * been created.</p>
5328
+ * </note>
5295
5329
  */
5296
5330
  targetSelection?: TargetSelection | string;
5297
5331
  /**
@@ -5310,6 +5344,7 @@ export interface JobSummary {
5310
5344
  * <p>The time, in seconds since the epoch, when the job completed.</p>
5311
5345
  */
5312
5346
  completedAt?: Date;
5347
+ isConcurrent?: boolean;
5313
5348
  }
5314
5349
  export declare namespace JobSummary {
5315
5350
  /**
@@ -941,6 +941,7 @@ export interface Job {
941
941
  documentParameters?: {
942
942
  [key: string]: string;
943
943
  };
944
+ isConcurrent?: boolean;
944
945
  }
945
946
  export declare namespace Job {
946
947
 
@@ -2886,6 +2887,7 @@ export interface JobSummary {
2886
2887
  lastUpdatedAt?: Date;
2887
2888
 
2888
2889
  completedAt?: Date;
2890
+ isConcurrent?: boolean;
2889
2891
  }
2890
2892
  export declare namespace JobSummary {
2891
2893
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-iot",
3
3
  "description": "AWS SDK for JavaScript Iot Client for Node.js, Browser and React Native",
4
- "version": "3.82.0",
4
+ "version": "3.90.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -18,9 +18,9 @@
18
18
  "dependencies": {
19
19
  "@aws-crypto/sha256-browser": "2.0.0",
20
20
  "@aws-crypto/sha256-js": "2.0.0",
21
- "@aws-sdk/client-sts": "3.82.0",
21
+ "@aws-sdk/client-sts": "3.87.0",
22
22
  "@aws-sdk/config-resolver": "3.80.0",
23
- "@aws-sdk/credential-provider-node": "3.82.0",
23
+ "@aws-sdk/credential-provider-node": "3.87.0",
24
24
  "@aws-sdk/fetch-http-handler": "3.78.0",
25
25
  "@aws-sdk/hash-node": "3.78.0",
26
26
  "@aws-sdk/invalid-dependency": "3.78.0",
@@ -35,15 +35,15 @@
35
35
  "@aws-sdk/node-config-provider": "3.80.0",
36
36
  "@aws-sdk/node-http-handler": "3.82.0",
37
37
  "@aws-sdk/protocol-http": "3.78.0",
38
- "@aws-sdk/smithy-client": "3.78.0",
38
+ "@aws-sdk/smithy-client": "3.85.0",
39
39
  "@aws-sdk/types": "3.78.0",
40
40
  "@aws-sdk/url-parser": "3.78.0",
41
41
  "@aws-sdk/util-base64-browser": "3.58.0",
42
42
  "@aws-sdk/util-base64-node": "3.55.0",
43
43
  "@aws-sdk/util-body-length-browser": "3.55.0",
44
44
  "@aws-sdk/util-body-length-node": "3.55.0",
45
- "@aws-sdk/util-defaults-mode-browser": "3.78.0",
46
- "@aws-sdk/util-defaults-mode-node": "3.81.0",
45
+ "@aws-sdk/util-defaults-mode-browser": "3.85.0",
46
+ "@aws-sdk/util-defaults-mode-node": "3.85.0",
47
47
  "@aws-sdk/util-user-agent-browser": "3.78.0",
48
48
  "@aws-sdk/util-user-agent-node": "3.80.0",
49
49
  "@aws-sdk/util-utf8-browser": "3.55.0",