@aws-sdk/client-iot 3.245.0 → 3.252.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.
|
@@ -372,7 +372,9 @@ const serializeAws_restJson1CreateAuditSuppressionCommand = async (input, contex
|
|
|
372
372
|
...(input.checkName != null && { checkName: input.checkName }),
|
|
373
373
|
clientRequestToken: input.clientRequestToken ?? (0, uuid_1.v4)(),
|
|
374
374
|
...(input.description != null && { description: input.description }),
|
|
375
|
-
...(input.expirationDate != null && {
|
|
375
|
+
...(input.expirationDate != null && {
|
|
376
|
+
expirationDate: Math.round(input.expirationDate.getTime() / 1000).toString(),
|
|
377
|
+
}),
|
|
376
378
|
...(input.resourceIdentifier != null && {
|
|
377
379
|
resourceIdentifier: serializeAws_restJson1ResourceIdentifier(input.resourceIdentifier, context),
|
|
378
380
|
}),
|
|
@@ -2863,14 +2865,14 @@ const serializeAws_restJson1ListAuditFindingsCommand = async (input, context) =>
|
|
|
2863
2865
|
let body;
|
|
2864
2866
|
body = JSON.stringify({
|
|
2865
2867
|
...(input.checkName != null && { checkName: input.checkName }),
|
|
2866
|
-
...(input.endTime != null && { endTime: Math.round(input.endTime.getTime() / 1000) }),
|
|
2868
|
+
...(input.endTime != null && { endTime: Math.round(input.endTime.getTime() / 1000).toString() }),
|
|
2867
2869
|
...(input.listSuppressedFindings != null && { listSuppressedFindings: input.listSuppressedFindings }),
|
|
2868
2870
|
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
2869
2871
|
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
2870
2872
|
...(input.resourceIdentifier != null && {
|
|
2871
2873
|
resourceIdentifier: serializeAws_restJson1ResourceIdentifier(input.resourceIdentifier, context),
|
|
2872
2874
|
}),
|
|
2873
|
-
...(input.startTime != null && { startTime: Math.round(input.startTime.getTime() / 1000) }),
|
|
2875
|
+
...(input.startTime != null && { startTime: Math.round(input.startTime.getTime() / 1000).toString() }),
|
|
2874
2876
|
...(input.taskId != null && { taskId: input.taskId }),
|
|
2875
2877
|
});
|
|
2876
2878
|
return new protocol_http_1.HttpRequest({
|
|
@@ -2920,11 +2922,11 @@ const serializeAws_restJson1ListAuditMitigationActionsTasksCommand = async (inpu
|
|
|
2920
2922
|
nextToken: [, input.nextToken],
|
|
2921
2923
|
startTime: [
|
|
2922
2924
|
(0, smithy_client_1.expectNonNull)(input.startTime, `startTime`) != null,
|
|
2923
|
-
() =>
|
|
2925
|
+
() => input.startTime.toISOString().split(".")[0] + "Z",
|
|
2924
2926
|
],
|
|
2925
2927
|
endTime: [
|
|
2926
2928
|
(0, smithy_client_1.expectNonNull)(input.endTime, `endTime`) != null,
|
|
2927
|
-
() =>
|
|
2929
|
+
() => input.endTime.toISOString().split(".")[0] + "Z",
|
|
2928
2930
|
],
|
|
2929
2931
|
});
|
|
2930
2932
|
let body;
|
|
@@ -2974,11 +2976,11 @@ const serializeAws_restJson1ListAuditTasksCommand = async (input, context) => {
|
|
|
2974
2976
|
const query = map({
|
|
2975
2977
|
startTime: [
|
|
2976
2978
|
(0, smithy_client_1.expectNonNull)(input.startTime, `startTime`) != null,
|
|
2977
|
-
() =>
|
|
2979
|
+
() => input.startTime.toISOString().split(".")[0] + "Z",
|
|
2978
2980
|
],
|
|
2979
2981
|
endTime: [
|
|
2980
2982
|
(0, smithy_client_1.expectNonNull)(input.endTime, `endTime`) != null,
|
|
2981
|
-
() =>
|
|
2983
|
+
() => input.endTime.toISOString().split(".")[0] + "Z",
|
|
2982
2984
|
],
|
|
2983
2985
|
taskType: [, input.taskType],
|
|
2984
2986
|
taskStatus: [, input.taskStatus],
|
|
@@ -3140,11 +3142,8 @@ const serializeAws_restJson1ListDetectMitigationActionsExecutionsCommand = async
|
|
|
3140
3142
|
taskId: [, input.taskId],
|
|
3141
3143
|
violationId: [, input.violationId],
|
|
3142
3144
|
thingName: [, input.thingName],
|
|
3143
|
-
startTime: [
|
|
3144
|
-
|
|
3145
|
-
() => (input.startTime.toISOString().split(".")[0] + "Z").toString(),
|
|
3146
|
-
],
|
|
3147
|
-
endTime: [() => input.endTime !== void 0, () => (input.endTime.toISOString().split(".")[0] + "Z").toString()],
|
|
3145
|
+
startTime: [() => input.startTime !== void 0, () => input.startTime.toISOString().split(".")[0] + "Z"],
|
|
3146
|
+
endTime: [() => input.endTime !== void 0, () => input.endTime.toISOString().split(".")[0] + "Z"],
|
|
3148
3147
|
maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
|
|
3149
3148
|
nextToken: [, input.nextToken],
|
|
3150
3149
|
});
|
|
@@ -3170,11 +3169,11 @@ const serializeAws_restJson1ListDetectMitigationActionsTasksCommand = async (inp
|
|
|
3170
3169
|
nextToken: [, input.nextToken],
|
|
3171
3170
|
startTime: [
|
|
3172
3171
|
(0, smithy_client_1.expectNonNull)(input.startTime, `startTime`) != null,
|
|
3173
|
-
() =>
|
|
3172
|
+
() => input.startTime.toISOString().split(".")[0] + "Z",
|
|
3174
3173
|
],
|
|
3175
3174
|
endTime: [
|
|
3176
3175
|
(0, smithy_client_1.expectNonNull)(input.endTime, `endTime`) != null,
|
|
3177
|
-
() =>
|
|
3176
|
+
() => input.endTime.toISOString().split(".")[0] + "Z",
|
|
3178
3177
|
],
|
|
3179
3178
|
});
|
|
3180
3179
|
let body;
|
|
@@ -3403,11 +3402,11 @@ const serializeAws_restJson1ListMetricValuesCommand = async (input, context) =>
|
|
|
3403
3402
|
dimensionValueOperator: [, input.dimensionValueOperator],
|
|
3404
3403
|
startTime: [
|
|
3405
3404
|
(0, smithy_client_1.expectNonNull)(input.startTime, `startTime`) != null,
|
|
3406
|
-
() =>
|
|
3405
|
+
() => input.startTime.toISOString().split(".")[0] + "Z",
|
|
3407
3406
|
],
|
|
3408
3407
|
endTime: [
|
|
3409
3408
|
(0, smithy_client_1.expectNonNull)(input.endTime, `endTime`) != null,
|
|
3410
|
-
() =>
|
|
3409
|
+
() => input.endTime.toISOString().split(".")[0] + "Z",
|
|
3411
3410
|
],
|
|
3412
3411
|
maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
|
|
3413
3412
|
nextToken: [, input.nextToken],
|
|
@@ -4126,11 +4125,11 @@ const serializeAws_restJson1ListViolationEventsCommand = async (input, context)
|
|
|
4126
4125
|
const query = map({
|
|
4127
4126
|
startTime: [
|
|
4128
4127
|
(0, smithy_client_1.expectNonNull)(input.startTime, `startTime`) != null,
|
|
4129
|
-
() =>
|
|
4128
|
+
() => input.startTime.toISOString().split(".")[0] + "Z",
|
|
4130
4129
|
],
|
|
4131
4130
|
endTime: [
|
|
4132
4131
|
(0, smithy_client_1.expectNonNull)(input.endTime, `endTime`) != null,
|
|
4133
|
-
() =>
|
|
4132
|
+
() => input.endTime.toISOString().split(".")[0] + "Z",
|
|
4134
4133
|
],
|
|
4135
4134
|
thingName: [, input.thingName],
|
|
4136
4135
|
securityProfileName: [, input.securityProfileName],
|
|
@@ -4811,7 +4810,9 @@ const serializeAws_restJson1UpdateAuditSuppressionCommand = async (input, contex
|
|
|
4811
4810
|
body = JSON.stringify({
|
|
4812
4811
|
...(input.checkName != null && { checkName: input.checkName }),
|
|
4813
4812
|
...(input.description != null && { description: input.description }),
|
|
4814
|
-
...(input.expirationDate != null && {
|
|
4813
|
+
...(input.expirationDate != null && {
|
|
4814
|
+
expirationDate: Math.round(input.expirationDate.getTime() / 1000).toString(),
|
|
4815
|
+
}),
|
|
4815
4816
|
...(input.resourceIdentifier != null && {
|
|
4816
4817
|
resourceIdentifier: serializeAws_restJson1ResourceIdentifier(input.resourceIdentifier, context),
|
|
4817
4818
|
}),
|
|
@@ -18909,8 +18910,8 @@ const serializeAws_restJson1UserProperty = (input, context) => {
|
|
|
18909
18910
|
};
|
|
18910
18911
|
const serializeAws_restJson1ViolationEventOccurrenceRange = (input, context) => {
|
|
18911
18912
|
return {
|
|
18912
|
-
...(input.endTime != null && { endTime: Math.round(input.endTime.getTime() / 1000) }),
|
|
18913
|
-
...(input.startTime != null && { startTime: Math.round(input.startTime.getTime() / 1000) }),
|
|
18913
|
+
...(input.endTime != null && { endTime: Math.round(input.endTime.getTime() / 1000).toString() }),
|
|
18914
|
+
...(input.startTime != null && { startTime: Math.round(input.startTime.getTime() / 1000).toString() }),
|
|
18914
18915
|
};
|
|
18915
18916
|
};
|
|
18916
18917
|
const serializeAws_restJson1VpcDestinationConfiguration = (input, context) => {
|
|
@@ -344,7 +344,9 @@ export const serializeAws_restJson1CreateAuditSuppressionCommand = async (input,
|
|
|
344
344
|
...(input.checkName != null && { checkName: input.checkName }),
|
|
345
345
|
clientRequestToken: input.clientRequestToken ?? generateIdempotencyToken(),
|
|
346
346
|
...(input.description != null && { description: input.description }),
|
|
347
|
-
...(input.expirationDate != null && {
|
|
347
|
+
...(input.expirationDate != null && {
|
|
348
|
+
expirationDate: Math.round(input.expirationDate.getTime() / 1000).toString(),
|
|
349
|
+
}),
|
|
348
350
|
...(input.resourceIdentifier != null && {
|
|
349
351
|
resourceIdentifier: serializeAws_restJson1ResourceIdentifier(input.resourceIdentifier, context),
|
|
350
352
|
}),
|
|
@@ -2718,14 +2720,14 @@ export const serializeAws_restJson1ListAuditFindingsCommand = async (input, cont
|
|
|
2718
2720
|
let body;
|
|
2719
2721
|
body = JSON.stringify({
|
|
2720
2722
|
...(input.checkName != null && { checkName: input.checkName }),
|
|
2721
|
-
...(input.endTime != null && { endTime: Math.round(input.endTime.getTime() / 1000) }),
|
|
2723
|
+
...(input.endTime != null && { endTime: Math.round(input.endTime.getTime() / 1000).toString() }),
|
|
2722
2724
|
...(input.listSuppressedFindings != null && { listSuppressedFindings: input.listSuppressedFindings }),
|
|
2723
2725
|
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
2724
2726
|
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
2725
2727
|
...(input.resourceIdentifier != null && {
|
|
2726
2728
|
resourceIdentifier: serializeAws_restJson1ResourceIdentifier(input.resourceIdentifier, context),
|
|
2727
2729
|
}),
|
|
2728
|
-
...(input.startTime != null && { startTime: Math.round(input.startTime.getTime() / 1000) }),
|
|
2730
|
+
...(input.startTime != null && { startTime: Math.round(input.startTime.getTime() / 1000).toString() }),
|
|
2729
2731
|
...(input.taskId != null && { taskId: input.taskId }),
|
|
2730
2732
|
});
|
|
2731
2733
|
return new __HttpRequest({
|
|
@@ -2773,11 +2775,11 @@ export const serializeAws_restJson1ListAuditMitigationActionsTasksCommand = asyn
|
|
|
2773
2775
|
nextToken: [, input.nextToken],
|
|
2774
2776
|
startTime: [
|
|
2775
2777
|
__expectNonNull(input.startTime, `startTime`) != null,
|
|
2776
|
-
() =>
|
|
2778
|
+
() => input.startTime.toISOString().split(".")[0] + "Z",
|
|
2777
2779
|
],
|
|
2778
2780
|
endTime: [
|
|
2779
2781
|
__expectNonNull(input.endTime, `endTime`) != null,
|
|
2780
|
-
() =>
|
|
2782
|
+
() => input.endTime.toISOString().split(".")[0] + "Z",
|
|
2781
2783
|
],
|
|
2782
2784
|
});
|
|
2783
2785
|
let body;
|
|
@@ -2825,11 +2827,11 @@ export const serializeAws_restJson1ListAuditTasksCommand = async (input, context
|
|
|
2825
2827
|
const query = map({
|
|
2826
2828
|
startTime: [
|
|
2827
2829
|
__expectNonNull(input.startTime, `startTime`) != null,
|
|
2828
|
-
() =>
|
|
2830
|
+
() => input.startTime.toISOString().split(".")[0] + "Z",
|
|
2829
2831
|
],
|
|
2830
2832
|
endTime: [
|
|
2831
2833
|
__expectNonNull(input.endTime, `endTime`) != null,
|
|
2832
|
-
() =>
|
|
2834
|
+
() => input.endTime.toISOString().split(".")[0] + "Z",
|
|
2833
2835
|
],
|
|
2834
2836
|
taskType: [, input.taskType],
|
|
2835
2837
|
taskStatus: [, input.taskStatus],
|
|
@@ -2984,11 +2986,8 @@ export const serializeAws_restJson1ListDetectMitigationActionsExecutionsCommand
|
|
|
2984
2986
|
taskId: [, input.taskId],
|
|
2985
2987
|
violationId: [, input.violationId],
|
|
2986
2988
|
thingName: [, input.thingName],
|
|
2987
|
-
startTime: [
|
|
2988
|
-
|
|
2989
|
-
() => (input.startTime.toISOString().split(".")[0] + "Z").toString(),
|
|
2990
|
-
],
|
|
2991
|
-
endTime: [() => input.endTime !== void 0, () => (input.endTime.toISOString().split(".")[0] + "Z").toString()],
|
|
2989
|
+
startTime: [() => input.startTime !== void 0, () => input.startTime.toISOString().split(".")[0] + "Z"],
|
|
2990
|
+
endTime: [() => input.endTime !== void 0, () => input.endTime.toISOString().split(".")[0] + "Z"],
|
|
2992
2991
|
maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
|
|
2993
2992
|
nextToken: [, input.nextToken],
|
|
2994
2993
|
});
|
|
@@ -3013,11 +3012,11 @@ export const serializeAws_restJson1ListDetectMitigationActionsTasksCommand = asy
|
|
|
3013
3012
|
nextToken: [, input.nextToken],
|
|
3014
3013
|
startTime: [
|
|
3015
3014
|
__expectNonNull(input.startTime, `startTime`) != null,
|
|
3016
|
-
() =>
|
|
3015
|
+
() => input.startTime.toISOString().split(".")[0] + "Z",
|
|
3017
3016
|
],
|
|
3018
3017
|
endTime: [
|
|
3019
3018
|
__expectNonNull(input.endTime, `endTime`) != null,
|
|
3020
|
-
() =>
|
|
3019
|
+
() => input.endTime.toISOString().split(".")[0] + "Z",
|
|
3021
3020
|
],
|
|
3022
3021
|
});
|
|
3023
3022
|
let body;
|
|
@@ -3236,11 +3235,11 @@ export const serializeAws_restJson1ListMetricValuesCommand = async (input, conte
|
|
|
3236
3235
|
dimensionValueOperator: [, input.dimensionValueOperator],
|
|
3237
3236
|
startTime: [
|
|
3238
3237
|
__expectNonNull(input.startTime, `startTime`) != null,
|
|
3239
|
-
() =>
|
|
3238
|
+
() => input.startTime.toISOString().split(".")[0] + "Z",
|
|
3240
3239
|
],
|
|
3241
3240
|
endTime: [
|
|
3242
3241
|
__expectNonNull(input.endTime, `endTime`) != null,
|
|
3243
|
-
() =>
|
|
3242
|
+
() => input.endTime.toISOString().split(".")[0] + "Z",
|
|
3244
3243
|
],
|
|
3245
3244
|
maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
|
|
3246
3245
|
nextToken: [, input.nextToken],
|
|
@@ -3927,11 +3926,11 @@ export const serializeAws_restJson1ListViolationEventsCommand = async (input, co
|
|
|
3927
3926
|
const query = map({
|
|
3928
3927
|
startTime: [
|
|
3929
3928
|
__expectNonNull(input.startTime, `startTime`) != null,
|
|
3930
|
-
() =>
|
|
3929
|
+
() => input.startTime.toISOString().split(".")[0] + "Z",
|
|
3931
3930
|
],
|
|
3932
3931
|
endTime: [
|
|
3933
3932
|
__expectNonNull(input.endTime, `endTime`) != null,
|
|
3934
|
-
() =>
|
|
3933
|
+
() => input.endTime.toISOString().split(".")[0] + "Z",
|
|
3935
3934
|
],
|
|
3936
3935
|
thingName: [, input.thingName],
|
|
3937
3936
|
securityProfileName: [, input.securityProfileName],
|
|
@@ -4585,7 +4584,9 @@ export const serializeAws_restJson1UpdateAuditSuppressionCommand = async (input,
|
|
|
4585
4584
|
body = JSON.stringify({
|
|
4586
4585
|
...(input.checkName != null && { checkName: input.checkName }),
|
|
4587
4586
|
...(input.description != null && { description: input.description }),
|
|
4588
|
-
...(input.expirationDate != null && {
|
|
4587
|
+
...(input.expirationDate != null && {
|
|
4588
|
+
expirationDate: Math.round(input.expirationDate.getTime() / 1000).toString(),
|
|
4589
|
+
}),
|
|
4589
4590
|
...(input.resourceIdentifier != null && {
|
|
4590
4591
|
resourceIdentifier: serializeAws_restJson1ResourceIdentifier(input.resourceIdentifier, context),
|
|
4591
4592
|
}),
|
|
@@ -18421,8 +18422,8 @@ const serializeAws_restJson1UserProperty = (input, context) => {
|
|
|
18421
18422
|
};
|
|
18422
18423
|
const serializeAws_restJson1ViolationEventOccurrenceRange = (input, context) => {
|
|
18423
18424
|
return {
|
|
18424
|
-
...(input.endTime != null && { endTime: Math.round(input.endTime.getTime() / 1000) }),
|
|
18425
|
-
...(input.startTime != null && { startTime: Math.round(input.startTime.getTime() / 1000) }),
|
|
18425
|
+
...(input.endTime != null && { endTime: Math.round(input.endTime.getTime() / 1000).toString() }),
|
|
18426
|
+
...(input.startTime != null && { startTime: Math.round(input.startTime.getTime() / 1000).toString() }),
|
|
18426
18427
|
};
|
|
18427
18428
|
};
|
|
18428
18429
|
const serializeAws_restJson1VpcDestinationConfiguration = (input, context) => {
|
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.252.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",
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"build:types": "tsc -p tsconfig.types.json",
|
|
12
12
|
"build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
|
|
13
13
|
"clean": "rimraf ./dist-* && rimraf *.tsbuildinfo",
|
|
14
|
-
"generate:client": "
|
|
14
|
+
"generate:client": "node ../../scripts/generate-clients/single-service --solo iot"
|
|
15
15
|
},
|
|
16
16
|
"main": "./dist-cjs/index.js",
|
|
17
17
|
"types": "./dist-types/index.d.ts",
|
|
@@ -20,9 +20,9 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@aws-crypto/sha256-browser": "2.0.0",
|
|
22
22
|
"@aws-crypto/sha256-js": "2.0.0",
|
|
23
|
-
"@aws-sdk/client-sts": "3.
|
|
23
|
+
"@aws-sdk/client-sts": "3.252.0",
|
|
24
24
|
"@aws-sdk/config-resolver": "3.234.0",
|
|
25
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
25
|
+
"@aws-sdk/credential-provider-node": "3.252.0",
|
|
26
26
|
"@aws-sdk/fetch-http-handler": "3.226.0",
|
|
27
27
|
"@aws-sdk/hash-node": "3.226.0",
|
|
28
28
|
"@aws-sdk/invalid-dependency": "3.226.0",
|