@aws-sdk/client-networkmanager 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 +42 -42
- 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 +208 -142
- package/dist/es/protocols/Aws_restJson1.js.map +1 -1
- package/package.json +31 -31
- package/protocols/Aws_restJson1.ts +48 -44
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-networkmanager
|
|
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-networkmanager
|
|
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-networkmanager
|
|
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-networkmanager
|
|
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-networkmanager",
|
|
3
3
|
"description": "AWS SDK for JavaScript Networkmanager 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,45 +27,45 @@
|
|
|
27
27
|
"dependencies": {
|
|
28
28
|
"@aws-crypto/sha256-browser": "^1.0.0",
|
|
29
29
|
"@aws-crypto/sha256-js": "^1.0.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
|
},
|
|
60
60
|
"devDependencies": {
|
|
61
|
-
"@aws-sdk/client-documentation-generator": "3.
|
|
61
|
+
"@aws-sdk/client-documentation-generator": "3.32.0",
|
|
62
62
|
"@types/node": "^12.7.5",
|
|
63
63
|
"downlevel-dts": "0.7.0",
|
|
64
64
|
"jest": "^26.1.0",
|
|
65
65
|
"rimraf": "^3.0.0",
|
|
66
66
|
"ts-jest": "^26.4.1",
|
|
67
67
|
"typedoc": "^0.19.2",
|
|
68
|
-
"typescript": "~4.3.
|
|
68
|
+
"typescript": "~4.3.5"
|
|
69
69
|
},
|
|
70
70
|
"engines": {
|
|
71
71
|
"node": ">=10.0.0"
|
|
@@ -1251,7 +1251,7 @@ const deserializeAws_restJson1AssociateCustomerGatewayCommand = async (output, c
|
|
|
1251
1251
|
$metadata: deserializeMetadata(output),
|
|
1252
1252
|
CustomerGatewayAssociation: undefined,
|
|
1253
1253
|
};
|
|
1254
|
-
const data = await parseBody(output.body, context);
|
|
1254
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1255
1255
|
if (data.CustomerGatewayAssociation !== undefined && data.CustomerGatewayAssociation !== null) {
|
|
1256
1256
|
contents.CustomerGatewayAssociation = deserializeAws_restJson1CustomerGatewayAssociation(data.CustomerGatewayAssociation, context);
|
|
1257
1257
|
}
|
|
@@ -1347,7 +1347,7 @@ const deserializeAws_restJson1AssociateLinkCommand = async (output, context) =>
|
|
|
1347
1347
|
$metadata: deserializeMetadata(output),
|
|
1348
1348
|
LinkAssociation: undefined,
|
|
1349
1349
|
};
|
|
1350
|
-
const data = await parseBody(output.body, context);
|
|
1350
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1351
1351
|
if (data.LinkAssociation !== undefined && data.LinkAssociation !== null) {
|
|
1352
1352
|
contents.LinkAssociation = deserializeAws_restJson1LinkAssociation(data.LinkAssociation, context);
|
|
1353
1353
|
}
|
|
@@ -1443,7 +1443,7 @@ const deserializeAws_restJson1AssociateTransitGatewayConnectPeerCommand = async
|
|
|
1443
1443
|
$metadata: deserializeMetadata(output),
|
|
1444
1444
|
TransitGatewayConnectPeerAssociation: undefined,
|
|
1445
1445
|
};
|
|
1446
|
-
const data = await parseBody(output.body, context);
|
|
1446
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1447
1447
|
if (data.TransitGatewayConnectPeerAssociation !== undefined && data.TransitGatewayConnectPeerAssociation !== null) {
|
|
1448
1448
|
contents.TransitGatewayConnectPeerAssociation = deserializeAws_restJson1TransitGatewayConnectPeerAssociation(data.TransitGatewayConnectPeerAssociation, context);
|
|
1449
1449
|
}
|
|
@@ -1539,7 +1539,7 @@ const deserializeAws_restJson1CreateConnectionCommand = async (output, context)
|
|
|
1539
1539
|
$metadata: deserializeMetadata(output),
|
|
1540
1540
|
Connection: undefined,
|
|
1541
1541
|
};
|
|
1542
|
-
const data = await parseBody(output.body, context);
|
|
1542
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1543
1543
|
if (data.Connection !== undefined && data.Connection !== null) {
|
|
1544
1544
|
contents.Connection = deserializeAws_restJson1Connection(data.Connection, context);
|
|
1545
1545
|
}
|
|
@@ -1627,7 +1627,7 @@ const deserializeAws_restJson1CreateDeviceCommand = async (output, context) => {
|
|
|
1627
1627
|
$metadata: deserializeMetadata(output),
|
|
1628
1628
|
Device: undefined,
|
|
1629
1629
|
};
|
|
1630
|
-
const data = await parseBody(output.body, context);
|
|
1630
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1631
1631
|
if (data.Device !== undefined && data.Device !== null) {
|
|
1632
1632
|
contents.Device = deserializeAws_restJson1Device(data.Device, context);
|
|
1633
1633
|
}
|
|
@@ -1723,7 +1723,7 @@ const deserializeAws_restJson1CreateGlobalNetworkCommand = async (output, contex
|
|
|
1723
1723
|
$metadata: deserializeMetadata(output),
|
|
1724
1724
|
GlobalNetwork: undefined,
|
|
1725
1725
|
};
|
|
1726
|
-
const data = await parseBody(output.body, context);
|
|
1726
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1727
1727
|
if (data.GlobalNetwork !== undefined && data.GlobalNetwork !== null) {
|
|
1728
1728
|
contents.GlobalNetwork = deserializeAws_restJson1GlobalNetwork(data.GlobalNetwork, context);
|
|
1729
1729
|
}
|
|
@@ -1811,7 +1811,7 @@ const deserializeAws_restJson1CreateLinkCommand = async (output, context) => {
|
|
|
1811
1811
|
$metadata: deserializeMetadata(output),
|
|
1812
1812
|
Link: undefined,
|
|
1813
1813
|
};
|
|
1814
|
-
const data = await parseBody(output.body, context);
|
|
1814
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1815
1815
|
if (data.Link !== undefined && data.Link !== null) {
|
|
1816
1816
|
contents.Link = deserializeAws_restJson1Link(data.Link, context);
|
|
1817
1817
|
}
|
|
@@ -1907,7 +1907,7 @@ const deserializeAws_restJson1CreateSiteCommand = async (output, context) => {
|
|
|
1907
1907
|
$metadata: deserializeMetadata(output),
|
|
1908
1908
|
Site: 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.Site !== undefined && data.Site !== null) {
|
|
1912
1912
|
contents.Site = deserializeAws_restJson1Site(data.Site, context);
|
|
1913
1913
|
}
|
|
@@ -2003,7 +2003,7 @@ const deserializeAws_restJson1DeleteConnectionCommand = async (output, context)
|
|
|
2003
2003
|
$metadata: deserializeMetadata(output),
|
|
2004
2004
|
Connection: undefined,
|
|
2005
2005
|
};
|
|
2006
|
-
const data = await parseBody(output.body, context);
|
|
2006
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
2007
2007
|
if (data.Connection !== undefined && data.Connection !== null) {
|
|
2008
2008
|
contents.Connection = deserializeAws_restJson1Connection(data.Connection, context);
|
|
2009
2009
|
}
|
|
@@ -2091,7 +2091,7 @@ const deserializeAws_restJson1DeleteDeviceCommand = async (output, context) => {
|
|
|
2091
2091
|
$metadata: deserializeMetadata(output),
|
|
2092
2092
|
Device: undefined,
|
|
2093
2093
|
};
|
|
2094
|
-
const data = await parseBody(output.body, context);
|
|
2094
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
2095
2095
|
if (data.Device !== undefined && data.Device !== null) {
|
|
2096
2096
|
contents.Device = deserializeAws_restJson1Device(data.Device, context);
|
|
2097
2097
|
}
|
|
@@ -2179,7 +2179,7 @@ const deserializeAws_restJson1DeleteGlobalNetworkCommand = async (output, contex
|
|
|
2179
2179
|
$metadata: deserializeMetadata(output),
|
|
2180
2180
|
GlobalNetwork: undefined,
|
|
2181
2181
|
};
|
|
2182
|
-
const data = await parseBody(output.body, context);
|
|
2182
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
2183
2183
|
if (data.GlobalNetwork !== undefined && data.GlobalNetwork !== null) {
|
|
2184
2184
|
contents.GlobalNetwork = deserializeAws_restJson1GlobalNetwork(data.GlobalNetwork, context);
|
|
2185
2185
|
}
|
|
@@ -2267,7 +2267,7 @@ const deserializeAws_restJson1DeleteLinkCommand = async (output, context) => {
|
|
|
2267
2267
|
$metadata: deserializeMetadata(output),
|
|
2268
2268
|
Link: undefined,
|
|
2269
2269
|
};
|
|
2270
|
-
const data = await parseBody(output.body, context);
|
|
2270
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
2271
2271
|
if (data.Link !== undefined && data.Link !== null) {
|
|
2272
2272
|
contents.Link = deserializeAws_restJson1Link(data.Link, context);
|
|
2273
2273
|
}
|
|
@@ -2355,7 +2355,7 @@ const deserializeAws_restJson1DeleteSiteCommand = async (output, context) => {
|
|
|
2355
2355
|
$metadata: deserializeMetadata(output),
|
|
2356
2356
|
Site: undefined,
|
|
2357
2357
|
};
|
|
2358
|
-
const data = await parseBody(output.body, context);
|
|
2358
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
2359
2359
|
if (data.Site !== undefined && data.Site !== null) {
|
|
2360
2360
|
contents.Site = deserializeAws_restJson1Site(data.Site, context);
|
|
2361
2361
|
}
|
|
@@ -2443,7 +2443,7 @@ const deserializeAws_restJson1DeregisterTransitGatewayCommand = async (output, c
|
|
|
2443
2443
|
$metadata: deserializeMetadata(output),
|
|
2444
2444
|
TransitGatewayRegistration: undefined,
|
|
2445
2445
|
};
|
|
2446
|
-
const data = await parseBody(output.body, context);
|
|
2446
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
2447
2447
|
if (data.TransitGatewayRegistration !== undefined && data.TransitGatewayRegistration !== null) {
|
|
2448
2448
|
contents.TransitGatewayRegistration = deserializeAws_restJson1TransitGatewayRegistration(data.TransitGatewayRegistration, context);
|
|
2449
2449
|
}
|
|
@@ -2532,7 +2532,7 @@ const deserializeAws_restJson1DescribeGlobalNetworksCommand = async (output, con
|
|
|
2532
2532
|
GlobalNetworks: undefined,
|
|
2533
2533
|
NextToken: undefined,
|
|
2534
2534
|
};
|
|
2535
|
-
const data = await parseBody(output.body, context);
|
|
2535
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
2536
2536
|
if (data.GlobalNetworks !== undefined && data.GlobalNetworks !== null) {
|
|
2537
2537
|
contents.GlobalNetworks = deserializeAws_restJson1GlobalNetworkList(data.GlobalNetworks, context);
|
|
2538
2538
|
}
|
|
@@ -2615,7 +2615,7 @@ const deserializeAws_restJson1DisassociateCustomerGatewayCommand = async (output
|
|
|
2615
2615
|
$metadata: deserializeMetadata(output),
|
|
2616
2616
|
CustomerGatewayAssociation: undefined,
|
|
2617
2617
|
};
|
|
2618
|
-
const data = await parseBody(output.body, context);
|
|
2618
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
2619
2619
|
if (data.CustomerGatewayAssociation !== undefined && data.CustomerGatewayAssociation !== null) {
|
|
2620
2620
|
contents.CustomerGatewayAssociation = deserializeAws_restJson1CustomerGatewayAssociation(data.CustomerGatewayAssociation, context);
|
|
2621
2621
|
}
|
|
@@ -2703,7 +2703,7 @@ const deserializeAws_restJson1DisassociateLinkCommand = async (output, context)
|
|
|
2703
2703
|
$metadata: deserializeMetadata(output),
|
|
2704
2704
|
LinkAssociation: undefined,
|
|
2705
2705
|
};
|
|
2706
|
-
const data = await parseBody(output.body, context);
|
|
2706
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
2707
2707
|
if (data.LinkAssociation !== undefined && data.LinkAssociation !== null) {
|
|
2708
2708
|
contents.LinkAssociation = deserializeAws_restJson1LinkAssociation(data.LinkAssociation, context);
|
|
2709
2709
|
}
|
|
@@ -2791,7 +2791,7 @@ const deserializeAws_restJson1DisassociateTransitGatewayConnectPeerCommand = asy
|
|
|
2791
2791
|
$metadata: deserializeMetadata(output),
|
|
2792
2792
|
TransitGatewayConnectPeerAssociation: undefined,
|
|
2793
2793
|
};
|
|
2794
|
-
const data = await parseBody(output.body, context);
|
|
2794
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
2795
2795
|
if (data.TransitGatewayConnectPeerAssociation !== undefined && data.TransitGatewayConnectPeerAssociation !== null) {
|
|
2796
2796
|
contents.TransitGatewayConnectPeerAssociation = deserializeAws_restJson1TransitGatewayConnectPeerAssociation(data.TransitGatewayConnectPeerAssociation, context);
|
|
2797
2797
|
}
|
|
@@ -2880,7 +2880,7 @@ const deserializeAws_restJson1GetConnectionsCommand = async (output, context) =>
|
|
|
2880
2880
|
Connections: undefined,
|
|
2881
2881
|
NextToken: undefined,
|
|
2882
2882
|
};
|
|
2883
|
-
const data = await parseBody(output.body, context);
|
|
2883
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
2884
2884
|
if (data.Connections !== undefined && data.Connections !== null) {
|
|
2885
2885
|
contents.Connections = deserializeAws_restJson1ConnectionList(data.Connections, context);
|
|
2886
2886
|
}
|
|
@@ -2964,7 +2964,7 @@ const deserializeAws_restJson1GetCustomerGatewayAssociationsCommand = async (out
|
|
|
2964
2964
|
CustomerGatewayAssociations: undefined,
|
|
2965
2965
|
NextToken: undefined,
|
|
2966
2966
|
};
|
|
2967
|
-
const data = await parseBody(output.body, context);
|
|
2967
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
2968
2968
|
if (data.CustomerGatewayAssociations !== undefined && data.CustomerGatewayAssociations !== null) {
|
|
2969
2969
|
contents.CustomerGatewayAssociations = deserializeAws_restJson1CustomerGatewayAssociationList(data.CustomerGatewayAssociations, context);
|
|
2970
2970
|
}
|
|
@@ -3056,7 +3056,7 @@ const deserializeAws_restJson1GetDevicesCommand = async (output, context) => {
|
|
|
3056
3056
|
Devices: undefined,
|
|
3057
3057
|
NextToken: undefined,
|
|
3058
3058
|
};
|
|
3059
|
-
const data = await parseBody(output.body, context);
|
|
3059
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
3060
3060
|
if (data.Devices !== undefined && data.Devices !== null) {
|
|
3061
3061
|
contents.Devices = deserializeAws_restJson1DeviceList(data.Devices, context);
|
|
3062
3062
|
}
|
|
@@ -3140,7 +3140,7 @@ const deserializeAws_restJson1GetLinkAssociationsCommand = async (output, contex
|
|
|
3140
3140
|
LinkAssociations: undefined,
|
|
3141
3141
|
NextToken: undefined,
|
|
3142
3142
|
};
|
|
3143
|
-
const data = await parseBody(output.body, context);
|
|
3143
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
3144
3144
|
if (data.LinkAssociations !== undefined && data.LinkAssociations !== null) {
|
|
3145
3145
|
contents.LinkAssociations = deserializeAws_restJson1LinkAssociationList(data.LinkAssociations, context);
|
|
3146
3146
|
}
|
|
@@ -3224,7 +3224,7 @@ const deserializeAws_restJson1GetLinksCommand = async (output, context) => {
|
|
|
3224
3224
|
Links: undefined,
|
|
3225
3225
|
NextToken: undefined,
|
|
3226
3226
|
};
|
|
3227
|
-
const data = await parseBody(output.body, context);
|
|
3227
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
3228
3228
|
if (data.Links !== undefined && data.Links !== null) {
|
|
3229
3229
|
contents.Links = deserializeAws_restJson1LinkList(data.Links, context);
|
|
3230
3230
|
}
|
|
@@ -3308,7 +3308,7 @@ const deserializeAws_restJson1GetSitesCommand = async (output, context) => {
|
|
|
3308
3308
|
NextToken: undefined,
|
|
3309
3309
|
Sites: undefined,
|
|
3310
3310
|
};
|
|
3311
|
-
const data = await parseBody(output.body, context);
|
|
3311
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
3312
3312
|
if (data.NextToken !== undefined && data.NextToken !== null) {
|
|
3313
3313
|
contents.NextToken = smithy_client_1.expectString(data.NextToken);
|
|
3314
3314
|
}
|
|
@@ -3392,7 +3392,7 @@ const deserializeAws_restJson1GetTransitGatewayConnectPeerAssociationsCommand =
|
|
|
3392
3392
|
NextToken: undefined,
|
|
3393
3393
|
TransitGatewayConnectPeerAssociations: undefined,
|
|
3394
3394
|
};
|
|
3395
|
-
const data = await parseBody(output.body, context);
|
|
3395
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
3396
3396
|
if (data.NextToken !== undefined && data.NextToken !== null) {
|
|
3397
3397
|
contents.NextToken = smithy_client_1.expectString(data.NextToken);
|
|
3398
3398
|
}
|
|
@@ -3484,7 +3484,7 @@ const deserializeAws_restJson1GetTransitGatewayRegistrationsCommand = async (out
|
|
|
3484
3484
|
NextToken: undefined,
|
|
3485
3485
|
TransitGatewayRegistrations: undefined,
|
|
3486
3486
|
};
|
|
3487
|
-
const data = await parseBody(output.body, context);
|
|
3487
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
3488
3488
|
if (data.NextToken !== undefined && data.NextToken !== null) {
|
|
3489
3489
|
contents.NextToken = smithy_client_1.expectString(data.NextToken);
|
|
3490
3490
|
}
|
|
@@ -3567,7 +3567,7 @@ const deserializeAws_restJson1ListTagsForResourceCommand = async (output, contex
|
|
|
3567
3567
|
$metadata: deserializeMetadata(output),
|
|
3568
3568
|
TagList: undefined,
|
|
3569
3569
|
};
|
|
3570
|
-
const data = await parseBody(output.body, context);
|
|
3570
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
3571
3571
|
if (data.TagList !== undefined && data.TagList !== null) {
|
|
3572
3572
|
contents.TagList = deserializeAws_restJson1TagList(data.TagList, context);
|
|
3573
3573
|
}
|
|
@@ -3647,7 +3647,7 @@ const deserializeAws_restJson1RegisterTransitGatewayCommand = async (output, con
|
|
|
3647
3647
|
$metadata: deserializeMetadata(output),
|
|
3648
3648
|
TransitGatewayRegistration: undefined,
|
|
3649
3649
|
};
|
|
3650
|
-
const data = await parseBody(output.body, context);
|
|
3650
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
3651
3651
|
if (data.TransitGatewayRegistration !== undefined && data.TransitGatewayRegistration !== null) {
|
|
3652
3652
|
contents.TransitGatewayRegistration = deserializeAws_restJson1TransitGatewayRegistration(data.TransitGatewayRegistration, context);
|
|
3653
3653
|
}
|
|
@@ -3911,7 +3911,7 @@ const deserializeAws_restJson1UpdateConnectionCommand = async (output, context)
|
|
|
3911
3911
|
$metadata: deserializeMetadata(output),
|
|
3912
3912
|
Connection: undefined,
|
|
3913
3913
|
};
|
|
3914
|
-
const data = await parseBody(output.body, context);
|
|
3914
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
3915
3915
|
if (data.Connection !== undefined && data.Connection !== null) {
|
|
3916
3916
|
contents.Connection = deserializeAws_restJson1Connection(data.Connection, context);
|
|
3917
3917
|
}
|
|
@@ -3999,7 +3999,7 @@ const deserializeAws_restJson1UpdateDeviceCommand = async (output, context) => {
|
|
|
3999
3999
|
$metadata: deserializeMetadata(output),
|
|
4000
4000
|
Device: undefined,
|
|
4001
4001
|
};
|
|
4002
|
-
const data = await parseBody(output.body, context);
|
|
4002
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
4003
4003
|
if (data.Device !== undefined && data.Device !== null) {
|
|
4004
4004
|
contents.Device = deserializeAws_restJson1Device(data.Device, context);
|
|
4005
4005
|
}
|
|
@@ -4087,7 +4087,7 @@ const deserializeAws_restJson1UpdateGlobalNetworkCommand = async (output, contex
|
|
|
4087
4087
|
$metadata: deserializeMetadata(output),
|
|
4088
4088
|
GlobalNetwork: undefined,
|
|
4089
4089
|
};
|
|
4090
|
-
const data = await parseBody(output.body, context);
|
|
4090
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
4091
4091
|
if (data.GlobalNetwork !== undefined && data.GlobalNetwork !== null) {
|
|
4092
4092
|
contents.GlobalNetwork = deserializeAws_restJson1GlobalNetwork(data.GlobalNetwork, context);
|
|
4093
4093
|
}
|
|
@@ -4175,7 +4175,7 @@ const deserializeAws_restJson1UpdateLinkCommand = async (output, context) => {
|
|
|
4175
4175
|
$metadata: deserializeMetadata(output),
|
|
4176
4176
|
Link: undefined,
|
|
4177
4177
|
};
|
|
4178
|
-
const data = await parseBody(output.body, context);
|
|
4178
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
4179
4179
|
if (data.Link !== undefined && data.Link !== null) {
|
|
4180
4180
|
contents.Link = deserializeAws_restJson1Link(data.Link, context);
|
|
4181
4181
|
}
|
|
@@ -4271,7 +4271,7 @@ const deserializeAws_restJson1UpdateSiteCommand = async (output, context) => {
|
|
|
4271
4271
|
$metadata: deserializeMetadata(output),
|
|
4272
4272
|
Site: undefined,
|
|
4273
4273
|
};
|
|
4274
|
-
const data = await parseBody(output.body, context);
|
|
4274
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
4275
4275
|
if (data.Site !== undefined && data.Site !== null) {
|
|
4276
4276
|
contents.Site = deserializeAws_restJson1Site(data.Site, context);
|
|
4277
4277
|
}
|
|
@@ -4394,7 +4394,7 @@ const deserializeAws_restJson1InternalServerExceptionResponse = async (parsedOut
|
|
|
4394
4394
|
RetryAfterSeconds: undefined,
|
|
4395
4395
|
};
|
|
4396
4396
|
if (parsedOutput.headers["retry-after"] !== undefined) {
|
|
4397
|
-
contents.RetryAfterSeconds = smithy_client_1.
|
|
4397
|
+
contents.RetryAfterSeconds = smithy_client_1.strictParseInt32(parsedOutput.headers["retry-after"]);
|
|
4398
4398
|
}
|
|
4399
4399
|
const data = parsedOutput.body;
|
|
4400
4400
|
if (data.Message !== undefined && data.Message !== null) {
|
|
@@ -4461,7 +4461,7 @@ const deserializeAws_restJson1ThrottlingExceptionResponse = async (parsedOutput,
|
|
|
4461
4461
|
RetryAfterSeconds: undefined,
|
|
4462
4462
|
};
|
|
4463
4463
|
if (parsedOutput.headers["retry-after"] !== undefined) {
|
|
4464
|
-
contents.RetryAfterSeconds = smithy_client_1.
|
|
4464
|
+
contents.RetryAfterSeconds = smithy_client_1.strictParseInt32(parsedOutput.headers["retry-after"]);
|
|
4465
4465
|
}
|
|
4466
4466
|
const data = parsedOutput.body;
|
|
4467
4467
|
if (data.Message !== undefined && data.Message !== null) {
|
|
@@ -4533,8 +4533,8 @@ const deserializeAws_restJson1AWSLocation = (output, context) => {
|
|
|
4533
4533
|
};
|
|
4534
4534
|
const deserializeAws_restJson1Bandwidth = (output, context) => {
|
|
4535
4535
|
return {
|
|
4536
|
-
DownloadSpeed: smithy_client_1.
|
|
4537
|
-
UploadSpeed: smithy_client_1.
|
|
4536
|
+
DownloadSpeed: smithy_client_1.expectInt32(output.DownloadSpeed),
|
|
4537
|
+
UploadSpeed: smithy_client_1.expectInt32(output.UploadSpeed),
|
|
4538
4538
|
};
|
|
4539
4539
|
};
|
|
4540
4540
|
const deserializeAws_restJson1Connection = (output, context) => {
|
|
@@ -4544,7 +4544,7 @@ const deserializeAws_restJson1Connection = (output, context) => {
|
|
|
4544
4544
|
ConnectionArn: smithy_client_1.expectString(output.ConnectionArn),
|
|
4545
4545
|
ConnectionId: smithy_client_1.expectString(output.ConnectionId),
|
|
4546
4546
|
CreatedAt: output.CreatedAt !== undefined && output.CreatedAt !== null
|
|
4547
|
-
?
|
|
4547
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.CreatedAt)))
|
|
4548
4548
|
: undefined,
|
|
4549
4549
|
Description: smithy_client_1.expectString(output.Description),
|
|
4550
4550
|
DeviceId: smithy_client_1.expectString(output.DeviceId),
|
|
@@ -4591,7 +4591,7 @@ const deserializeAws_restJson1Device = (output, context) => {
|
|
|
4591
4591
|
? deserializeAws_restJson1AWSLocation(output.AWSLocation, context)
|
|
4592
4592
|
: undefined,
|
|
4593
4593
|
CreatedAt: output.CreatedAt !== undefined && output.CreatedAt !== null
|
|
4594
|
-
?
|
|
4594
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.CreatedAt)))
|
|
4595
4595
|
: undefined,
|
|
4596
4596
|
Description: smithy_client_1.expectString(output.Description),
|
|
4597
4597
|
DeviceArn: smithy_client_1.expectString(output.DeviceArn),
|
|
@@ -4624,7 +4624,7 @@ const deserializeAws_restJson1DeviceList = (output, context) => {
|
|
|
4624
4624
|
const deserializeAws_restJson1GlobalNetwork = (output, context) => {
|
|
4625
4625
|
return {
|
|
4626
4626
|
CreatedAt: output.CreatedAt !== undefined && output.CreatedAt !== null
|
|
4627
|
-
?
|
|
4627
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.CreatedAt)))
|
|
4628
4628
|
: undefined,
|
|
4629
4629
|
Description: smithy_client_1.expectString(output.Description),
|
|
4630
4630
|
GlobalNetworkArn: smithy_client_1.expectString(output.GlobalNetworkArn),
|
|
@@ -4651,7 +4651,7 @@ const deserializeAws_restJson1Link = (output, context) => {
|
|
|
4651
4651
|
? deserializeAws_restJson1Bandwidth(output.Bandwidth, context)
|
|
4652
4652
|
: undefined,
|
|
4653
4653
|
CreatedAt: output.CreatedAt !== undefined && output.CreatedAt !== null
|
|
4654
|
-
?
|
|
4654
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.CreatedAt)))
|
|
4655
4655
|
: undefined,
|
|
4656
4656
|
Description: smithy_client_1.expectString(output.Description),
|
|
4657
4657
|
GlobalNetworkId: smithy_client_1.expectString(output.GlobalNetworkId),
|
|
@@ -4704,7 +4704,7 @@ const deserializeAws_restJson1Location = (output, context) => {
|
|
|
4704
4704
|
const deserializeAws_restJson1Site = (output, context) => {
|
|
4705
4705
|
return {
|
|
4706
4706
|
CreatedAt: output.CreatedAt !== undefined && output.CreatedAt !== null
|
|
4707
|
-
?
|
|
4707
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.CreatedAt)))
|
|
4708
4708
|
: undefined,
|
|
4709
4709
|
Description: smithy_client_1.expectString(output.Description),
|
|
4710
4710
|
GlobalNetworkId: smithy_client_1.expectString(output.GlobalNetworkId),
|