@aws-sdk/client-iot 3.485.0 → 3.490.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.
@@ -15018,6 +15018,9 @@ const de_UpdatePackageCommandError = async (output, context) => {
15018
15018
  };
15019
15019
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
15020
15020
  switch (errorCode) {
15021
+ case "ConflictException":
15022
+ case "com.amazonaws.iot#ConflictException":
15023
+ throw await de_ConflictExceptionRes(parsedOutput, context);
15021
15024
  case "InternalServerException":
15022
15025
  case "com.amazonaws.iot#InternalServerException":
15023
15026
  throw await de_InternalServerExceptionRes(parsedOutput, context);
@@ -15057,6 +15060,9 @@ const de_UpdatePackageConfigurationCommandError = async (output, context) => {
15057
15060
  };
15058
15061
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
15059
15062
  switch (errorCode) {
15063
+ case "ConflictException":
15064
+ case "com.amazonaws.iot#ConflictException":
15065
+ throw await de_ConflictExceptionRes(parsedOutput, context);
15060
15066
  case "InternalServerException":
15061
15067
  case "com.amazonaws.iot#InternalServerException":
15062
15068
  throw await de_InternalServerExceptionRes(parsedOutput, context);
@@ -15093,6 +15099,9 @@ const de_UpdatePackageVersionCommandError = async (output, context) => {
15093
15099
  };
15094
15100
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
15095
15101
  switch (errorCode) {
15102
+ case "ConflictException":
15103
+ case "com.amazonaws.iot#ConflictException":
15104
+ throw await de_ConflictExceptionRes(parsedOutput, context);
15096
15105
  case "InternalServerException":
15097
15106
  case "com.amazonaws.iot#InternalServerException":
15098
15107
  throw await de_InternalServerExceptionRes(parsedOutput, context);
@@ -14507,6 +14507,9 @@ const de_UpdatePackageCommandError = async (output, context) => {
14507
14507
  };
14508
14508
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
14509
14509
  switch (errorCode) {
14510
+ case "ConflictException":
14511
+ case "com.amazonaws.iot#ConflictException":
14512
+ throw await de_ConflictExceptionRes(parsedOutput, context);
14510
14513
  case "InternalServerException":
14511
14514
  case "com.amazonaws.iot#InternalServerException":
14512
14515
  throw await de_InternalServerExceptionRes(parsedOutput, context);
@@ -14545,6 +14548,9 @@ const de_UpdatePackageConfigurationCommandError = async (output, context) => {
14545
14548
  };
14546
14549
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
14547
14550
  switch (errorCode) {
14551
+ case "ConflictException":
14552
+ case "com.amazonaws.iot#ConflictException":
14553
+ throw await de_ConflictExceptionRes(parsedOutput, context);
14548
14554
  case "InternalServerException":
14549
14555
  case "com.amazonaws.iot#InternalServerException":
14550
14556
  throw await de_InternalServerExceptionRes(parsedOutput, context);
@@ -14580,6 +14586,9 @@ const de_UpdatePackageVersionCommandError = async (output, context) => {
14580
14586
  };
14581
14587
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
14582
14588
  switch (errorCode) {
14589
+ case "ConflictException":
14590
+ case "com.amazonaws.iot#ConflictException":
14591
+ throw await de_ConflictExceptionRes(parsedOutput, context);
14583
14592
  case "InternalServerException":
14584
14593
  case "com.amazonaws.iot#InternalServerException":
14585
14594
  throw await de_InternalServerExceptionRes(parsedOutput, context);
@@ -53,6 +53,9 @@ declare const UpdatePackageCommand_base: {
53
53
  * @see {@link UpdatePackageCommandOutput} for command's `response` shape.
54
54
  * @see {@link IoTClientResolvedConfig | config} for IoTClient's `config` shape.
55
55
  *
56
+ * @throws {@link ConflictException} (client fault)
57
+ * <p>A resource with the same name already exists.</p>
58
+ *
56
59
  * @throws {@link InternalServerException} (server fault)
57
60
  * <p>Internal error from the service that indicates an unexpected error or that the service
58
61
  * is unavailable.</p>
@@ -53,6 +53,9 @@ declare const UpdatePackageConfigurationCommand_base: {
53
53
  * @see {@link UpdatePackageConfigurationCommandOutput} for command's `response` shape.
54
54
  * @see {@link IoTClientResolvedConfig | config} for IoTClient's `config` shape.
55
55
  *
56
+ * @throws {@link ConflictException} (client fault)
57
+ * <p>A resource with the same name already exists.</p>
58
+ *
56
59
  * @throws {@link InternalServerException} (server fault)
57
60
  * <p>Internal error from the service that indicates an unexpected error or that the service
58
61
  * is unavailable.</p>
@@ -56,6 +56,9 @@ declare const UpdatePackageVersionCommand_base: {
56
56
  * @see {@link UpdatePackageVersionCommandOutput} for command's `response` shape.
57
57
  * @see {@link IoTClientResolvedConfig | config} for IoTClient's `config` shape.
58
58
  *
59
+ * @throws {@link ConflictException} (client fault)
60
+ * <p>A resource with the same name already exists.</p>
61
+ *
59
62
  * @throws {@link InternalServerException} (server fault)
60
63
  * <p>Internal error from the service that indicates an unexpected error or that the service
61
64
  * is unavailable.</p>
@@ -4335,7 +4335,7 @@ export interface CreateJobRequest {
4335
4335
  /**
4336
4336
  * @public
4337
4337
  * <p>The package version Amazon Resource Names (ARNs) that are installed on the device when the
4338
- * job successfully completes. </p>
4338
+ * job successfully completes. The package version must be in either the Published or Deprecated state when the job deploys. For more information, see <a href="https://docs.aws.amazon.com/iot/latest/developerguide/preparing-to-use-software-package-catalog.html#package-version-lifecycle">Package version lifecycle</a>. </p>
4339
4339
  * <p>
4340
4340
  * <b>Note:</b>The following Length Constraints relates to a single ARN.
4341
4341
  * Up to 25 package version ARNs are allowed.</p>
@@ -4453,7 +4453,7 @@ export interface CreateJobTemplateRequest {
4453
4453
  /**
4454
4454
  * @public
4455
4455
  * <p>The package version Amazon Resource Names (ARNs) that are installed on the device when the
4456
- * job successfully completes. </p>
4456
+ * job successfully completes. The package version must be in either the Published or Deprecated state when the job deploys. For more information, see <a href="https://docs.aws.amazon.com/iot/latest/developerguide/preparing-to-use-software-package-catalog.html#package-version-lifecycle">Package version lifecycle</a>.</p>
4457
4457
  * <p>
4458
4458
  * <b>Note:</b>The following Length Constraints relates to a single ARN.
4459
4459
  * Up to 25 package version ARNs are allowed.</p>
@@ -2193,7 +2193,7 @@ export interface Job {
2193
2193
  /**
2194
2194
  * @public
2195
2195
  * <p>The package version Amazon Resource Names (ARNs) that are installed on the device when the
2196
- * job successfully completes. </p>
2196
+ * job successfully completes. The package version must be in either the Published or Deprecated state when the job deploys. For more information, see <a href="https://docs.aws.amazon.com/iot/latest/developerguide/preparing-to-use-software-package-catalog.html#package-version-lifecycle">Package version lifecycle</a>.The package version must be in either the Published or Deprecated state when the job deploys. For more information, see <a href="https://docs.aws.amazon.com/iot/latest/developerguide/preparing-to-use-software-package-catalog.html#package-version-lifecycle">Package version lifecycle</a>.</p>
2197
2197
  * <p>
2198
2198
  * <b>Note:</b>The following Length Constraints relates to a single ARN.
2199
2199
  * Up to 25 package version ARNs are allowed.</p>
@@ -2425,7 +2425,7 @@ export interface DescribeJobTemplateResponse {
2425
2425
  /**
2426
2426
  * @public
2427
2427
  * <p>The package version Amazon Resource Names (ARNs) that are installed on the device when the
2428
- * job successfully completes. </p>
2428
+ * job successfully completes. The package version must be in either the Published or Deprecated state when the job deploys. For more information, see <a href="https://docs.aws.amazon.com/iot/latest/developerguide/preparing-to-use-software-package-catalog.html#package-version-lifecycle">Package version lifecycle</a>.</p>
2429
2429
  * <p>
2430
2430
  * <b>Note:</b>The following Length Constraints relates to a single ARN.
2431
2431
  * Up to 25 package version ARNs are allowed.</p>
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.485.0",
4
+ "version": "3.490.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",
@@ -20,19 +20,19 @@
20
20
  "dependencies": {
21
21
  "@aws-crypto/sha256-browser": "3.0.0",
22
22
  "@aws-crypto/sha256-js": "3.0.0",
23
- "@aws-sdk/client-sts": "3.485.0",
24
- "@aws-sdk/core": "3.485.0",
25
- "@aws-sdk/credential-provider-node": "3.485.0",
26
- "@aws-sdk/middleware-host-header": "3.485.0",
27
- "@aws-sdk/middleware-logger": "3.485.0",
28
- "@aws-sdk/middleware-recursion-detection": "3.485.0",
29
- "@aws-sdk/middleware-signing": "3.485.0",
30
- "@aws-sdk/middleware-user-agent": "3.485.0",
31
- "@aws-sdk/region-config-resolver": "3.485.0",
32
- "@aws-sdk/types": "3.485.0",
33
- "@aws-sdk/util-endpoints": "3.485.0",
34
- "@aws-sdk/util-user-agent-browser": "3.485.0",
35
- "@aws-sdk/util-user-agent-node": "3.485.0",
23
+ "@aws-sdk/client-sts": "3.490.0",
24
+ "@aws-sdk/core": "3.490.0",
25
+ "@aws-sdk/credential-provider-node": "3.490.0",
26
+ "@aws-sdk/middleware-host-header": "3.489.0",
27
+ "@aws-sdk/middleware-logger": "3.489.0",
28
+ "@aws-sdk/middleware-recursion-detection": "3.489.0",
29
+ "@aws-sdk/middleware-signing": "3.489.0",
30
+ "@aws-sdk/middleware-user-agent": "3.489.0",
31
+ "@aws-sdk/region-config-resolver": "3.489.0",
32
+ "@aws-sdk/types": "3.489.0",
33
+ "@aws-sdk/util-endpoints": "3.489.0",
34
+ "@aws-sdk/util-user-agent-browser": "3.489.0",
35
+ "@aws-sdk/util-user-agent-node": "3.489.0",
36
36
  "@smithy/config-resolver": "^2.0.23",
37
37
  "@smithy/core": "^1.2.2",
38
38
  "@smithy/fetch-http-handler": "^2.3.2",