@aws-sdk/client-iot 3.489.0 → 3.493.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/dist-cjs/models/models_1.js +0 -2
- package/dist-cjs/protocols/Aws_restJson1.js +9 -0
- package/dist-es/models/models_1.js +0 -2
- package/dist-es/protocols/Aws_restJson1.js +9 -0
- package/dist-types/commands/DeleteV2LoggingLevelCommand.d.ts +1 -1
- package/dist-types/commands/ListV2LoggingLevelsCommand.d.ts +2 -2
- package/dist-types/commands/SetV2LoggingLevelCommand.d.ts +1 -1
- package/dist-types/commands/UpdatePackageCommand.d.ts +3 -0
- package/dist-types/commands/UpdatePackageConfigurationCommand.d.ts +3 -0
- package/dist-types/commands/UpdatePackageVersionCommand.d.ts +3 -0
- package/dist-types/models/models_0.d.ts +2 -2
- package/dist-types/models/models_1.d.ts +2 -4
- package/dist-types/ts3.4/models/models_1.d.ts +0 -2
- package/package.json +4 -4
|
@@ -6,8 +6,6 @@ const IoTServiceException_1 = require("./IoTServiceException");
|
|
|
6
6
|
exports.LogTargetType = {
|
|
7
7
|
CLIENT_ID: "CLIENT_ID",
|
|
8
8
|
DEFAULT: "DEFAULT",
|
|
9
|
-
DEVICE_DEFENDER: "DEVICE_DEFENDER",
|
|
10
|
-
EVENT_TYPE: "EVENT_TYPE",
|
|
11
9
|
PRINCIPAL_ID: "PRINCIPAL_ID",
|
|
12
10
|
SOURCE_IP: "SOURCE_IP",
|
|
13
11
|
THING_GROUP: "THING_GROUP",
|
|
@@ -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);
|
|
@@ -3,8 +3,6 @@ import { IoTServiceException as __BaseException } from "./IoTServiceException";
|
|
|
3
3
|
export const LogTargetType = {
|
|
4
4
|
CLIENT_ID: "CLIENT_ID",
|
|
5
5
|
DEFAULT: "DEFAULT",
|
|
6
|
-
DEVICE_DEFENDER: "DEVICE_DEFENDER",
|
|
7
|
-
EVENT_TYPE: "EVENT_TYPE",
|
|
8
6
|
PRINCIPAL_ID: "PRINCIPAL_ID",
|
|
9
7
|
SOURCE_IP: "SOURCE_IP",
|
|
10
8
|
THING_GROUP: "THING_GROUP",
|
|
@@ -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);
|
|
@@ -35,7 +35,7 @@ declare const DeleteV2LoggingLevelCommand_base: {
|
|
|
35
35
|
* // const { IoTClient, DeleteV2LoggingLevelCommand } = require("@aws-sdk/client-iot"); // CommonJS import
|
|
36
36
|
* const client = new IoTClient(config);
|
|
37
37
|
* const input = { // DeleteV2LoggingLevelRequest
|
|
38
|
-
* targetType: "DEFAULT" || "THING_GROUP" || "CLIENT_ID" || "SOURCE_IP" || "PRINCIPAL_ID"
|
|
38
|
+
* targetType: "DEFAULT" || "THING_GROUP" || "CLIENT_ID" || "SOURCE_IP" || "PRINCIPAL_ID", // required
|
|
39
39
|
* targetName: "STRING_VALUE", // required
|
|
40
40
|
* };
|
|
41
41
|
* const command = new DeleteV2LoggingLevelCommand(input);
|
|
@@ -35,7 +35,7 @@ declare const ListV2LoggingLevelsCommand_base: {
|
|
|
35
35
|
* // const { IoTClient, ListV2LoggingLevelsCommand } = require("@aws-sdk/client-iot"); // CommonJS import
|
|
36
36
|
* const client = new IoTClient(config);
|
|
37
37
|
* const input = { // ListV2LoggingLevelsRequest
|
|
38
|
-
* targetType: "DEFAULT" || "THING_GROUP" || "CLIENT_ID" || "SOURCE_IP" || "PRINCIPAL_ID"
|
|
38
|
+
* targetType: "DEFAULT" || "THING_GROUP" || "CLIENT_ID" || "SOURCE_IP" || "PRINCIPAL_ID",
|
|
39
39
|
* nextToken: "STRING_VALUE",
|
|
40
40
|
* maxResults: Number("int"),
|
|
41
41
|
* };
|
|
@@ -45,7 +45,7 @@ declare const ListV2LoggingLevelsCommand_base: {
|
|
|
45
45
|
* // logTargetConfigurations: [ // LogTargetConfigurations
|
|
46
46
|
* // { // LogTargetConfiguration
|
|
47
47
|
* // logTarget: { // LogTarget
|
|
48
|
-
* // targetType: "DEFAULT" || "THING_GROUP" || "CLIENT_ID" || "SOURCE_IP" || "PRINCIPAL_ID"
|
|
48
|
+
* // targetType: "DEFAULT" || "THING_GROUP" || "CLIENT_ID" || "SOURCE_IP" || "PRINCIPAL_ID", // required
|
|
49
49
|
* // targetName: "STRING_VALUE",
|
|
50
50
|
* // },
|
|
51
51
|
* // logLevel: "DEBUG" || "INFO" || "ERROR" || "WARN" || "DISABLED",
|
|
@@ -36,7 +36,7 @@ declare const SetV2LoggingLevelCommand_base: {
|
|
|
36
36
|
* const client = new IoTClient(config);
|
|
37
37
|
* const input = { // SetV2LoggingLevelRequest
|
|
38
38
|
* logTarget: { // LogTarget
|
|
39
|
-
* targetType: "DEFAULT" || "THING_GROUP" || "CLIENT_ID" || "SOURCE_IP" || "PRINCIPAL_ID"
|
|
39
|
+
* targetType: "DEFAULT" || "THING_GROUP" || "CLIENT_ID" || "SOURCE_IP" || "PRINCIPAL_ID", // required
|
|
40
40
|
* targetName: "STRING_VALUE",
|
|
41
41
|
* },
|
|
42
42
|
* logLevel: "DEBUG" || "INFO" || "ERROR" || "WARN" || "DISABLED", // required
|
|
@@ -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
|
-
*
|
|
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>
|
|
@@ -493,8 +493,6 @@ export interface DeleteTopicRuleDestinationResponse {
|
|
|
493
493
|
export declare const LogTargetType: {
|
|
494
494
|
readonly CLIENT_ID: "CLIENT_ID";
|
|
495
495
|
readonly DEFAULT: "DEFAULT";
|
|
496
|
-
readonly DEVICE_DEFENDER: "DEVICE_DEFENDER";
|
|
497
|
-
readonly EVENT_TYPE: "EVENT_TYPE";
|
|
498
496
|
readonly PRINCIPAL_ID: "PRINCIPAL_ID";
|
|
499
497
|
readonly SOURCE_IP: "SOURCE_IP";
|
|
500
498
|
readonly THING_GROUP: "THING_GROUP";
|
|
@@ -2193,7 +2191,7 @@ export interface Job {
|
|
|
2193
2191
|
/**
|
|
2194
2192
|
* @public
|
|
2195
2193
|
* <p>The package version Amazon Resource Names (ARNs) that are installed on the device when the
|
|
2196
|
-
* job successfully completes. </p>
|
|
2194
|
+
* 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
2195
|
* <p>
|
|
2198
2196
|
* <b>Note:</b>The following Length Constraints relates to a single ARN.
|
|
2199
2197
|
* Up to 25 package version ARNs are allowed.</p>
|
|
@@ -2425,7 +2423,7 @@ export interface DescribeJobTemplateResponse {
|
|
|
2425
2423
|
/**
|
|
2426
2424
|
* @public
|
|
2427
2425
|
* <p>The package version Amazon Resource Names (ARNs) that are installed on the device when the
|
|
2428
|
-
* job successfully completes. </p>
|
|
2426
|
+
* 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
2427
|
* <p>
|
|
2430
2428
|
* <b>Note:</b>The following Length Constraints relates to a single ARN.
|
|
2431
2429
|
* Up to 25 package version ARNs are allowed.</p>
|
|
@@ -179,8 +179,6 @@ export interface DeleteTopicRuleDestinationResponse {}
|
|
|
179
179
|
export declare const LogTargetType: {
|
|
180
180
|
readonly CLIENT_ID: "CLIENT_ID";
|
|
181
181
|
readonly DEFAULT: "DEFAULT";
|
|
182
|
-
readonly DEVICE_DEFENDER: "DEVICE_DEFENDER";
|
|
183
|
-
readonly EVENT_TYPE: "EVENT_TYPE";
|
|
184
182
|
readonly PRINCIPAL_ID: "PRINCIPAL_ID";
|
|
185
183
|
readonly SOURCE_IP: "SOURCE_IP";
|
|
186
184
|
readonly THING_GROUP: "THING_GROUP";
|
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.
|
|
4
|
+
"version": "3.493.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,9 +20,9 @@
|
|
|
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.
|
|
24
|
-
"@aws-sdk/core": "3.
|
|
25
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
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
26
|
"@aws-sdk/middleware-host-header": "3.489.0",
|
|
27
27
|
"@aws-sdk/middleware-logger": "3.489.0",
|
|
28
28
|
"@aws-sdk/middleware-recursion-detection": "3.489.0",
|