@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/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"
|
|
@@ -104,10 +104,14 @@ import {
|
|
|
104
104
|
} from "../models/models_0";
|
|
105
105
|
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
|
|
106
106
|
import {
|
|
107
|
-
|
|
107
|
+
expectInt32 as __expectInt32,
|
|
108
|
+
expectNonNull as __expectNonNull,
|
|
109
|
+
expectNumber as __expectNumber,
|
|
110
|
+
expectObject as __expectObject,
|
|
108
111
|
expectString as __expectString,
|
|
109
112
|
extendedEncodeURIComponent as __extendedEncodeURIComponent,
|
|
110
|
-
|
|
113
|
+
parseEpochTimestamp as __parseEpochTimestamp,
|
|
114
|
+
strictParseInt32 as __strictParseInt32,
|
|
111
115
|
} from "@aws-sdk/smithy-client";
|
|
112
116
|
import {
|
|
113
117
|
Endpoint as __Endpoint,
|
|
@@ -1458,7 +1462,7 @@ export const deserializeAws_restJson1AssociateCustomerGatewayCommand = async (
|
|
|
1458
1462
|
$metadata: deserializeMetadata(output),
|
|
1459
1463
|
CustomerGatewayAssociation: undefined,
|
|
1460
1464
|
};
|
|
1461
|
-
const data: any = await parseBody(output.body, context);
|
|
1465
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1462
1466
|
if (data.CustomerGatewayAssociation !== undefined && data.CustomerGatewayAssociation !== null) {
|
|
1463
1467
|
contents.CustomerGatewayAssociation = deserializeAws_restJson1CustomerGatewayAssociation(
|
|
1464
1468
|
data.CustomerGatewayAssociation,
|
|
@@ -1564,7 +1568,7 @@ export const deserializeAws_restJson1AssociateLinkCommand = async (
|
|
|
1564
1568
|
$metadata: deserializeMetadata(output),
|
|
1565
1569
|
LinkAssociation: undefined,
|
|
1566
1570
|
};
|
|
1567
|
-
const data: any = await parseBody(output.body, context);
|
|
1571
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1568
1572
|
if (data.LinkAssociation !== undefined && data.LinkAssociation !== null) {
|
|
1569
1573
|
contents.LinkAssociation = deserializeAws_restJson1LinkAssociation(data.LinkAssociation, context);
|
|
1570
1574
|
}
|
|
@@ -1667,7 +1671,7 @@ export const deserializeAws_restJson1AssociateTransitGatewayConnectPeerCommand =
|
|
|
1667
1671
|
$metadata: deserializeMetadata(output),
|
|
1668
1672
|
TransitGatewayConnectPeerAssociation: undefined,
|
|
1669
1673
|
};
|
|
1670
|
-
const data: any = await parseBody(output.body, context);
|
|
1674
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1671
1675
|
if (data.TransitGatewayConnectPeerAssociation !== undefined && data.TransitGatewayConnectPeerAssociation !== null) {
|
|
1672
1676
|
contents.TransitGatewayConnectPeerAssociation = deserializeAws_restJson1TransitGatewayConnectPeerAssociation(
|
|
1673
1677
|
data.TransitGatewayConnectPeerAssociation,
|
|
@@ -1773,7 +1777,7 @@ export const deserializeAws_restJson1CreateConnectionCommand = async (
|
|
|
1773
1777
|
$metadata: deserializeMetadata(output),
|
|
1774
1778
|
Connection: undefined,
|
|
1775
1779
|
};
|
|
1776
|
-
const data: any = await parseBody(output.body, context);
|
|
1780
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1777
1781
|
if (data.Connection !== undefined && data.Connection !== null) {
|
|
1778
1782
|
contents.Connection = deserializeAws_restJson1Connection(data.Connection, context);
|
|
1779
1783
|
}
|
|
@@ -1868,7 +1872,7 @@ export const deserializeAws_restJson1CreateDeviceCommand = async (
|
|
|
1868
1872
|
$metadata: deserializeMetadata(output),
|
|
1869
1873
|
Device: undefined,
|
|
1870
1874
|
};
|
|
1871
|
-
const data: any = await parseBody(output.body, context);
|
|
1875
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1872
1876
|
if (data.Device !== undefined && data.Device !== null) {
|
|
1873
1877
|
contents.Device = deserializeAws_restJson1Device(data.Device, context);
|
|
1874
1878
|
}
|
|
@@ -1971,7 +1975,7 @@ export const deserializeAws_restJson1CreateGlobalNetworkCommand = async (
|
|
|
1971
1975
|
$metadata: deserializeMetadata(output),
|
|
1972
1976
|
GlobalNetwork: undefined,
|
|
1973
1977
|
};
|
|
1974
|
-
const data: any = await parseBody(output.body, context);
|
|
1978
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1975
1979
|
if (data.GlobalNetwork !== undefined && data.GlobalNetwork !== null) {
|
|
1976
1980
|
contents.GlobalNetwork = deserializeAws_restJson1GlobalNetwork(data.GlobalNetwork, context);
|
|
1977
1981
|
}
|
|
@@ -2066,7 +2070,7 @@ export const deserializeAws_restJson1CreateLinkCommand = async (
|
|
|
2066
2070
|
$metadata: deserializeMetadata(output),
|
|
2067
2071
|
Link: undefined,
|
|
2068
2072
|
};
|
|
2069
|
-
const data: any = await parseBody(output.body, context);
|
|
2073
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2070
2074
|
if (data.Link !== undefined && data.Link !== null) {
|
|
2071
2075
|
contents.Link = deserializeAws_restJson1Link(data.Link, context);
|
|
2072
2076
|
}
|
|
@@ -2169,7 +2173,7 @@ export const deserializeAws_restJson1CreateSiteCommand = async (
|
|
|
2169
2173
|
$metadata: deserializeMetadata(output),
|
|
2170
2174
|
Site: undefined,
|
|
2171
2175
|
};
|
|
2172
|
-
const data: any = await parseBody(output.body, context);
|
|
2176
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2173
2177
|
if (data.Site !== undefined && data.Site !== null) {
|
|
2174
2178
|
contents.Site = deserializeAws_restJson1Site(data.Site, context);
|
|
2175
2179
|
}
|
|
@@ -2272,7 +2276,7 @@ export const deserializeAws_restJson1DeleteConnectionCommand = async (
|
|
|
2272
2276
|
$metadata: deserializeMetadata(output),
|
|
2273
2277
|
Connection: undefined,
|
|
2274
2278
|
};
|
|
2275
|
-
const data: any = await parseBody(output.body, context);
|
|
2279
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2276
2280
|
if (data.Connection !== undefined && data.Connection !== null) {
|
|
2277
2281
|
contents.Connection = deserializeAws_restJson1Connection(data.Connection, context);
|
|
2278
2282
|
}
|
|
@@ -2367,7 +2371,7 @@ export const deserializeAws_restJson1DeleteDeviceCommand = async (
|
|
|
2367
2371
|
$metadata: deserializeMetadata(output),
|
|
2368
2372
|
Device: undefined,
|
|
2369
2373
|
};
|
|
2370
|
-
const data: any = await parseBody(output.body, context);
|
|
2374
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2371
2375
|
if (data.Device !== undefined && data.Device !== null) {
|
|
2372
2376
|
contents.Device = deserializeAws_restJson1Device(data.Device, context);
|
|
2373
2377
|
}
|
|
@@ -2462,7 +2466,7 @@ export const deserializeAws_restJson1DeleteGlobalNetworkCommand = async (
|
|
|
2462
2466
|
$metadata: deserializeMetadata(output),
|
|
2463
2467
|
GlobalNetwork: undefined,
|
|
2464
2468
|
};
|
|
2465
|
-
const data: any = await parseBody(output.body, context);
|
|
2469
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2466
2470
|
if (data.GlobalNetwork !== undefined && data.GlobalNetwork !== null) {
|
|
2467
2471
|
contents.GlobalNetwork = deserializeAws_restJson1GlobalNetwork(data.GlobalNetwork, context);
|
|
2468
2472
|
}
|
|
@@ -2557,7 +2561,7 @@ export const deserializeAws_restJson1DeleteLinkCommand = async (
|
|
|
2557
2561
|
$metadata: deserializeMetadata(output),
|
|
2558
2562
|
Link: undefined,
|
|
2559
2563
|
};
|
|
2560
|
-
const data: any = await parseBody(output.body, context);
|
|
2564
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2561
2565
|
if (data.Link !== undefined && data.Link !== null) {
|
|
2562
2566
|
contents.Link = deserializeAws_restJson1Link(data.Link, context);
|
|
2563
2567
|
}
|
|
@@ -2652,7 +2656,7 @@ export const deserializeAws_restJson1DeleteSiteCommand = async (
|
|
|
2652
2656
|
$metadata: deserializeMetadata(output),
|
|
2653
2657
|
Site: undefined,
|
|
2654
2658
|
};
|
|
2655
|
-
const data: any = await parseBody(output.body, context);
|
|
2659
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2656
2660
|
if (data.Site !== undefined && data.Site !== null) {
|
|
2657
2661
|
contents.Site = deserializeAws_restJson1Site(data.Site, context);
|
|
2658
2662
|
}
|
|
@@ -2747,7 +2751,7 @@ export const deserializeAws_restJson1DeregisterTransitGatewayCommand = async (
|
|
|
2747
2751
|
$metadata: deserializeMetadata(output),
|
|
2748
2752
|
TransitGatewayRegistration: undefined,
|
|
2749
2753
|
};
|
|
2750
|
-
const data: any = await parseBody(output.body, context);
|
|
2754
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2751
2755
|
if (data.TransitGatewayRegistration !== undefined && data.TransitGatewayRegistration !== null) {
|
|
2752
2756
|
contents.TransitGatewayRegistration = deserializeAws_restJson1TransitGatewayRegistration(
|
|
2753
2757
|
data.TransitGatewayRegistration,
|
|
@@ -2846,7 +2850,7 @@ export const deserializeAws_restJson1DescribeGlobalNetworksCommand = async (
|
|
|
2846
2850
|
GlobalNetworks: undefined,
|
|
2847
2851
|
NextToken: undefined,
|
|
2848
2852
|
};
|
|
2849
|
-
const data: any = await parseBody(output.body, context);
|
|
2853
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2850
2854
|
if (data.GlobalNetworks !== undefined && data.GlobalNetworks !== null) {
|
|
2851
2855
|
contents.GlobalNetworks = deserializeAws_restJson1GlobalNetworkList(data.GlobalNetworks, context);
|
|
2852
2856
|
}
|
|
@@ -2936,7 +2940,7 @@ export const deserializeAws_restJson1DisassociateCustomerGatewayCommand = async
|
|
|
2936
2940
|
$metadata: deserializeMetadata(output),
|
|
2937
2941
|
CustomerGatewayAssociation: undefined,
|
|
2938
2942
|
};
|
|
2939
|
-
const data: any = await parseBody(output.body, context);
|
|
2943
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2940
2944
|
if (data.CustomerGatewayAssociation !== undefined && data.CustomerGatewayAssociation !== null) {
|
|
2941
2945
|
contents.CustomerGatewayAssociation = deserializeAws_restJson1CustomerGatewayAssociation(
|
|
2942
2946
|
data.CustomerGatewayAssociation,
|
|
@@ -3034,7 +3038,7 @@ export const deserializeAws_restJson1DisassociateLinkCommand = async (
|
|
|
3034
3038
|
$metadata: deserializeMetadata(output),
|
|
3035
3039
|
LinkAssociation: undefined,
|
|
3036
3040
|
};
|
|
3037
|
-
const data: any = await parseBody(output.body, context);
|
|
3041
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
3038
3042
|
if (data.LinkAssociation !== undefined && data.LinkAssociation !== null) {
|
|
3039
3043
|
contents.LinkAssociation = deserializeAws_restJson1LinkAssociation(data.LinkAssociation, context);
|
|
3040
3044
|
}
|
|
@@ -3129,7 +3133,7 @@ export const deserializeAws_restJson1DisassociateTransitGatewayConnectPeerComman
|
|
|
3129
3133
|
$metadata: deserializeMetadata(output),
|
|
3130
3134
|
TransitGatewayConnectPeerAssociation: undefined,
|
|
3131
3135
|
};
|
|
3132
|
-
const data: any = await parseBody(output.body, context);
|
|
3136
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
3133
3137
|
if (data.TransitGatewayConnectPeerAssociation !== undefined && data.TransitGatewayConnectPeerAssociation !== null) {
|
|
3134
3138
|
contents.TransitGatewayConnectPeerAssociation = deserializeAws_restJson1TransitGatewayConnectPeerAssociation(
|
|
3135
3139
|
data.TransitGatewayConnectPeerAssociation,
|
|
@@ -3228,7 +3232,7 @@ export const deserializeAws_restJson1GetConnectionsCommand = async (
|
|
|
3228
3232
|
Connections: undefined,
|
|
3229
3233
|
NextToken: undefined,
|
|
3230
3234
|
};
|
|
3231
|
-
const data: any = await parseBody(output.body, context);
|
|
3235
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
3232
3236
|
if (data.Connections !== undefined && data.Connections !== null) {
|
|
3233
3237
|
contents.Connections = deserializeAws_restJson1ConnectionList(data.Connections, context);
|
|
3234
3238
|
}
|
|
@@ -3319,7 +3323,7 @@ export const deserializeAws_restJson1GetCustomerGatewayAssociationsCommand = asy
|
|
|
3319
3323
|
CustomerGatewayAssociations: undefined,
|
|
3320
3324
|
NextToken: undefined,
|
|
3321
3325
|
};
|
|
3322
|
-
const data: any = await parseBody(output.body, context);
|
|
3326
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
3323
3327
|
if (data.CustomerGatewayAssociations !== undefined && data.CustomerGatewayAssociations !== null) {
|
|
3324
3328
|
contents.CustomerGatewayAssociations = deserializeAws_restJson1CustomerGatewayAssociationList(
|
|
3325
3329
|
data.CustomerGatewayAssociations,
|
|
@@ -3421,7 +3425,7 @@ export const deserializeAws_restJson1GetDevicesCommand = async (
|
|
|
3421
3425
|
Devices: undefined,
|
|
3422
3426
|
NextToken: undefined,
|
|
3423
3427
|
};
|
|
3424
|
-
const data: any = await parseBody(output.body, context);
|
|
3428
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
3425
3429
|
if (data.Devices !== undefined && data.Devices !== null) {
|
|
3426
3430
|
contents.Devices = deserializeAws_restJson1DeviceList(data.Devices, context);
|
|
3427
3431
|
}
|
|
@@ -3512,7 +3516,7 @@ export const deserializeAws_restJson1GetLinkAssociationsCommand = async (
|
|
|
3512
3516
|
LinkAssociations: undefined,
|
|
3513
3517
|
NextToken: undefined,
|
|
3514
3518
|
};
|
|
3515
|
-
const data: any = await parseBody(output.body, context);
|
|
3519
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
3516
3520
|
if (data.LinkAssociations !== undefined && data.LinkAssociations !== null) {
|
|
3517
3521
|
contents.LinkAssociations = deserializeAws_restJson1LinkAssociationList(data.LinkAssociations, context);
|
|
3518
3522
|
}
|
|
@@ -3603,7 +3607,7 @@ export const deserializeAws_restJson1GetLinksCommand = async (
|
|
|
3603
3607
|
Links: undefined,
|
|
3604
3608
|
NextToken: undefined,
|
|
3605
3609
|
};
|
|
3606
|
-
const data: any = await parseBody(output.body, context);
|
|
3610
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
3607
3611
|
if (data.Links !== undefined && data.Links !== null) {
|
|
3608
3612
|
contents.Links = deserializeAws_restJson1LinkList(data.Links, context);
|
|
3609
3613
|
}
|
|
@@ -3694,7 +3698,7 @@ export const deserializeAws_restJson1GetSitesCommand = async (
|
|
|
3694
3698
|
NextToken: undefined,
|
|
3695
3699
|
Sites: undefined,
|
|
3696
3700
|
};
|
|
3697
|
-
const data: any = await parseBody(output.body, context);
|
|
3701
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
3698
3702
|
if (data.NextToken !== undefined && data.NextToken !== null) {
|
|
3699
3703
|
contents.NextToken = __expectString(data.NextToken);
|
|
3700
3704
|
}
|
|
@@ -3785,7 +3789,7 @@ export const deserializeAws_restJson1GetTransitGatewayConnectPeerAssociationsCom
|
|
|
3785
3789
|
NextToken: undefined,
|
|
3786
3790
|
TransitGatewayConnectPeerAssociations: undefined,
|
|
3787
3791
|
};
|
|
3788
|
-
const data: any = await parseBody(output.body, context);
|
|
3792
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
3789
3793
|
if (data.NextToken !== undefined && data.NextToken !== null) {
|
|
3790
3794
|
contents.NextToken = __expectString(data.NextToken);
|
|
3791
3795
|
}
|
|
@@ -3887,7 +3891,7 @@ export const deserializeAws_restJson1GetTransitGatewayRegistrationsCommand = asy
|
|
|
3887
3891
|
NextToken: undefined,
|
|
3888
3892
|
TransitGatewayRegistrations: undefined,
|
|
3889
3893
|
};
|
|
3890
|
-
const data: any = await parseBody(output.body, context);
|
|
3894
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
3891
3895
|
if (data.NextToken !== undefined && data.NextToken !== null) {
|
|
3892
3896
|
contents.NextToken = __expectString(data.NextToken);
|
|
3893
3897
|
}
|
|
@@ -3980,7 +3984,7 @@ export const deserializeAws_restJson1ListTagsForResourceCommand = async (
|
|
|
3980
3984
|
$metadata: deserializeMetadata(output),
|
|
3981
3985
|
TagList: undefined,
|
|
3982
3986
|
};
|
|
3983
|
-
const data: any = await parseBody(output.body, context);
|
|
3987
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
3984
3988
|
if (data.TagList !== undefined && data.TagList !== null) {
|
|
3985
3989
|
contents.TagList = deserializeAws_restJson1TagList(data.TagList, context);
|
|
3986
3990
|
}
|
|
@@ -4067,7 +4071,7 @@ export const deserializeAws_restJson1RegisterTransitGatewayCommand = async (
|
|
|
4067
4071
|
$metadata: deserializeMetadata(output),
|
|
4068
4072
|
TransitGatewayRegistration: undefined,
|
|
4069
4073
|
};
|
|
4070
|
-
const data: any = await parseBody(output.body, context);
|
|
4074
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
4071
4075
|
if (data.TransitGatewayRegistration !== undefined && data.TransitGatewayRegistration !== null) {
|
|
4072
4076
|
contents.TransitGatewayRegistration = deserializeAws_restJson1TransitGatewayRegistration(
|
|
4073
4077
|
data.TransitGatewayRegistration,
|
|
@@ -4355,7 +4359,7 @@ export const deserializeAws_restJson1UpdateConnectionCommand = async (
|
|
|
4355
4359
|
$metadata: deserializeMetadata(output),
|
|
4356
4360
|
Connection: undefined,
|
|
4357
4361
|
};
|
|
4358
|
-
const data: any = await parseBody(output.body, context);
|
|
4362
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
4359
4363
|
if (data.Connection !== undefined && data.Connection !== null) {
|
|
4360
4364
|
contents.Connection = deserializeAws_restJson1Connection(data.Connection, context);
|
|
4361
4365
|
}
|
|
@@ -4450,7 +4454,7 @@ export const deserializeAws_restJson1UpdateDeviceCommand = async (
|
|
|
4450
4454
|
$metadata: deserializeMetadata(output),
|
|
4451
4455
|
Device: undefined,
|
|
4452
4456
|
};
|
|
4453
|
-
const data: any = await parseBody(output.body, context);
|
|
4457
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
4454
4458
|
if (data.Device !== undefined && data.Device !== null) {
|
|
4455
4459
|
contents.Device = deserializeAws_restJson1Device(data.Device, context);
|
|
4456
4460
|
}
|
|
@@ -4545,7 +4549,7 @@ export const deserializeAws_restJson1UpdateGlobalNetworkCommand = async (
|
|
|
4545
4549
|
$metadata: deserializeMetadata(output),
|
|
4546
4550
|
GlobalNetwork: undefined,
|
|
4547
4551
|
};
|
|
4548
|
-
const data: any = await parseBody(output.body, context);
|
|
4552
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
4549
4553
|
if (data.GlobalNetwork !== undefined && data.GlobalNetwork !== null) {
|
|
4550
4554
|
contents.GlobalNetwork = deserializeAws_restJson1GlobalNetwork(data.GlobalNetwork, context);
|
|
4551
4555
|
}
|
|
@@ -4640,7 +4644,7 @@ export const deserializeAws_restJson1UpdateLinkCommand = async (
|
|
|
4640
4644
|
$metadata: deserializeMetadata(output),
|
|
4641
4645
|
Link: undefined,
|
|
4642
4646
|
};
|
|
4643
|
-
const data: any = await parseBody(output.body, context);
|
|
4647
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
4644
4648
|
if (data.Link !== undefined && data.Link !== null) {
|
|
4645
4649
|
contents.Link = deserializeAws_restJson1Link(data.Link, context);
|
|
4646
4650
|
}
|
|
@@ -4743,7 +4747,7 @@ export const deserializeAws_restJson1UpdateSiteCommand = async (
|
|
|
4743
4747
|
$metadata: deserializeMetadata(output),
|
|
4744
4748
|
Site: undefined,
|
|
4745
4749
|
};
|
|
4746
|
-
const data: any = await parseBody(output.body, context);
|
|
4750
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
4747
4751
|
if (data.Site !== undefined && data.Site !== null) {
|
|
4748
4752
|
contents.Site = deserializeAws_restJson1Site(data.Site, context);
|
|
4749
4753
|
}
|
|
@@ -4881,7 +4885,7 @@ const deserializeAws_restJson1InternalServerExceptionResponse = async (
|
|
|
4881
4885
|
RetryAfterSeconds: undefined,
|
|
4882
4886
|
};
|
|
4883
4887
|
if (parsedOutput.headers["retry-after"] !== undefined) {
|
|
4884
|
-
contents.RetryAfterSeconds =
|
|
4888
|
+
contents.RetryAfterSeconds = __strictParseInt32(parsedOutput.headers["retry-after"]);
|
|
4885
4889
|
}
|
|
4886
4890
|
const data: any = parsedOutput.body;
|
|
4887
4891
|
if (data.Message !== undefined && data.Message !== null) {
|
|
@@ -4960,7 +4964,7 @@ const deserializeAws_restJson1ThrottlingExceptionResponse = async (
|
|
|
4960
4964
|
RetryAfterSeconds: undefined,
|
|
4961
4965
|
};
|
|
4962
4966
|
if (parsedOutput.headers["retry-after"] !== undefined) {
|
|
4963
|
-
contents.RetryAfterSeconds =
|
|
4967
|
+
contents.RetryAfterSeconds = __strictParseInt32(parsedOutput.headers["retry-after"]);
|
|
4964
4968
|
}
|
|
4965
4969
|
const data: any = parsedOutput.body;
|
|
4966
4970
|
if (data.Message !== undefined && data.Message !== null) {
|
|
@@ -5043,8 +5047,8 @@ const deserializeAws_restJson1AWSLocation = (output: any, context: __SerdeContex
|
|
|
5043
5047
|
|
|
5044
5048
|
const deserializeAws_restJson1Bandwidth = (output: any, context: __SerdeContext): Bandwidth => {
|
|
5045
5049
|
return {
|
|
5046
|
-
DownloadSpeed:
|
|
5047
|
-
UploadSpeed:
|
|
5050
|
+
DownloadSpeed: __expectInt32(output.DownloadSpeed),
|
|
5051
|
+
UploadSpeed: __expectInt32(output.UploadSpeed),
|
|
5048
5052
|
} as any;
|
|
5049
5053
|
};
|
|
5050
5054
|
|
|
@@ -5056,7 +5060,7 @@ const deserializeAws_restJson1Connection = (output: any, context: __SerdeContext
|
|
|
5056
5060
|
ConnectionId: __expectString(output.ConnectionId),
|
|
5057
5061
|
CreatedAt:
|
|
5058
5062
|
output.CreatedAt !== undefined && output.CreatedAt !== null
|
|
5059
|
-
?
|
|
5063
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedAt)))
|
|
5060
5064
|
: undefined,
|
|
5061
5065
|
Description: __expectString(output.Description),
|
|
5062
5066
|
DeviceId: __expectString(output.DeviceId),
|
|
@@ -5116,7 +5120,7 @@ const deserializeAws_restJson1Device = (output: any, context: __SerdeContext): D
|
|
|
5116
5120
|
: undefined,
|
|
5117
5121
|
CreatedAt:
|
|
5118
5122
|
output.CreatedAt !== undefined && output.CreatedAt !== null
|
|
5119
|
-
?
|
|
5123
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedAt)))
|
|
5120
5124
|
: undefined,
|
|
5121
5125
|
Description: __expectString(output.Description),
|
|
5122
5126
|
DeviceArn: __expectString(output.DeviceArn),
|
|
@@ -5154,7 +5158,7 @@ const deserializeAws_restJson1GlobalNetwork = (output: any, context: __SerdeCont
|
|
|
5154
5158
|
return {
|
|
5155
5159
|
CreatedAt:
|
|
5156
5160
|
output.CreatedAt !== undefined && output.CreatedAt !== null
|
|
5157
|
-
?
|
|
5161
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedAt)))
|
|
5158
5162
|
: undefined,
|
|
5159
5163
|
Description: __expectString(output.Description),
|
|
5160
5164
|
GlobalNetworkArn: __expectString(output.GlobalNetworkArn),
|
|
@@ -5186,7 +5190,7 @@ const deserializeAws_restJson1Link = (output: any, context: __SerdeContext): Lin
|
|
|
5186
5190
|
: undefined,
|
|
5187
5191
|
CreatedAt:
|
|
5188
5192
|
output.CreatedAt !== undefined && output.CreatedAt !== null
|
|
5189
|
-
?
|
|
5193
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedAt)))
|
|
5190
5194
|
: undefined,
|
|
5191
5195
|
Description: __expectString(output.Description),
|
|
5192
5196
|
GlobalNetworkId: __expectString(output.GlobalNetworkId),
|
|
@@ -5246,7 +5250,7 @@ const deserializeAws_restJson1Site = (output: any, context: __SerdeContext): Sit
|
|
|
5246
5250
|
return {
|
|
5247
5251
|
CreatedAt:
|
|
5248
5252
|
output.CreatedAt !== undefined && output.CreatedAt !== null
|
|
5249
|
-
?
|
|
5253
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedAt)))
|
|
5250
5254
|
: undefined,
|
|
5251
5255
|
Description: __expectString(output.Description),
|
|
5252
5256
|
GlobalNetworkId: __expectString(output.GlobalNetworkId),
|