@aws-sdk/client-greengrassv2 3.28.0 → 3.32.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 +32 -0
- package/dist/cjs/package.json +31 -31
- package/dist/cjs/protocols/Aws_restJson1.js +43 -43
- package/dist/cjs/protocols/Aws_restJson1.js.map +1 -1
- package/dist/es/endpoints.js +1 -2
- package/dist/es/endpoints.js.map +1 -1
- package/dist/es/package.json +31 -31
- package/dist/es/protocols/Aws_restJson1.js +139 -101
- package/dist/es/protocols/Aws_restJson1.js.map +1 -1
- package/package.json +31 -31
- package/protocols/Aws_restJson1.ts +53 -46
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,38 @@
|
|
|
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.32.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.31.0...v3.32.0) (2021-09-17)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @aws-sdk/client-greengrassv2
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
# [3.31.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.30.0...v3.31.0) (2021-09-11)
|
|
15
|
+
|
|
16
|
+
**Note:** Version bump only for package @aws-sdk/client-greengrassv2
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
# [3.30.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.29.0...v3.30.0) (2021-09-07)
|
|
23
|
+
|
|
24
|
+
**Note:** Version bump only for package @aws-sdk/client-greengrassv2
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
# [3.29.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.28.0...v3.29.0) (2021-09-02)
|
|
31
|
+
|
|
32
|
+
**Note:** Version bump only for package @aws-sdk/client-greengrassv2
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
|
|
6
38
|
# [3.28.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.27.0...v3.28.0) (2021-08-27)
|
|
7
39
|
|
|
8
40
|
|
package/dist/cjs/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-greengrassv2",
|
|
3
3
|
"description": "AWS SDK for JavaScript Greengrassv2 Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.32.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"clean": "yarn remove-definitions && yarn remove-dist && yarn remove-documentation",
|
|
7
7
|
"build-documentation": "yarn remove-documentation && typedoc ./",
|
|
@@ -27,39 +27,39 @@
|
|
|
27
27
|
"dependencies": {
|
|
28
28
|
"@aws-crypto/sha256-browser": "^1.1.0",
|
|
29
29
|
"@aws-crypto/sha256-js": "^1.1.0",
|
|
30
|
-
"@aws-sdk/client-sts": "3.
|
|
31
|
-
"@aws-sdk/config-resolver": "3.
|
|
32
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
33
|
-
"@aws-sdk/fetch-http-handler": "3.
|
|
34
|
-
"@aws-sdk/hash-node": "3.
|
|
35
|
-
"@aws-sdk/invalid-dependency": "3.
|
|
36
|
-
"@aws-sdk/middleware-content-length": "3.
|
|
37
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
38
|
-
"@aws-sdk/middleware-logger": "3.
|
|
39
|
-
"@aws-sdk/middleware-retry": "3.
|
|
40
|
-
"@aws-sdk/middleware-serde": "3.
|
|
41
|
-
"@aws-sdk/middleware-signing": "3.
|
|
42
|
-
"@aws-sdk/middleware-stack": "3.
|
|
43
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
44
|
-
"@aws-sdk/node-config-provider": "3.
|
|
45
|
-
"@aws-sdk/node-http-handler": "3.
|
|
46
|
-
"@aws-sdk/protocol-http": "3.
|
|
47
|
-
"@aws-sdk/smithy-client": "3.
|
|
48
|
-
"@aws-sdk/types": "3.
|
|
49
|
-
"@aws-sdk/url-parser": "3.
|
|
50
|
-
"@aws-sdk/util-base64-browser": "3.
|
|
51
|
-
"@aws-sdk/util-base64-node": "3.
|
|
52
|
-
"@aws-sdk/util-body-length-browser": "3.
|
|
53
|
-
"@aws-sdk/util-body-length-node": "3.
|
|
54
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
55
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
56
|
-
"@aws-sdk/util-utf8-browser": "3.
|
|
57
|
-
"@aws-sdk/util-utf8-node": "3.
|
|
30
|
+
"@aws-sdk/client-sts": "3.32.0",
|
|
31
|
+
"@aws-sdk/config-resolver": "3.32.0",
|
|
32
|
+
"@aws-sdk/credential-provider-node": "3.32.0",
|
|
33
|
+
"@aws-sdk/fetch-http-handler": "3.32.0",
|
|
34
|
+
"@aws-sdk/hash-node": "3.32.0",
|
|
35
|
+
"@aws-sdk/invalid-dependency": "3.32.0",
|
|
36
|
+
"@aws-sdk/middleware-content-length": "3.32.0",
|
|
37
|
+
"@aws-sdk/middleware-host-header": "3.32.0",
|
|
38
|
+
"@aws-sdk/middleware-logger": "3.32.0",
|
|
39
|
+
"@aws-sdk/middleware-retry": "3.32.0",
|
|
40
|
+
"@aws-sdk/middleware-serde": "3.32.0",
|
|
41
|
+
"@aws-sdk/middleware-signing": "3.32.0",
|
|
42
|
+
"@aws-sdk/middleware-stack": "3.32.0",
|
|
43
|
+
"@aws-sdk/middleware-user-agent": "3.32.0",
|
|
44
|
+
"@aws-sdk/node-config-provider": "3.32.0",
|
|
45
|
+
"@aws-sdk/node-http-handler": "3.32.0",
|
|
46
|
+
"@aws-sdk/protocol-http": "3.32.0",
|
|
47
|
+
"@aws-sdk/smithy-client": "3.32.0",
|
|
48
|
+
"@aws-sdk/types": "3.32.0",
|
|
49
|
+
"@aws-sdk/url-parser": "3.32.0",
|
|
50
|
+
"@aws-sdk/util-base64-browser": "3.32.0",
|
|
51
|
+
"@aws-sdk/util-base64-node": "3.32.0",
|
|
52
|
+
"@aws-sdk/util-body-length-browser": "3.32.0",
|
|
53
|
+
"@aws-sdk/util-body-length-node": "3.32.0",
|
|
54
|
+
"@aws-sdk/util-user-agent-browser": "3.32.0",
|
|
55
|
+
"@aws-sdk/util-user-agent-node": "3.32.0",
|
|
56
|
+
"@aws-sdk/util-utf8-browser": "3.32.0",
|
|
57
|
+
"@aws-sdk/util-utf8-node": "3.32.0",
|
|
58
58
|
"tslib": "^2.3.0",
|
|
59
59
|
"uuid": "^8.3.2"
|
|
60
60
|
},
|
|
61
61
|
"devDependencies": {
|
|
62
|
-
"@aws-sdk/client-documentation-generator": "3.
|
|
62
|
+
"@aws-sdk/client-documentation-generator": "3.32.0",
|
|
63
63
|
"@types/node": "^12.7.5",
|
|
64
64
|
"@types/uuid": "^8.3.0",
|
|
65
65
|
"downlevel-dts": "0.7.0",
|
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
"rimraf": "^3.0.0",
|
|
68
68
|
"ts-jest": "^26.4.1",
|
|
69
69
|
"typedoc": "^0.19.2",
|
|
70
|
-
"typescript": "~4.3.
|
|
70
|
+
"typescript": "~4.3.5"
|
|
71
71
|
},
|
|
72
72
|
"engines": {
|
|
73
73
|
"node": ">=10.0.0"
|
|
@@ -686,7 +686,7 @@ const deserializeAws_restJson1BatchAssociateClientDeviceWithCoreDeviceCommand =
|
|
|
686
686
|
$metadata: deserializeMetadata(output),
|
|
687
687
|
errorEntries: undefined,
|
|
688
688
|
};
|
|
689
|
-
const data = await parseBody(output.body, context);
|
|
689
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
690
690
|
if (data.errorEntries !== undefined && data.errorEntries !== null) {
|
|
691
691
|
contents.errorEntries = deserializeAws_restJson1AssociateClientDeviceWithCoreDeviceErrorList(data.errorEntries, context);
|
|
692
692
|
}
|
|
@@ -766,7 +766,7 @@ const deserializeAws_restJson1BatchDisassociateClientDeviceFromCoreDeviceCommand
|
|
|
766
766
|
$metadata: deserializeMetadata(output),
|
|
767
767
|
errorEntries: undefined,
|
|
768
768
|
};
|
|
769
|
-
const data = await parseBody(output.body, context);
|
|
769
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
770
770
|
if (data.errorEntries !== undefined && data.errorEntries !== null) {
|
|
771
771
|
contents.errorEntries = deserializeAws_restJson1DisassociateClientDeviceFromCoreDeviceErrorList(data.errorEntries, context);
|
|
772
772
|
}
|
|
@@ -846,7 +846,7 @@ const deserializeAws_restJson1CancelDeploymentCommand = async (output, context)
|
|
|
846
846
|
$metadata: deserializeMetadata(output),
|
|
847
847
|
message: undefined,
|
|
848
848
|
};
|
|
849
|
-
const data = await parseBody(output.body, context);
|
|
849
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
850
850
|
if (data.message !== undefined && data.message !== null) {
|
|
851
851
|
contents.message = smithy_client_1.expectString(data.message);
|
|
852
852
|
}
|
|
@@ -938,7 +938,7 @@ const deserializeAws_restJson1CreateComponentVersionCommand = async (output, con
|
|
|
938
938
|
creationTimestamp: undefined,
|
|
939
939
|
status: undefined,
|
|
940
940
|
};
|
|
941
|
-
const data = await parseBody(output.body, context);
|
|
941
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
942
942
|
if (data.arn !== undefined && data.arn !== null) {
|
|
943
943
|
contents.arn = smithy_client_1.expectString(data.arn);
|
|
944
944
|
}
|
|
@@ -949,7 +949,7 @@ const deserializeAws_restJson1CreateComponentVersionCommand = async (output, con
|
|
|
949
949
|
contents.componentVersion = smithy_client_1.expectString(data.componentVersion);
|
|
950
950
|
}
|
|
951
951
|
if (data.creationTimestamp !== undefined && data.creationTimestamp !== null) {
|
|
952
|
-
contents.creationTimestamp =
|
|
952
|
+
contents.creationTimestamp = smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(data.creationTimestamp)));
|
|
953
953
|
}
|
|
954
954
|
if (data.status !== undefined && data.status !== null) {
|
|
955
955
|
contents.status = deserializeAws_restJson1CloudComponentStatus(data.status, context);
|
|
@@ -1048,7 +1048,7 @@ const deserializeAws_restJson1CreateDeploymentCommand = async (output, context)
|
|
|
1048
1048
|
iotJobArn: undefined,
|
|
1049
1049
|
iotJobId: undefined,
|
|
1050
1050
|
};
|
|
1051
|
-
const data = await parseBody(output.body, context);
|
|
1051
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1052
1052
|
if (data.deploymentId !== undefined && data.deploymentId !== null) {
|
|
1053
1053
|
contents.deploymentId = smithy_client_1.expectString(data.deploymentId);
|
|
1054
1054
|
}
|
|
@@ -1318,7 +1318,7 @@ const deserializeAws_restJson1DescribeComponentCommand = async (output, context)
|
|
|
1318
1318
|
status: undefined,
|
|
1319
1319
|
tags: undefined,
|
|
1320
1320
|
};
|
|
1321
|
-
const data = await parseBody(output.body, context);
|
|
1321
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1322
1322
|
if (data.arn !== undefined && data.arn !== null) {
|
|
1323
1323
|
contents.arn = smithy_client_1.expectString(data.arn);
|
|
1324
1324
|
}
|
|
@@ -1329,7 +1329,7 @@ const deserializeAws_restJson1DescribeComponentCommand = async (output, context)
|
|
|
1329
1329
|
contents.componentVersion = smithy_client_1.expectString(data.componentVersion);
|
|
1330
1330
|
}
|
|
1331
1331
|
if (data.creationTimestamp !== undefined && data.creationTimestamp !== null) {
|
|
1332
|
-
contents.creationTimestamp =
|
|
1332
|
+
contents.creationTimestamp = smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(data.creationTimestamp)));
|
|
1333
1333
|
}
|
|
1334
1334
|
if (data.description !== undefined && data.description !== null) {
|
|
1335
1335
|
contents.description = smithy_client_1.expectString(data.description);
|
|
@@ -1424,7 +1424,7 @@ const deserializeAws_restJson1GetComponentCommand = async (output, context) => {
|
|
|
1424
1424
|
recipeOutputFormat: undefined,
|
|
1425
1425
|
tags: undefined,
|
|
1426
1426
|
};
|
|
1427
|
-
const data = await parseBody(output.body, context);
|
|
1427
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1428
1428
|
if (data.recipe !== undefined && data.recipe !== null) {
|
|
1429
1429
|
contents.recipe = context.base64Decoder(data.recipe);
|
|
1430
1430
|
}
|
|
@@ -1510,7 +1510,7 @@ const deserializeAws_restJson1GetComponentVersionArtifactCommand = async (output
|
|
|
1510
1510
|
$metadata: deserializeMetadata(output),
|
|
1511
1511
|
preSignedUrl: undefined,
|
|
1512
1512
|
};
|
|
1513
|
-
const data = await parseBody(output.body, context);
|
|
1513
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1514
1514
|
if (data.preSignedUrl !== undefined && data.preSignedUrl !== null) {
|
|
1515
1515
|
contents.preSignedUrl = smithy_client_1.expectString(data.preSignedUrl);
|
|
1516
1516
|
}
|
|
@@ -1596,7 +1596,7 @@ const deserializeAws_restJson1GetCoreDeviceCommand = async (output, context) =>
|
|
|
1596
1596
|
status: undefined,
|
|
1597
1597
|
tags: undefined,
|
|
1598
1598
|
};
|
|
1599
|
-
const data = await parseBody(output.body, context);
|
|
1599
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1600
1600
|
if (data.architecture !== undefined && data.architecture !== null) {
|
|
1601
1601
|
contents.architecture = smithy_client_1.expectString(data.architecture);
|
|
1602
1602
|
}
|
|
@@ -1607,7 +1607,7 @@ const deserializeAws_restJson1GetCoreDeviceCommand = async (output, context) =>
|
|
|
1607
1607
|
contents.coreVersion = smithy_client_1.expectString(data.coreVersion);
|
|
1608
1608
|
}
|
|
1609
1609
|
if (data.lastStatusUpdateTimestamp !== undefined && data.lastStatusUpdateTimestamp !== null) {
|
|
1610
|
-
contents.lastStatusUpdateTimestamp =
|
|
1610
|
+
contents.lastStatusUpdateTimestamp = smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(data.lastStatusUpdateTimestamp)));
|
|
1611
1611
|
}
|
|
1612
1612
|
if (data.platform !== undefined && data.platform !== null) {
|
|
1613
1613
|
contents.platform = smithy_client_1.expectString(data.platform);
|
|
@@ -1706,12 +1706,12 @@ const deserializeAws_restJson1GetDeploymentCommand = async (output, context) =>
|
|
|
1706
1706
|
tags: undefined,
|
|
1707
1707
|
targetArn: undefined,
|
|
1708
1708
|
};
|
|
1709
|
-
const data = await parseBody(output.body, context);
|
|
1709
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1710
1710
|
if (data.components !== undefined && data.components !== null) {
|
|
1711
1711
|
contents.components = deserializeAws_restJson1ComponentDeploymentSpecifications(data.components, context);
|
|
1712
1712
|
}
|
|
1713
1713
|
if (data.creationTimestamp !== undefined && data.creationTimestamp !== null) {
|
|
1714
|
-
contents.creationTimestamp =
|
|
1714
|
+
contents.creationTimestamp = smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(data.creationTimestamp)));
|
|
1715
1715
|
}
|
|
1716
1716
|
if (data.deploymentId !== undefined && data.deploymentId !== null) {
|
|
1717
1717
|
contents.deploymentId = smithy_client_1.expectString(data.deploymentId);
|
|
@@ -1823,7 +1823,7 @@ const deserializeAws_restJson1ListClientDevicesAssociatedWithCoreDeviceCommand =
|
|
|
1823
1823
|
associatedClientDevices: undefined,
|
|
1824
1824
|
nextToken: undefined,
|
|
1825
1825
|
};
|
|
1826
|
-
const data = await parseBody(output.body, context);
|
|
1826
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1827
1827
|
if (data.associatedClientDevices !== undefined && data.associatedClientDevices !== null) {
|
|
1828
1828
|
contents.associatedClientDevices = deserializeAws_restJson1AssociatedClientDeviceList(data.associatedClientDevices, context);
|
|
1829
1829
|
}
|
|
@@ -1907,7 +1907,7 @@ const deserializeAws_restJson1ListComponentsCommand = async (output, context) =>
|
|
|
1907
1907
|
components: undefined,
|
|
1908
1908
|
nextToken: undefined,
|
|
1909
1909
|
};
|
|
1910
|
-
const data = await parseBody(output.body, context);
|
|
1910
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1911
1911
|
if (data.components !== undefined && data.components !== null) {
|
|
1912
1912
|
contents.components = deserializeAws_restJson1ComponentList(data.components, context);
|
|
1913
1913
|
}
|
|
@@ -1983,7 +1983,7 @@ const deserializeAws_restJson1ListComponentVersionsCommand = async (output, cont
|
|
|
1983
1983
|
componentVersions: undefined,
|
|
1984
1984
|
nextToken: undefined,
|
|
1985
1985
|
};
|
|
1986
|
-
const data = await parseBody(output.body, context);
|
|
1986
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1987
1987
|
if (data.componentVersions !== undefined && data.componentVersions !== null) {
|
|
1988
1988
|
contents.componentVersions = deserializeAws_restJson1ComponentVersionList(data.componentVersions, context);
|
|
1989
1989
|
}
|
|
@@ -2067,7 +2067,7 @@ const deserializeAws_restJson1ListCoreDevicesCommand = async (output, context) =
|
|
|
2067
2067
|
coreDevices: undefined,
|
|
2068
2068
|
nextToken: undefined,
|
|
2069
2069
|
};
|
|
2070
|
-
const data = await parseBody(output.body, context);
|
|
2070
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
2071
2071
|
if (data.coreDevices !== undefined && data.coreDevices !== null) {
|
|
2072
2072
|
contents.coreDevices = deserializeAws_restJson1CoreDevicesList(data.coreDevices, context);
|
|
2073
2073
|
}
|
|
@@ -2143,7 +2143,7 @@ const deserializeAws_restJson1ListDeploymentsCommand = async (output, context) =
|
|
|
2143
2143
|
deployments: undefined,
|
|
2144
2144
|
nextToken: undefined,
|
|
2145
2145
|
};
|
|
2146
|
-
const data = await parseBody(output.body, context);
|
|
2146
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
2147
2147
|
if (data.deployments !== undefined && data.deployments !== null) {
|
|
2148
2148
|
contents.deployments = deserializeAws_restJson1DeploymentList(data.deployments, context);
|
|
2149
2149
|
}
|
|
@@ -2219,7 +2219,7 @@ const deserializeAws_restJson1ListEffectiveDeploymentsCommand = async (output, c
|
|
|
2219
2219
|
effectiveDeployments: undefined,
|
|
2220
2220
|
nextToken: undefined,
|
|
2221
2221
|
};
|
|
2222
|
-
const data = await parseBody(output.body, context);
|
|
2222
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
2223
2223
|
if (data.effectiveDeployments !== undefined && data.effectiveDeployments !== null) {
|
|
2224
2224
|
contents.effectiveDeployments = deserializeAws_restJson1EffectiveDeploymentsList(data.effectiveDeployments, context);
|
|
2225
2225
|
}
|
|
@@ -2303,7 +2303,7 @@ const deserializeAws_restJson1ListInstalledComponentsCommand = async (output, co
|
|
|
2303
2303
|
installedComponents: undefined,
|
|
2304
2304
|
nextToken: undefined,
|
|
2305
2305
|
};
|
|
2306
|
-
const data = await parseBody(output.body, context);
|
|
2306
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
2307
2307
|
if (data.installedComponents !== undefined && data.installedComponents !== null) {
|
|
2308
2308
|
contents.installedComponents = deserializeAws_restJson1InstalledComponentList(data.installedComponents, context);
|
|
2309
2309
|
}
|
|
@@ -2386,7 +2386,7 @@ const deserializeAws_restJson1ListTagsForResourceCommand = async (output, contex
|
|
|
2386
2386
|
$metadata: deserializeMetadata(output),
|
|
2387
2387
|
tags: undefined,
|
|
2388
2388
|
};
|
|
2389
|
-
const data = await parseBody(output.body, context);
|
|
2389
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
2390
2390
|
if (data.tags !== undefined && data.tags !== null) {
|
|
2391
2391
|
contents.tags = deserializeAws_restJson1TagMap(data.tags, context);
|
|
2392
2392
|
}
|
|
@@ -2450,7 +2450,7 @@ const deserializeAws_restJson1ResolveComponentCandidatesCommand = async (output,
|
|
|
2450
2450
|
$metadata: deserializeMetadata(output),
|
|
2451
2451
|
resolvedComponentVersions: undefined,
|
|
2452
2452
|
};
|
|
2453
|
-
const data = await parseBody(output.body, context);
|
|
2453
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
2454
2454
|
if (data.resolvedComponentVersions !== undefined && data.resolvedComponentVersions !== null) {
|
|
2455
2455
|
contents.resolvedComponentVersions = deserializeAws_restJson1ResolvedComponentVersionsList(data.resolvedComponentVersions, context);
|
|
2456
2456
|
}
|
|
@@ -2693,7 +2693,7 @@ const deserializeAws_restJson1InternalServerExceptionResponse = async (parsedOut
|
|
|
2693
2693
|
retryAfterSeconds: undefined,
|
|
2694
2694
|
};
|
|
2695
2695
|
if (parsedOutput.headers["retry-after"] !== undefined) {
|
|
2696
|
-
contents.retryAfterSeconds = smithy_client_1.
|
|
2696
|
+
contents.retryAfterSeconds = smithy_client_1.strictParseInt32(parsedOutput.headers["retry-after"]);
|
|
2697
2697
|
}
|
|
2698
2698
|
const data = parsedOutput.body;
|
|
2699
2699
|
if (data.message !== undefined && data.message !== null) {
|
|
@@ -2775,7 +2775,7 @@ const deserializeAws_restJson1ThrottlingExceptionResponse = async (parsedOutput,
|
|
|
2775
2775
|
serviceCode: undefined,
|
|
2776
2776
|
};
|
|
2777
2777
|
if (parsedOutput.headers["retry-after"] !== undefined) {
|
|
2778
|
-
contents.retryAfterSeconds = smithy_client_1.
|
|
2778
|
+
contents.retryAfterSeconds = smithy_client_1.strictParseInt32(parsedOutput.headers["retry-after"]);
|
|
2779
2779
|
}
|
|
2780
2780
|
const data = parsedOutput.body;
|
|
2781
2781
|
if (data.message !== undefined && data.message !== null) {
|
|
@@ -3257,7 +3257,7 @@ const deserializeAws_restJson1AssociateClientDeviceWithCoreDeviceErrorList = (ou
|
|
|
3257
3257
|
const deserializeAws_restJson1AssociatedClientDevice = (output, context) => {
|
|
3258
3258
|
return {
|
|
3259
3259
|
associationTimestamp: output.associationTimestamp !== undefined && output.associationTimestamp !== null
|
|
3260
|
-
?
|
|
3260
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.associationTimestamp)))
|
|
3261
3261
|
: undefined,
|
|
3262
3262
|
thingName: smithy_client_1.expectString(output.thingName),
|
|
3263
3263
|
};
|
|
@@ -3335,7 +3335,7 @@ const deserializeAws_restJson1ComponentLatestVersion = (output, context) => {
|
|
|
3335
3335
|
arn: smithy_client_1.expectString(output.arn),
|
|
3336
3336
|
componentVersion: smithy_client_1.expectString(output.componentVersion),
|
|
3337
3337
|
creationTimestamp: output.creationTimestamp !== undefined && output.creationTimestamp !== null
|
|
3338
|
-
?
|
|
3338
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.creationTimestamp)))
|
|
3339
3339
|
: undefined,
|
|
3340
3340
|
description: smithy_client_1.expectString(output.description),
|
|
3341
3341
|
platforms: output.platforms !== undefined && output.platforms !== null
|
|
@@ -3401,7 +3401,7 @@ const deserializeAws_restJson1CoreDevice = (output, context) => {
|
|
|
3401
3401
|
return {
|
|
3402
3402
|
coreDeviceThingName: smithy_client_1.expectString(output.coreDeviceThingName),
|
|
3403
3403
|
lastStatusUpdateTimestamp: output.lastStatusUpdateTimestamp !== undefined && output.lastStatusUpdateTimestamp !== null
|
|
3404
|
-
?
|
|
3404
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.lastStatusUpdateTimestamp)))
|
|
3405
3405
|
: undefined,
|
|
3406
3406
|
status: smithy_client_1.expectString(output.status),
|
|
3407
3407
|
};
|
|
@@ -3419,7 +3419,7 @@ const deserializeAws_restJson1CoreDevicesList = (output, context) => {
|
|
|
3419
3419
|
const deserializeAws_restJson1Deployment = (output, context) => {
|
|
3420
3420
|
return {
|
|
3421
3421
|
creationTimestamp: output.creationTimestamp !== undefined && output.creationTimestamp !== null
|
|
3422
|
-
?
|
|
3422
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.creationTimestamp)))
|
|
3423
3423
|
: undefined,
|
|
3424
3424
|
deploymentId: smithy_client_1.expectString(output.deploymentId),
|
|
3425
3425
|
deploymentName: smithy_client_1.expectString(output.deploymentName),
|
|
@@ -3432,12 +3432,12 @@ const deserializeAws_restJson1Deployment = (output, context) => {
|
|
|
3432
3432
|
const deserializeAws_restJson1DeploymentComponentUpdatePolicy = (output, context) => {
|
|
3433
3433
|
return {
|
|
3434
3434
|
action: smithy_client_1.expectString(output.action),
|
|
3435
|
-
timeoutInSeconds: smithy_client_1.
|
|
3435
|
+
timeoutInSeconds: smithy_client_1.expectInt32(output.timeoutInSeconds),
|
|
3436
3436
|
};
|
|
3437
3437
|
};
|
|
3438
3438
|
const deserializeAws_restJson1DeploymentConfigurationValidationPolicy = (output, context) => {
|
|
3439
3439
|
return {
|
|
3440
|
-
timeoutInSeconds: smithy_client_1.
|
|
3440
|
+
timeoutInSeconds: smithy_client_1.expectInt32(output.timeoutInSeconds),
|
|
3441
3441
|
};
|
|
3442
3442
|
};
|
|
3443
3443
|
const deserializeAws_restJson1DeploymentIoTJobConfiguration = (output, context) => {
|
|
@@ -3495,7 +3495,7 @@ const deserializeAws_restJson1EffectiveDeployment = (output, context) => {
|
|
|
3495
3495
|
return {
|
|
3496
3496
|
coreDeviceExecutionStatus: smithy_client_1.expectString(output.coreDeviceExecutionStatus),
|
|
3497
3497
|
creationTimestamp: output.creationTimestamp !== undefined && output.creationTimestamp !== null
|
|
3498
|
-
?
|
|
3498
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.creationTimestamp)))
|
|
3499
3499
|
: undefined,
|
|
3500
3500
|
deploymentId: smithy_client_1.expectString(output.deploymentId),
|
|
3501
3501
|
deploymentName: smithy_client_1.expectString(output.deploymentName),
|
|
@@ -3503,7 +3503,7 @@ const deserializeAws_restJson1EffectiveDeployment = (output, context) => {
|
|
|
3503
3503
|
iotJobArn: smithy_client_1.expectString(output.iotJobArn),
|
|
3504
3504
|
iotJobId: smithy_client_1.expectString(output.iotJobId),
|
|
3505
3505
|
modifiedTimestamp: output.modifiedTimestamp !== undefined && output.modifiedTimestamp !== null
|
|
3506
|
-
?
|
|
3506
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.modifiedTimestamp)))
|
|
3507
3507
|
: undefined,
|
|
3508
3508
|
reason: smithy_client_1.expectString(output.reason),
|
|
3509
3509
|
targetArn: smithy_client_1.expectString(output.targetArn),
|
|
@@ -3549,8 +3549,8 @@ const deserializeAws_restJson1IoTJobAbortCriteria = (output, context) => {
|
|
|
3549
3549
|
return {
|
|
3550
3550
|
action: smithy_client_1.expectString(output.action),
|
|
3551
3551
|
failureType: smithy_client_1.expectString(output.failureType),
|
|
3552
|
-
minNumberOfExecutedThings: smithy_client_1.
|
|
3553
|
-
thresholdPercentage: smithy_client_1.
|
|
3552
|
+
minNumberOfExecutedThings: smithy_client_1.expectInt32(output.minNumberOfExecutedThings),
|
|
3553
|
+
thresholdPercentage: smithy_client_1.limitedParseDouble(output.thresholdPercentage),
|
|
3554
3554
|
};
|
|
3555
3555
|
};
|
|
3556
3556
|
const deserializeAws_restJson1IoTJobAbortCriteriaList = (output, context) => {
|
|
@@ -3568,13 +3568,13 @@ const deserializeAws_restJson1IoTJobExecutionsRolloutConfig = (output, context)
|
|
|
3568
3568
|
exponentialRate: output.exponentialRate !== undefined && output.exponentialRate !== null
|
|
3569
3569
|
? deserializeAws_restJson1IoTJobExponentialRolloutRate(output.exponentialRate, context)
|
|
3570
3570
|
: undefined,
|
|
3571
|
-
maximumPerMinute: smithy_client_1.
|
|
3571
|
+
maximumPerMinute: smithy_client_1.expectInt32(output.maximumPerMinute),
|
|
3572
3572
|
};
|
|
3573
3573
|
};
|
|
3574
3574
|
const deserializeAws_restJson1IoTJobExponentialRolloutRate = (output, context) => {
|
|
3575
3575
|
return {
|
|
3576
|
-
baseRatePerMinute: smithy_client_1.
|
|
3577
|
-
incrementFactor: smithy_client_1.
|
|
3576
|
+
baseRatePerMinute: smithy_client_1.expectInt32(output.baseRatePerMinute),
|
|
3577
|
+
incrementFactor: smithy_client_1.limitedParseDouble(output.incrementFactor),
|
|
3578
3578
|
rateIncreaseCriteria: output.rateIncreaseCriteria !== undefined && output.rateIncreaseCriteria !== null
|
|
3579
3579
|
? deserializeAws_restJson1IoTJobRateIncreaseCriteria(output.rateIncreaseCriteria, context)
|
|
3580
3580
|
: undefined,
|
|
@@ -3582,13 +3582,13 @@ const deserializeAws_restJson1IoTJobExponentialRolloutRate = (output, context) =
|
|
|
3582
3582
|
};
|
|
3583
3583
|
const deserializeAws_restJson1IoTJobRateIncreaseCriteria = (output, context) => {
|
|
3584
3584
|
return {
|
|
3585
|
-
numberOfNotifiedThings: smithy_client_1.
|
|
3586
|
-
numberOfSucceededThings: smithy_client_1.
|
|
3585
|
+
numberOfNotifiedThings: smithy_client_1.expectInt32(output.numberOfNotifiedThings),
|
|
3586
|
+
numberOfSucceededThings: smithy_client_1.expectInt32(output.numberOfSucceededThings),
|
|
3587
3587
|
};
|
|
3588
3588
|
};
|
|
3589
3589
|
const deserializeAws_restJson1IoTJobTimeoutConfig = (output, context) => {
|
|
3590
3590
|
return {
|
|
3591
|
-
inProgressTimeoutInMinutes: smithy_client_1.
|
|
3591
|
+
inProgressTimeoutInMinutes: smithy_client_1.expectLong(output.inProgressTimeoutInMinutes),
|
|
3592
3592
|
};
|
|
3593
3593
|
};
|
|
3594
3594
|
const deserializeAws_restJson1PlatformAttributesMap = (output, context) => {
|
|
@@ -3633,8 +3633,8 @@ const deserializeAws_restJson1StringMap = (output, context) => {
|
|
|
3633
3633
|
};
|
|
3634
3634
|
const deserializeAws_restJson1SystemResourceLimits = (output, context) => {
|
|
3635
3635
|
return {
|
|
3636
|
-
cpus: smithy_client_1.
|
|
3637
|
-
memory: smithy_client_1.
|
|
3636
|
+
cpus: smithy_client_1.limitedParseDouble(output.cpus),
|
|
3637
|
+
memory: smithy_client_1.expectLong(output.memory),
|
|
3638
3638
|
};
|
|
3639
3639
|
};
|
|
3640
3640
|
const deserializeAws_restJson1TagMap = (output, context) => {
|