@aws-sdk/client-networkmanager 3.31.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 +8 -0
- package/dist/cjs/NetworkManagerClient.js +13 -13
- package/dist/cjs/NetworkManagerClient.js.map +1 -1
- package/dist/cjs/commands/AssociateCustomerGatewayCommand.js +3 -3
- package/dist/cjs/commands/AssociateCustomerGatewayCommand.js.map +1 -1
- package/dist/cjs/commands/AssociateLinkCommand.js +3 -3
- package/dist/cjs/commands/AssociateLinkCommand.js.map +1 -1
- package/dist/cjs/commands/AssociateTransitGatewayConnectPeerCommand.js +3 -3
- package/dist/cjs/commands/AssociateTransitGatewayConnectPeerCommand.js.map +1 -1
- package/dist/cjs/commands/CreateConnectionCommand.js +3 -3
- package/dist/cjs/commands/CreateConnectionCommand.js.map +1 -1
- package/dist/cjs/commands/CreateDeviceCommand.js +3 -3
- package/dist/cjs/commands/CreateDeviceCommand.js.map +1 -1
- package/dist/cjs/commands/CreateGlobalNetworkCommand.js +3 -3
- package/dist/cjs/commands/CreateGlobalNetworkCommand.js.map +1 -1
- package/dist/cjs/commands/CreateLinkCommand.js +3 -3
- package/dist/cjs/commands/CreateLinkCommand.js.map +1 -1
- package/dist/cjs/commands/CreateSiteCommand.js +3 -3
- package/dist/cjs/commands/CreateSiteCommand.js.map +1 -1
- package/dist/cjs/commands/DeleteConnectionCommand.js +3 -3
- package/dist/cjs/commands/DeleteConnectionCommand.js.map +1 -1
- package/dist/cjs/commands/DeleteDeviceCommand.js +3 -3
- package/dist/cjs/commands/DeleteDeviceCommand.js.map +1 -1
- package/dist/cjs/commands/DeleteGlobalNetworkCommand.js +3 -3
- package/dist/cjs/commands/DeleteGlobalNetworkCommand.js.map +1 -1
- package/dist/cjs/commands/DeleteLinkCommand.js +3 -3
- package/dist/cjs/commands/DeleteLinkCommand.js.map +1 -1
- package/dist/cjs/commands/DeleteSiteCommand.js +3 -3
- package/dist/cjs/commands/DeleteSiteCommand.js.map +1 -1
- package/dist/cjs/commands/DeregisterTransitGatewayCommand.js +3 -3
- package/dist/cjs/commands/DeregisterTransitGatewayCommand.js.map +1 -1
- package/dist/cjs/commands/DescribeGlobalNetworksCommand.js +3 -3
- package/dist/cjs/commands/DescribeGlobalNetworksCommand.js.map +1 -1
- package/dist/cjs/commands/DisassociateCustomerGatewayCommand.js +3 -3
- package/dist/cjs/commands/DisassociateCustomerGatewayCommand.js.map +1 -1
- package/dist/cjs/commands/DisassociateLinkCommand.js +3 -3
- package/dist/cjs/commands/DisassociateLinkCommand.js.map +1 -1
- package/dist/cjs/commands/DisassociateTransitGatewayConnectPeerCommand.js +3 -3
- package/dist/cjs/commands/DisassociateTransitGatewayConnectPeerCommand.js.map +1 -1
- package/dist/cjs/commands/GetConnectionsCommand.js +3 -3
- package/dist/cjs/commands/GetConnectionsCommand.js.map +1 -1
- package/dist/cjs/commands/GetCustomerGatewayAssociationsCommand.js +3 -3
- package/dist/cjs/commands/GetCustomerGatewayAssociationsCommand.js.map +1 -1
- package/dist/cjs/commands/GetDevicesCommand.js +3 -3
- package/dist/cjs/commands/GetDevicesCommand.js.map +1 -1
- package/dist/cjs/commands/GetLinkAssociationsCommand.js +3 -3
- package/dist/cjs/commands/GetLinkAssociationsCommand.js.map +1 -1
- package/dist/cjs/commands/GetLinksCommand.js +3 -3
- package/dist/cjs/commands/GetLinksCommand.js.map +1 -1
- package/dist/cjs/commands/GetSitesCommand.js +3 -3
- package/dist/cjs/commands/GetSitesCommand.js.map +1 -1
- package/dist/cjs/commands/GetTransitGatewayConnectPeerAssociationsCommand.js +3 -3
- package/dist/cjs/commands/GetTransitGatewayConnectPeerAssociationsCommand.js.map +1 -1
- package/dist/cjs/commands/GetTransitGatewayRegistrationsCommand.js +3 -3
- package/dist/cjs/commands/GetTransitGatewayRegistrationsCommand.js.map +1 -1
- package/dist/cjs/commands/ListTagsForResourceCommand.js +3 -3
- package/dist/cjs/commands/ListTagsForResourceCommand.js.map +1 -1
- package/dist/cjs/commands/RegisterTransitGatewayCommand.js +3 -3
- package/dist/cjs/commands/RegisterTransitGatewayCommand.js.map +1 -1
- package/dist/cjs/commands/TagResourceCommand.js +3 -3
- package/dist/cjs/commands/TagResourceCommand.js.map +1 -1
- package/dist/cjs/commands/UntagResourceCommand.js +3 -3
- package/dist/cjs/commands/UntagResourceCommand.js.map +1 -1
- package/dist/cjs/commands/UpdateConnectionCommand.js +3 -3
- package/dist/cjs/commands/UpdateConnectionCommand.js.map +1 -1
- package/dist/cjs/commands/UpdateDeviceCommand.js +3 -3
- package/dist/cjs/commands/UpdateDeviceCommand.js.map +1 -1
- package/dist/cjs/commands/UpdateGlobalNetworkCommand.js +3 -3
- package/dist/cjs/commands/UpdateGlobalNetworkCommand.js.map +1 -1
- package/dist/cjs/commands/UpdateLinkCommand.js +3 -3
- package/dist/cjs/commands/UpdateLinkCommand.js.map +1 -1
- package/dist/cjs/commands/UpdateSiteCommand.js +3 -3
- package/dist/cjs/commands/UpdateSiteCommand.js.map +1 -1
- package/dist/cjs/endpoints.js +1 -1
- package/dist/cjs/endpoints.js.map +1 -1
- package/dist/cjs/index.js +48 -48
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/models/index.js +1 -1
- package/dist/cjs/models/index.js.map +1 -1
- package/dist/cjs/package.json +31 -31
- package/dist/cjs/protocols/Aws_restJson1.js +174 -174
- package/dist/cjs/protocols/Aws_restJson1.js.map +1 -1
- package/dist/cjs/runtimeConfig.browser.js +4 -4
- package/dist/cjs/runtimeConfig.browser.js.map +1 -1
- package/dist/cjs/runtimeConfig.js +8 -8
- package/dist/cjs/runtimeConfig.js.map +1 -1
- package/dist/cjs/runtimeConfig.native.js +1 -1
- package/dist/cjs/runtimeConfig.native.js.map +1 -1
- package/dist/es/package.json +31 -31
- package/dist/es/pagination/DescribeGlobalNetworksPaginator.js +4 -4
- package/dist/es/pagination/DescribeGlobalNetworksPaginator.js.map +1 -1
- package/dist/es/pagination/GetConnectionsPaginator.js +4 -4
- package/dist/es/pagination/GetConnectionsPaginator.js.map +1 -1
- package/dist/es/pagination/GetCustomerGatewayAssociationsPaginator.js +4 -4
- package/dist/es/pagination/GetCustomerGatewayAssociationsPaginator.js.map +1 -1
- package/dist/es/pagination/GetDevicesPaginator.js +4 -4
- package/dist/es/pagination/GetDevicesPaginator.js.map +1 -1
- package/dist/es/pagination/GetLinkAssociationsPaginator.js +4 -4
- package/dist/es/pagination/GetLinkAssociationsPaginator.js.map +1 -1
- package/dist/es/pagination/GetLinksPaginator.js +4 -4
- package/dist/es/pagination/GetLinksPaginator.js.map +1 -1
- package/dist/es/pagination/GetSitesPaginator.js +4 -4
- package/dist/es/pagination/GetSitesPaginator.js.map +1 -1
- package/dist/es/pagination/GetTransitGatewayConnectPeerAssociationsPaginator.js +4 -4
- package/dist/es/pagination/GetTransitGatewayConnectPeerAssociationsPaginator.js.map +1 -1
- package/dist/es/pagination/GetTransitGatewayRegistrationsPaginator.js +4 -4
- package/dist/es/pagination/GetTransitGatewayRegistrationsPaginator.js.map +1 -1
- package/package.json +31 -31
- package/tsconfig.json +1 -2
|
@@ -16,7 +16,7 @@ const serializeAws_restJson1AssociateCustomerGatewayCommand = async (input, cont
|
|
|
16
16
|
if (labelValue.length <= 0) {
|
|
17
17
|
throw new Error("Empty value provided for input HTTP label: GlobalNetworkId.");
|
|
18
18
|
}
|
|
19
|
-
resolvedPath = resolvedPath.replace("{GlobalNetworkId}",
|
|
19
|
+
resolvedPath = resolvedPath.replace("{GlobalNetworkId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
20
20
|
}
|
|
21
21
|
else {
|
|
22
22
|
throw new Error("No value provided for input HTTP label: GlobalNetworkId.");
|
|
@@ -51,7 +51,7 @@ const serializeAws_restJson1AssociateLinkCommand = async (input, context) => {
|
|
|
51
51
|
if (labelValue.length <= 0) {
|
|
52
52
|
throw new Error("Empty value provided for input HTTP label: GlobalNetworkId.");
|
|
53
53
|
}
|
|
54
|
-
resolvedPath = resolvedPath.replace("{GlobalNetworkId}",
|
|
54
|
+
resolvedPath = resolvedPath.replace("{GlobalNetworkId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
55
55
|
}
|
|
56
56
|
else {
|
|
57
57
|
throw new Error("No value provided for input HTTP label: GlobalNetworkId.");
|
|
@@ -84,7 +84,7 @@ const serializeAws_restJson1AssociateTransitGatewayConnectPeerCommand = async (i
|
|
|
84
84
|
if (labelValue.length <= 0) {
|
|
85
85
|
throw new Error("Empty value provided for input HTTP label: GlobalNetworkId.");
|
|
86
86
|
}
|
|
87
|
-
resolvedPath = resolvedPath.replace("{GlobalNetworkId}",
|
|
87
|
+
resolvedPath = resolvedPath.replace("{GlobalNetworkId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
88
88
|
}
|
|
89
89
|
else {
|
|
90
90
|
throw new Error("No value provided for input HTTP label: GlobalNetworkId.");
|
|
@@ -121,7 +121,7 @@ const serializeAws_restJson1CreateConnectionCommand = async (input, context) =>
|
|
|
121
121
|
if (labelValue.length <= 0) {
|
|
122
122
|
throw new Error("Empty value provided for input HTTP label: GlobalNetworkId.");
|
|
123
123
|
}
|
|
124
|
-
resolvedPath = resolvedPath.replace("{GlobalNetworkId}",
|
|
124
|
+
resolvedPath = resolvedPath.replace("{GlobalNetworkId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
125
125
|
}
|
|
126
126
|
else {
|
|
127
127
|
throw new Error("No value provided for input HTTP label: GlobalNetworkId.");
|
|
@@ -161,7 +161,7 @@ const serializeAws_restJson1CreateDeviceCommand = async (input, context) => {
|
|
|
161
161
|
if (labelValue.length <= 0) {
|
|
162
162
|
throw new Error("Empty value provided for input HTTP label: GlobalNetworkId.");
|
|
163
163
|
}
|
|
164
|
-
resolvedPath = resolvedPath.replace("{GlobalNetworkId}",
|
|
164
|
+
resolvedPath = resolvedPath.replace("{GlobalNetworkId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
165
165
|
}
|
|
166
166
|
else {
|
|
167
167
|
throw new Error("No value provided for input HTTP label: GlobalNetworkId.");
|
|
@@ -226,7 +226,7 @@ const serializeAws_restJson1CreateLinkCommand = async (input, context) => {
|
|
|
226
226
|
if (labelValue.length <= 0) {
|
|
227
227
|
throw new Error("Empty value provided for input HTTP label: GlobalNetworkId.");
|
|
228
228
|
}
|
|
229
|
-
resolvedPath = resolvedPath.replace("{GlobalNetworkId}",
|
|
229
|
+
resolvedPath = resolvedPath.replace("{GlobalNetworkId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
230
230
|
}
|
|
231
231
|
else {
|
|
232
232
|
throw new Error("No value provided for input HTTP label: GlobalNetworkId.");
|
|
@@ -264,7 +264,7 @@ const serializeAws_restJson1CreateSiteCommand = async (input, context) => {
|
|
|
264
264
|
if (labelValue.length <= 0) {
|
|
265
265
|
throw new Error("Empty value provided for input HTTP label: GlobalNetworkId.");
|
|
266
266
|
}
|
|
267
|
-
resolvedPath = resolvedPath.replace("{GlobalNetworkId}",
|
|
267
|
+
resolvedPath = resolvedPath.replace("{GlobalNetworkId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
268
268
|
}
|
|
269
269
|
else {
|
|
270
270
|
throw new Error("No value provided for input HTTP label: GlobalNetworkId.");
|
|
@@ -298,7 +298,7 @@ const serializeAws_restJson1DeleteConnectionCommand = async (input, context) =>
|
|
|
298
298
|
if (labelValue.length <= 0) {
|
|
299
299
|
throw new Error("Empty value provided for input HTTP label: GlobalNetworkId.");
|
|
300
300
|
}
|
|
301
|
-
resolvedPath = resolvedPath.replace("{GlobalNetworkId}",
|
|
301
|
+
resolvedPath = resolvedPath.replace("{GlobalNetworkId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
302
302
|
}
|
|
303
303
|
else {
|
|
304
304
|
throw new Error("No value provided for input HTTP label: GlobalNetworkId.");
|
|
@@ -308,7 +308,7 @@ const serializeAws_restJson1DeleteConnectionCommand = async (input, context) =>
|
|
|
308
308
|
if (labelValue.length <= 0) {
|
|
309
309
|
throw new Error("Empty value provided for input HTTP label: ConnectionId.");
|
|
310
310
|
}
|
|
311
|
-
resolvedPath = resolvedPath.replace("{ConnectionId}",
|
|
311
|
+
resolvedPath = resolvedPath.replace("{ConnectionId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
312
312
|
}
|
|
313
313
|
else {
|
|
314
314
|
throw new Error("No value provided for input HTTP label: ConnectionId.");
|
|
@@ -335,7 +335,7 @@ const serializeAws_restJson1DeleteDeviceCommand = async (input, context) => {
|
|
|
335
335
|
if (labelValue.length <= 0) {
|
|
336
336
|
throw new Error("Empty value provided for input HTTP label: GlobalNetworkId.");
|
|
337
337
|
}
|
|
338
|
-
resolvedPath = resolvedPath.replace("{GlobalNetworkId}",
|
|
338
|
+
resolvedPath = resolvedPath.replace("{GlobalNetworkId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
339
339
|
}
|
|
340
340
|
else {
|
|
341
341
|
throw new Error("No value provided for input HTTP label: GlobalNetworkId.");
|
|
@@ -345,7 +345,7 @@ const serializeAws_restJson1DeleteDeviceCommand = async (input, context) => {
|
|
|
345
345
|
if (labelValue.length <= 0) {
|
|
346
346
|
throw new Error("Empty value provided for input HTTP label: DeviceId.");
|
|
347
347
|
}
|
|
348
|
-
resolvedPath = resolvedPath.replace("{DeviceId}",
|
|
348
|
+
resolvedPath = resolvedPath.replace("{DeviceId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
349
349
|
}
|
|
350
350
|
else {
|
|
351
351
|
throw new Error("No value provided for input HTTP label: DeviceId.");
|
|
@@ -371,7 +371,7 @@ const serializeAws_restJson1DeleteGlobalNetworkCommand = async (input, context)
|
|
|
371
371
|
if (labelValue.length <= 0) {
|
|
372
372
|
throw new Error("Empty value provided for input HTTP label: GlobalNetworkId.");
|
|
373
373
|
}
|
|
374
|
-
resolvedPath = resolvedPath.replace("{GlobalNetworkId}",
|
|
374
|
+
resolvedPath = resolvedPath.replace("{GlobalNetworkId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
375
375
|
}
|
|
376
376
|
else {
|
|
377
377
|
throw new Error("No value provided for input HTTP label: GlobalNetworkId.");
|
|
@@ -398,7 +398,7 @@ const serializeAws_restJson1DeleteLinkCommand = async (input, context) => {
|
|
|
398
398
|
if (labelValue.length <= 0) {
|
|
399
399
|
throw new Error("Empty value provided for input HTTP label: GlobalNetworkId.");
|
|
400
400
|
}
|
|
401
|
-
resolvedPath = resolvedPath.replace("{GlobalNetworkId}",
|
|
401
|
+
resolvedPath = resolvedPath.replace("{GlobalNetworkId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
402
402
|
}
|
|
403
403
|
else {
|
|
404
404
|
throw new Error("No value provided for input HTTP label: GlobalNetworkId.");
|
|
@@ -408,7 +408,7 @@ const serializeAws_restJson1DeleteLinkCommand = async (input, context) => {
|
|
|
408
408
|
if (labelValue.length <= 0) {
|
|
409
409
|
throw new Error("Empty value provided for input HTTP label: LinkId.");
|
|
410
410
|
}
|
|
411
|
-
resolvedPath = resolvedPath.replace("{LinkId}",
|
|
411
|
+
resolvedPath = resolvedPath.replace("{LinkId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
412
412
|
}
|
|
413
413
|
else {
|
|
414
414
|
throw new Error("No value provided for input HTTP label: LinkId.");
|
|
@@ -435,7 +435,7 @@ const serializeAws_restJson1DeleteSiteCommand = async (input, context) => {
|
|
|
435
435
|
if (labelValue.length <= 0) {
|
|
436
436
|
throw new Error("Empty value provided for input HTTP label: GlobalNetworkId.");
|
|
437
437
|
}
|
|
438
|
-
resolvedPath = resolvedPath.replace("{GlobalNetworkId}",
|
|
438
|
+
resolvedPath = resolvedPath.replace("{GlobalNetworkId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
439
439
|
}
|
|
440
440
|
else {
|
|
441
441
|
throw new Error("No value provided for input HTTP label: GlobalNetworkId.");
|
|
@@ -445,7 +445,7 @@ const serializeAws_restJson1DeleteSiteCommand = async (input, context) => {
|
|
|
445
445
|
if (labelValue.length <= 0) {
|
|
446
446
|
throw new Error("Empty value provided for input HTTP label: SiteId.");
|
|
447
447
|
}
|
|
448
|
-
resolvedPath = resolvedPath.replace("{SiteId}",
|
|
448
|
+
resolvedPath = resolvedPath.replace("{SiteId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
449
449
|
}
|
|
450
450
|
else {
|
|
451
451
|
throw new Error("No value provided for input HTTP label: SiteId.");
|
|
@@ -472,7 +472,7 @@ const serializeAws_restJson1DeregisterTransitGatewayCommand = async (input, cont
|
|
|
472
472
|
if (labelValue.length <= 0) {
|
|
473
473
|
throw new Error("Empty value provided for input HTTP label: GlobalNetworkId.");
|
|
474
474
|
}
|
|
475
|
-
resolvedPath = resolvedPath.replace("{GlobalNetworkId}",
|
|
475
|
+
resolvedPath = resolvedPath.replace("{GlobalNetworkId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
476
476
|
}
|
|
477
477
|
else {
|
|
478
478
|
throw new Error("No value provided for input HTTP label: GlobalNetworkId.");
|
|
@@ -482,7 +482,7 @@ const serializeAws_restJson1DeregisterTransitGatewayCommand = async (input, cont
|
|
|
482
482
|
if (labelValue.length <= 0) {
|
|
483
483
|
throw new Error("Empty value provided for input HTTP label: TransitGatewayArn.");
|
|
484
484
|
}
|
|
485
|
-
resolvedPath = resolvedPath.replace("{TransitGatewayArn}",
|
|
485
|
+
resolvedPath = resolvedPath.replace("{TransitGatewayArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
486
486
|
}
|
|
487
487
|
else {
|
|
488
488
|
throw new Error("No value provided for input HTTP label: TransitGatewayArn.");
|
|
@@ -533,7 +533,7 @@ const serializeAws_restJson1DisassociateCustomerGatewayCommand = async (input, c
|
|
|
533
533
|
if (labelValue.length <= 0) {
|
|
534
534
|
throw new Error("Empty value provided for input HTTP label: GlobalNetworkId.");
|
|
535
535
|
}
|
|
536
|
-
resolvedPath = resolvedPath.replace("{GlobalNetworkId}",
|
|
536
|
+
resolvedPath = resolvedPath.replace("{GlobalNetworkId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
537
537
|
}
|
|
538
538
|
else {
|
|
539
539
|
throw new Error("No value provided for input HTTP label: GlobalNetworkId.");
|
|
@@ -543,7 +543,7 @@ const serializeAws_restJson1DisassociateCustomerGatewayCommand = async (input, c
|
|
|
543
543
|
if (labelValue.length <= 0) {
|
|
544
544
|
throw new Error("Empty value provided for input HTTP label: CustomerGatewayArn.");
|
|
545
545
|
}
|
|
546
|
-
resolvedPath = resolvedPath.replace("{CustomerGatewayArn}",
|
|
546
|
+
resolvedPath = resolvedPath.replace("{CustomerGatewayArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
547
547
|
}
|
|
548
548
|
else {
|
|
549
549
|
throw new Error("No value provided for input HTTP label: CustomerGatewayArn.");
|
|
@@ -570,7 +570,7 @@ const serializeAws_restJson1DisassociateLinkCommand = async (input, context) =>
|
|
|
570
570
|
if (labelValue.length <= 0) {
|
|
571
571
|
throw new Error("Empty value provided for input HTTP label: GlobalNetworkId.");
|
|
572
572
|
}
|
|
573
|
-
resolvedPath = resolvedPath.replace("{GlobalNetworkId}",
|
|
573
|
+
resolvedPath = resolvedPath.replace("{GlobalNetworkId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
574
574
|
}
|
|
575
575
|
else {
|
|
576
576
|
throw new Error("No value provided for input HTTP label: GlobalNetworkId.");
|
|
@@ -602,7 +602,7 @@ const serializeAws_restJson1DisassociateTransitGatewayConnectPeerCommand = async
|
|
|
602
602
|
if (labelValue.length <= 0) {
|
|
603
603
|
throw new Error("Empty value provided for input HTTP label: GlobalNetworkId.");
|
|
604
604
|
}
|
|
605
|
-
resolvedPath = resolvedPath.replace("{GlobalNetworkId}",
|
|
605
|
+
resolvedPath = resolvedPath.replace("{GlobalNetworkId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
606
606
|
}
|
|
607
607
|
else {
|
|
608
608
|
throw new Error("No value provided for input HTTP label: GlobalNetworkId.");
|
|
@@ -612,7 +612,7 @@ const serializeAws_restJson1DisassociateTransitGatewayConnectPeerCommand = async
|
|
|
612
612
|
if (labelValue.length <= 0) {
|
|
613
613
|
throw new Error("Empty value provided for input HTTP label: TransitGatewayConnectPeerArn.");
|
|
614
614
|
}
|
|
615
|
-
resolvedPath = resolvedPath.replace("{TransitGatewayConnectPeerArn}",
|
|
615
|
+
resolvedPath = resolvedPath.replace("{TransitGatewayConnectPeerArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
616
616
|
}
|
|
617
617
|
else {
|
|
618
618
|
throw new Error("No value provided for input HTTP label: TransitGatewayConnectPeerArn.");
|
|
@@ -639,7 +639,7 @@ const serializeAws_restJson1GetConnectionsCommand = async (input, context) => {
|
|
|
639
639
|
if (labelValue.length <= 0) {
|
|
640
640
|
throw new Error("Empty value provided for input HTTP label: GlobalNetworkId.");
|
|
641
641
|
}
|
|
642
|
-
resolvedPath = resolvedPath.replace("{GlobalNetworkId}",
|
|
642
|
+
resolvedPath = resolvedPath.replace("{GlobalNetworkId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
643
643
|
}
|
|
644
644
|
else {
|
|
645
645
|
throw new Error("No value provided for input HTTP label: GlobalNetworkId.");
|
|
@@ -675,7 +675,7 @@ const serializeAws_restJson1GetCustomerGatewayAssociationsCommand = async (input
|
|
|
675
675
|
if (labelValue.length <= 0) {
|
|
676
676
|
throw new Error("Empty value provided for input HTTP label: GlobalNetworkId.");
|
|
677
677
|
}
|
|
678
|
-
resolvedPath = resolvedPath.replace("{GlobalNetworkId}",
|
|
678
|
+
resolvedPath = resolvedPath.replace("{GlobalNetworkId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
679
679
|
}
|
|
680
680
|
else {
|
|
681
681
|
throw new Error("No value provided for input HTTP label: GlobalNetworkId.");
|
|
@@ -710,7 +710,7 @@ const serializeAws_restJson1GetDevicesCommand = async (input, context) => {
|
|
|
710
710
|
if (labelValue.length <= 0) {
|
|
711
711
|
throw new Error("Empty value provided for input HTTP label: GlobalNetworkId.");
|
|
712
712
|
}
|
|
713
|
-
resolvedPath = resolvedPath.replace("{GlobalNetworkId}",
|
|
713
|
+
resolvedPath = resolvedPath.replace("{GlobalNetworkId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
714
714
|
}
|
|
715
715
|
else {
|
|
716
716
|
throw new Error("No value provided for input HTTP label: GlobalNetworkId.");
|
|
@@ -744,7 +744,7 @@ const serializeAws_restJson1GetLinkAssociationsCommand = async (input, context)
|
|
|
744
744
|
if (labelValue.length <= 0) {
|
|
745
745
|
throw new Error("Empty value provided for input HTTP label: GlobalNetworkId.");
|
|
746
746
|
}
|
|
747
|
-
resolvedPath = resolvedPath.replace("{GlobalNetworkId}",
|
|
747
|
+
resolvedPath = resolvedPath.replace("{GlobalNetworkId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
748
748
|
}
|
|
749
749
|
else {
|
|
750
750
|
throw new Error("No value provided for input HTTP label: GlobalNetworkId.");
|
|
@@ -777,7 +777,7 @@ const serializeAws_restJson1GetLinksCommand = async (input, context) => {
|
|
|
777
777
|
if (labelValue.length <= 0) {
|
|
778
778
|
throw new Error("Empty value provided for input HTTP label: GlobalNetworkId.");
|
|
779
779
|
}
|
|
780
|
-
resolvedPath = resolvedPath.replace("{GlobalNetworkId}",
|
|
780
|
+
resolvedPath = resolvedPath.replace("{GlobalNetworkId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
781
781
|
}
|
|
782
782
|
else {
|
|
783
783
|
throw new Error("No value provided for input HTTP label: GlobalNetworkId.");
|
|
@@ -812,7 +812,7 @@ const serializeAws_restJson1GetSitesCommand = async (input, context) => {
|
|
|
812
812
|
if (labelValue.length <= 0) {
|
|
813
813
|
throw new Error("Empty value provided for input HTTP label: GlobalNetworkId.");
|
|
814
814
|
}
|
|
815
|
-
resolvedPath = resolvedPath.replace("{GlobalNetworkId}",
|
|
815
|
+
resolvedPath = resolvedPath.replace("{GlobalNetworkId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
816
816
|
}
|
|
817
817
|
else {
|
|
818
818
|
throw new Error("No value provided for input HTTP label: GlobalNetworkId.");
|
|
@@ -845,7 +845,7 @@ const serializeAws_restJson1GetTransitGatewayConnectPeerAssociationsCommand = as
|
|
|
845
845
|
if (labelValue.length <= 0) {
|
|
846
846
|
throw new Error("Empty value provided for input HTTP label: GlobalNetworkId.");
|
|
847
847
|
}
|
|
848
|
-
resolvedPath = resolvedPath.replace("{GlobalNetworkId}",
|
|
848
|
+
resolvedPath = resolvedPath.replace("{GlobalNetworkId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
849
849
|
}
|
|
850
850
|
else {
|
|
851
851
|
throw new Error("No value provided for input HTTP label: GlobalNetworkId.");
|
|
@@ -880,7 +880,7 @@ const serializeAws_restJson1GetTransitGatewayRegistrationsCommand = async (input
|
|
|
880
880
|
if (labelValue.length <= 0) {
|
|
881
881
|
throw new Error("Empty value provided for input HTTP label: GlobalNetworkId.");
|
|
882
882
|
}
|
|
883
|
-
resolvedPath = resolvedPath.replace("{GlobalNetworkId}",
|
|
883
|
+
resolvedPath = resolvedPath.replace("{GlobalNetworkId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
884
884
|
}
|
|
885
885
|
else {
|
|
886
886
|
throw new Error("No value provided for input HTTP label: GlobalNetworkId.");
|
|
@@ -914,7 +914,7 @@ const serializeAws_restJson1ListTagsForResourceCommand = async (input, context)
|
|
|
914
914
|
if (labelValue.length <= 0) {
|
|
915
915
|
throw new Error("Empty value provided for input HTTP label: ResourceArn.");
|
|
916
916
|
}
|
|
917
|
-
resolvedPath = resolvedPath.replace("{ResourceArn}",
|
|
917
|
+
resolvedPath = resolvedPath.replace("{ResourceArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
918
918
|
}
|
|
919
919
|
else {
|
|
920
920
|
throw new Error("No value provided for input HTTP label: ResourceArn.");
|
|
@@ -943,7 +943,7 @@ const serializeAws_restJson1RegisterTransitGatewayCommand = async (input, contex
|
|
|
943
943
|
if (labelValue.length <= 0) {
|
|
944
944
|
throw new Error("Empty value provided for input HTTP label: GlobalNetworkId.");
|
|
945
945
|
}
|
|
946
|
-
resolvedPath = resolvedPath.replace("{GlobalNetworkId}",
|
|
946
|
+
resolvedPath = resolvedPath.replace("{GlobalNetworkId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
947
947
|
}
|
|
948
948
|
else {
|
|
949
949
|
throw new Error("No value provided for input HTTP label: GlobalNetworkId.");
|
|
@@ -975,7 +975,7 @@ const serializeAws_restJson1TagResourceCommand = async (input, context) => {
|
|
|
975
975
|
if (labelValue.length <= 0) {
|
|
976
976
|
throw new Error("Empty value provided for input HTTP label: ResourceArn.");
|
|
977
977
|
}
|
|
978
|
-
resolvedPath = resolvedPath.replace("{ResourceArn}",
|
|
978
|
+
resolvedPath = resolvedPath.replace("{ResourceArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
979
979
|
}
|
|
980
980
|
else {
|
|
981
981
|
throw new Error("No value provided for input HTTP label: ResourceArn.");
|
|
@@ -1005,7 +1005,7 @@ const serializeAws_restJson1UntagResourceCommand = async (input, context) => {
|
|
|
1005
1005
|
if (labelValue.length <= 0) {
|
|
1006
1006
|
throw new Error("Empty value provided for input HTTP label: ResourceArn.");
|
|
1007
1007
|
}
|
|
1008
|
-
resolvedPath = resolvedPath.replace("{ResourceArn}",
|
|
1008
|
+
resolvedPath = resolvedPath.replace("{ResourceArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
1009
1009
|
}
|
|
1010
1010
|
else {
|
|
1011
1011
|
throw new Error("No value provided for input HTTP label: ResourceArn.");
|
|
@@ -1038,7 +1038,7 @@ const serializeAws_restJson1UpdateConnectionCommand = async (input, context) =>
|
|
|
1038
1038
|
if (labelValue.length <= 0) {
|
|
1039
1039
|
throw new Error("Empty value provided for input HTTP label: GlobalNetworkId.");
|
|
1040
1040
|
}
|
|
1041
|
-
resolvedPath = resolvedPath.replace("{GlobalNetworkId}",
|
|
1041
|
+
resolvedPath = resolvedPath.replace("{GlobalNetworkId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
1042
1042
|
}
|
|
1043
1043
|
else {
|
|
1044
1044
|
throw new Error("No value provided for input HTTP label: GlobalNetworkId.");
|
|
@@ -1048,7 +1048,7 @@ const serializeAws_restJson1UpdateConnectionCommand = async (input, context) =>
|
|
|
1048
1048
|
if (labelValue.length <= 0) {
|
|
1049
1049
|
throw new Error("Empty value provided for input HTTP label: ConnectionId.");
|
|
1050
1050
|
}
|
|
1051
|
-
resolvedPath = resolvedPath.replace("{ConnectionId}",
|
|
1051
|
+
resolvedPath = resolvedPath.replace("{ConnectionId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
1052
1052
|
}
|
|
1053
1053
|
else {
|
|
1054
1054
|
throw new Error("No value provided for input HTTP label: ConnectionId.");
|
|
@@ -1083,7 +1083,7 @@ const serializeAws_restJson1UpdateDeviceCommand = async (input, context) => {
|
|
|
1083
1083
|
if (labelValue.length <= 0) {
|
|
1084
1084
|
throw new Error("Empty value provided for input HTTP label: GlobalNetworkId.");
|
|
1085
1085
|
}
|
|
1086
|
-
resolvedPath = resolvedPath.replace("{GlobalNetworkId}",
|
|
1086
|
+
resolvedPath = resolvedPath.replace("{GlobalNetworkId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
1087
1087
|
}
|
|
1088
1088
|
else {
|
|
1089
1089
|
throw new Error("No value provided for input HTTP label: GlobalNetworkId.");
|
|
@@ -1093,7 +1093,7 @@ const serializeAws_restJson1UpdateDeviceCommand = async (input, context) => {
|
|
|
1093
1093
|
if (labelValue.length <= 0) {
|
|
1094
1094
|
throw new Error("Empty value provided for input HTTP label: DeviceId.");
|
|
1095
1095
|
}
|
|
1096
|
-
resolvedPath = resolvedPath.replace("{DeviceId}",
|
|
1096
|
+
resolvedPath = resolvedPath.replace("{DeviceId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
1097
1097
|
}
|
|
1098
1098
|
else {
|
|
1099
1099
|
throw new Error("No value provided for input HTTP label: DeviceId.");
|
|
@@ -1133,7 +1133,7 @@ const serializeAws_restJson1UpdateGlobalNetworkCommand = async (input, context)
|
|
|
1133
1133
|
if (labelValue.length <= 0) {
|
|
1134
1134
|
throw new Error("Empty value provided for input HTTP label: GlobalNetworkId.");
|
|
1135
1135
|
}
|
|
1136
|
-
resolvedPath = resolvedPath.replace("{GlobalNetworkId}",
|
|
1136
|
+
resolvedPath = resolvedPath.replace("{GlobalNetworkId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
1137
1137
|
}
|
|
1138
1138
|
else {
|
|
1139
1139
|
throw new Error("No value provided for input HTTP label: GlobalNetworkId.");
|
|
@@ -1165,7 +1165,7 @@ const serializeAws_restJson1UpdateLinkCommand = async (input, context) => {
|
|
|
1165
1165
|
if (labelValue.length <= 0) {
|
|
1166
1166
|
throw new Error("Empty value provided for input HTTP label: GlobalNetworkId.");
|
|
1167
1167
|
}
|
|
1168
|
-
resolvedPath = resolvedPath.replace("{GlobalNetworkId}",
|
|
1168
|
+
resolvedPath = resolvedPath.replace("{GlobalNetworkId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
1169
1169
|
}
|
|
1170
1170
|
else {
|
|
1171
1171
|
throw new Error("No value provided for input HTTP label: GlobalNetworkId.");
|
|
@@ -1175,7 +1175,7 @@ const serializeAws_restJson1UpdateLinkCommand = async (input, context) => {
|
|
|
1175
1175
|
if (labelValue.length <= 0) {
|
|
1176
1176
|
throw new Error("Empty value provided for input HTTP label: LinkId.");
|
|
1177
1177
|
}
|
|
1178
|
-
resolvedPath = resolvedPath.replace("{LinkId}",
|
|
1178
|
+
resolvedPath = resolvedPath.replace("{LinkId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
1179
1179
|
}
|
|
1180
1180
|
else {
|
|
1181
1181
|
throw new Error("No value provided for input HTTP label: LinkId.");
|
|
@@ -1211,7 +1211,7 @@ const serializeAws_restJson1UpdateSiteCommand = async (input, context) => {
|
|
|
1211
1211
|
if (labelValue.length <= 0) {
|
|
1212
1212
|
throw new Error("Empty value provided for input HTTP label: GlobalNetworkId.");
|
|
1213
1213
|
}
|
|
1214
|
-
resolvedPath = resolvedPath.replace("{GlobalNetworkId}",
|
|
1214
|
+
resolvedPath = resolvedPath.replace("{GlobalNetworkId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
1215
1215
|
}
|
|
1216
1216
|
else {
|
|
1217
1217
|
throw new Error("No value provided for input HTTP label: GlobalNetworkId.");
|
|
@@ -1221,7 +1221,7 @@ const serializeAws_restJson1UpdateSiteCommand = async (input, context) => {
|
|
|
1221
1221
|
if (labelValue.length <= 0) {
|
|
1222
1222
|
throw new Error("Empty value provided for input HTTP label: SiteId.");
|
|
1223
1223
|
}
|
|
1224
|
-
resolvedPath = resolvedPath.replace("{SiteId}",
|
|
1224
|
+
resolvedPath = resolvedPath.replace("{SiteId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
1225
1225
|
}
|
|
1226
1226
|
else {
|
|
1227
1227
|
throw new Error("No value provided for input HTTP label: SiteId.");
|
|
@@ -1251,7 +1251,7 @@ const deserializeAws_restJson1AssociateCustomerGatewayCommand = async (output, c
|
|
|
1251
1251
|
$metadata: deserializeMetadata(output),
|
|
1252
1252
|
CustomerGatewayAssociation: undefined,
|
|
1253
1253
|
};
|
|
1254
|
-
const data =
|
|
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 =
|
|
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 =
|
|
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 =
|
|
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 =
|
|
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 =
|
|
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 =
|
|
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 =
|
|
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 =
|
|
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 =
|
|
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 =
|
|
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 =
|
|
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 =
|
|
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 =
|
|
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,12 +2532,12 @@ const deserializeAws_restJson1DescribeGlobalNetworksCommand = async (output, con
|
|
|
2532
2532
|
GlobalNetworks: undefined,
|
|
2533
2533
|
NextToken: undefined,
|
|
2534
2534
|
};
|
|
2535
|
-
const data =
|
|
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
|
}
|
|
2539
2539
|
if (data.NextToken !== undefined && data.NextToken !== null) {
|
|
2540
|
-
contents.NextToken =
|
|
2540
|
+
contents.NextToken = smithy_client_1.expectString(data.NextToken);
|
|
2541
2541
|
}
|
|
2542
2542
|
return Promise.resolve(contents);
|
|
2543
2543
|
};
|
|
@@ -2615,7 +2615,7 @@ const deserializeAws_restJson1DisassociateCustomerGatewayCommand = async (output
|
|
|
2615
2615
|
$metadata: deserializeMetadata(output),
|
|
2616
2616
|
CustomerGatewayAssociation: undefined,
|
|
2617
2617
|
};
|
|
2618
|
-
const data =
|
|
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 =
|
|
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 =
|
|
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,12 +2880,12 @@ const deserializeAws_restJson1GetConnectionsCommand = async (output, context) =>
|
|
|
2880
2880
|
Connections: undefined,
|
|
2881
2881
|
NextToken: undefined,
|
|
2882
2882
|
};
|
|
2883
|
-
const data =
|
|
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
|
}
|
|
2887
2887
|
if (data.NextToken !== undefined && data.NextToken !== null) {
|
|
2888
|
-
contents.NextToken =
|
|
2888
|
+
contents.NextToken = smithy_client_1.expectString(data.NextToken);
|
|
2889
2889
|
}
|
|
2890
2890
|
return Promise.resolve(contents);
|
|
2891
2891
|
};
|
|
@@ -2964,12 +2964,12 @@ const deserializeAws_restJson1GetCustomerGatewayAssociationsCommand = async (out
|
|
|
2964
2964
|
CustomerGatewayAssociations: undefined,
|
|
2965
2965
|
NextToken: undefined,
|
|
2966
2966
|
};
|
|
2967
|
-
const data =
|
|
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
|
}
|
|
2971
2971
|
if (data.NextToken !== undefined && data.NextToken !== null) {
|
|
2972
|
-
contents.NextToken =
|
|
2972
|
+
contents.NextToken = smithy_client_1.expectString(data.NextToken);
|
|
2973
2973
|
}
|
|
2974
2974
|
return Promise.resolve(contents);
|
|
2975
2975
|
};
|
|
@@ -3056,12 +3056,12 @@ const deserializeAws_restJson1GetDevicesCommand = async (output, context) => {
|
|
|
3056
3056
|
Devices: undefined,
|
|
3057
3057
|
NextToken: undefined,
|
|
3058
3058
|
};
|
|
3059
|
-
const data =
|
|
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
|
}
|
|
3063
3063
|
if (data.NextToken !== undefined && data.NextToken !== null) {
|
|
3064
|
-
contents.NextToken =
|
|
3064
|
+
contents.NextToken = smithy_client_1.expectString(data.NextToken);
|
|
3065
3065
|
}
|
|
3066
3066
|
return Promise.resolve(contents);
|
|
3067
3067
|
};
|
|
@@ -3140,12 +3140,12 @@ const deserializeAws_restJson1GetLinkAssociationsCommand = async (output, contex
|
|
|
3140
3140
|
LinkAssociations: undefined,
|
|
3141
3141
|
NextToken: undefined,
|
|
3142
3142
|
};
|
|
3143
|
-
const data =
|
|
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
|
}
|
|
3147
3147
|
if (data.NextToken !== undefined && data.NextToken !== null) {
|
|
3148
|
-
contents.NextToken =
|
|
3148
|
+
contents.NextToken = smithy_client_1.expectString(data.NextToken);
|
|
3149
3149
|
}
|
|
3150
3150
|
return Promise.resolve(contents);
|
|
3151
3151
|
};
|
|
@@ -3224,12 +3224,12 @@ const deserializeAws_restJson1GetLinksCommand = async (output, context) => {
|
|
|
3224
3224
|
Links: undefined,
|
|
3225
3225
|
NextToken: undefined,
|
|
3226
3226
|
};
|
|
3227
|
-
const data =
|
|
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
|
}
|
|
3231
3231
|
if (data.NextToken !== undefined && data.NextToken !== null) {
|
|
3232
|
-
contents.NextToken =
|
|
3232
|
+
contents.NextToken = smithy_client_1.expectString(data.NextToken);
|
|
3233
3233
|
}
|
|
3234
3234
|
return Promise.resolve(contents);
|
|
3235
3235
|
};
|
|
@@ -3308,9 +3308,9 @@ const deserializeAws_restJson1GetSitesCommand = async (output, context) => {
|
|
|
3308
3308
|
NextToken: undefined,
|
|
3309
3309
|
Sites: undefined,
|
|
3310
3310
|
};
|
|
3311
|
-
const data =
|
|
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
|
-
contents.NextToken =
|
|
3313
|
+
contents.NextToken = smithy_client_1.expectString(data.NextToken);
|
|
3314
3314
|
}
|
|
3315
3315
|
if (data.Sites !== undefined && data.Sites !== null) {
|
|
3316
3316
|
contents.Sites = deserializeAws_restJson1SiteList(data.Sites, context);
|
|
@@ -3392,9 +3392,9 @@ const deserializeAws_restJson1GetTransitGatewayConnectPeerAssociationsCommand =
|
|
|
3392
3392
|
NextToken: undefined,
|
|
3393
3393
|
TransitGatewayConnectPeerAssociations: undefined,
|
|
3394
3394
|
};
|
|
3395
|
-
const data =
|
|
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
|
-
contents.NextToken =
|
|
3397
|
+
contents.NextToken = smithy_client_1.expectString(data.NextToken);
|
|
3398
3398
|
}
|
|
3399
3399
|
if (data.TransitGatewayConnectPeerAssociations !== undefined && data.TransitGatewayConnectPeerAssociations !== null) {
|
|
3400
3400
|
contents.TransitGatewayConnectPeerAssociations = deserializeAws_restJson1TransitGatewayConnectPeerAssociationList(data.TransitGatewayConnectPeerAssociations, context);
|
|
@@ -3484,9 +3484,9 @@ const deserializeAws_restJson1GetTransitGatewayRegistrationsCommand = async (out
|
|
|
3484
3484
|
NextToken: undefined,
|
|
3485
3485
|
TransitGatewayRegistrations: undefined,
|
|
3486
3486
|
};
|
|
3487
|
-
const data =
|
|
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
|
-
contents.NextToken =
|
|
3489
|
+
contents.NextToken = smithy_client_1.expectString(data.NextToken);
|
|
3490
3490
|
}
|
|
3491
3491
|
if (data.TransitGatewayRegistrations !== undefined && data.TransitGatewayRegistrations !== null) {
|
|
3492
3492
|
contents.TransitGatewayRegistrations = deserializeAws_restJson1TransitGatewayRegistrationList(data.TransitGatewayRegistrations, context);
|
|
@@ -3567,7 +3567,7 @@ const deserializeAws_restJson1ListTagsForResourceCommand = async (output, contex
|
|
|
3567
3567
|
$metadata: deserializeMetadata(output),
|
|
3568
3568
|
TagList: undefined,
|
|
3569
3569
|
};
|
|
3570
|
-
const data =
|
|
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 =
|
|
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 =
|
|
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 =
|
|
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 =
|
|
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 =
|
|
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 =
|
|
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
|
}
|
|
@@ -4360,7 +4360,7 @@ const deserializeAws_restJson1AccessDeniedExceptionResponse = async (parsedOutpu
|
|
|
4360
4360
|
};
|
|
4361
4361
|
const data = parsedOutput.body;
|
|
4362
4362
|
if (data.Message !== undefined && data.Message !== null) {
|
|
4363
|
-
contents.Message =
|
|
4363
|
+
contents.Message = smithy_client_1.expectString(data.Message);
|
|
4364
4364
|
}
|
|
4365
4365
|
return contents;
|
|
4366
4366
|
};
|
|
@@ -4375,13 +4375,13 @@ const deserializeAws_restJson1ConflictExceptionResponse = async (parsedOutput, c
|
|
|
4375
4375
|
};
|
|
4376
4376
|
const data = parsedOutput.body;
|
|
4377
4377
|
if (data.Message !== undefined && data.Message !== null) {
|
|
4378
|
-
contents.Message =
|
|
4378
|
+
contents.Message = smithy_client_1.expectString(data.Message);
|
|
4379
4379
|
}
|
|
4380
4380
|
if (data.ResourceId !== undefined && data.ResourceId !== null) {
|
|
4381
|
-
contents.ResourceId =
|
|
4381
|
+
contents.ResourceId = smithy_client_1.expectString(data.ResourceId);
|
|
4382
4382
|
}
|
|
4383
4383
|
if (data.ResourceType !== undefined && data.ResourceType !== null) {
|
|
4384
|
-
contents.ResourceType =
|
|
4384
|
+
contents.ResourceType = smithy_client_1.expectString(data.ResourceType);
|
|
4385
4385
|
}
|
|
4386
4386
|
return contents;
|
|
4387
4387
|
};
|
|
@@ -4394,11 +4394,11 @@ const deserializeAws_restJson1InternalServerExceptionResponse = async (parsedOut
|
|
|
4394
4394
|
RetryAfterSeconds: undefined,
|
|
4395
4395
|
};
|
|
4396
4396
|
if (parsedOutput.headers["retry-after"] !== undefined) {
|
|
4397
|
-
contents.RetryAfterSeconds =
|
|
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) {
|
|
4401
|
-
contents.Message =
|
|
4401
|
+
contents.Message = smithy_client_1.expectString(data.Message);
|
|
4402
4402
|
}
|
|
4403
4403
|
return contents;
|
|
4404
4404
|
};
|
|
@@ -4413,13 +4413,13 @@ const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedO
|
|
|
4413
4413
|
};
|
|
4414
4414
|
const data = parsedOutput.body;
|
|
4415
4415
|
if (data.Message !== undefined && data.Message !== null) {
|
|
4416
|
-
contents.Message =
|
|
4416
|
+
contents.Message = smithy_client_1.expectString(data.Message);
|
|
4417
4417
|
}
|
|
4418
4418
|
if (data.ResourceId !== undefined && data.ResourceId !== null) {
|
|
4419
|
-
contents.ResourceId =
|
|
4419
|
+
contents.ResourceId = smithy_client_1.expectString(data.ResourceId);
|
|
4420
4420
|
}
|
|
4421
4421
|
if (data.ResourceType !== undefined && data.ResourceType !== null) {
|
|
4422
|
-
contents.ResourceType =
|
|
4422
|
+
contents.ResourceType = smithy_client_1.expectString(data.ResourceType);
|
|
4423
4423
|
}
|
|
4424
4424
|
return contents;
|
|
4425
4425
|
};
|
|
@@ -4436,19 +4436,19 @@ const deserializeAws_restJson1ServiceQuotaExceededExceptionResponse = async (par
|
|
|
4436
4436
|
};
|
|
4437
4437
|
const data = parsedOutput.body;
|
|
4438
4438
|
if (data.LimitCode !== undefined && data.LimitCode !== null) {
|
|
4439
|
-
contents.LimitCode =
|
|
4439
|
+
contents.LimitCode = smithy_client_1.expectString(data.LimitCode);
|
|
4440
4440
|
}
|
|
4441
4441
|
if (data.Message !== undefined && data.Message !== null) {
|
|
4442
|
-
contents.Message =
|
|
4442
|
+
contents.Message = smithy_client_1.expectString(data.Message);
|
|
4443
4443
|
}
|
|
4444
4444
|
if (data.ResourceId !== undefined && data.ResourceId !== null) {
|
|
4445
|
-
contents.ResourceId =
|
|
4445
|
+
contents.ResourceId = smithy_client_1.expectString(data.ResourceId);
|
|
4446
4446
|
}
|
|
4447
4447
|
if (data.ResourceType !== undefined && data.ResourceType !== null) {
|
|
4448
|
-
contents.ResourceType =
|
|
4448
|
+
contents.ResourceType = smithy_client_1.expectString(data.ResourceType);
|
|
4449
4449
|
}
|
|
4450
4450
|
if (data.ServiceCode !== undefined && data.ServiceCode !== null) {
|
|
4451
|
-
contents.ServiceCode =
|
|
4451
|
+
contents.ServiceCode = smithy_client_1.expectString(data.ServiceCode);
|
|
4452
4452
|
}
|
|
4453
4453
|
return contents;
|
|
4454
4454
|
};
|
|
@@ -4461,11 +4461,11 @@ const deserializeAws_restJson1ThrottlingExceptionResponse = async (parsedOutput,
|
|
|
4461
4461
|
RetryAfterSeconds: undefined,
|
|
4462
4462
|
};
|
|
4463
4463
|
if (parsedOutput.headers["retry-after"] !== undefined) {
|
|
4464
|
-
contents.RetryAfterSeconds =
|
|
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) {
|
|
4468
|
-
contents.Message =
|
|
4468
|
+
contents.Message = smithy_client_1.expectString(data.Message);
|
|
4469
4469
|
}
|
|
4470
4470
|
return contents;
|
|
4471
4471
|
};
|
|
@@ -4483,10 +4483,10 @@ const deserializeAws_restJson1ValidationExceptionResponse = async (parsedOutput,
|
|
|
4483
4483
|
contents.Fields = deserializeAws_restJson1ValidationExceptionFieldList(data.Fields, context);
|
|
4484
4484
|
}
|
|
4485
4485
|
if (data.Message !== undefined && data.Message !== null) {
|
|
4486
|
-
contents.Message =
|
|
4486
|
+
contents.Message = smithy_client_1.expectString(data.Message);
|
|
4487
4487
|
}
|
|
4488
4488
|
if (data.Reason !== undefined && data.Reason !== null) {
|
|
4489
|
-
contents.Reason =
|
|
4489
|
+
contents.Reason = smithy_client_1.expectString(data.Reason);
|
|
4490
4490
|
}
|
|
4491
4491
|
return contents;
|
|
4492
4492
|
};
|
|
@@ -4527,30 +4527,30 @@ const serializeAws_restJson1TagList = (input, context) => {
|
|
|
4527
4527
|
};
|
|
4528
4528
|
const deserializeAws_restJson1AWSLocation = (output, context) => {
|
|
4529
4529
|
return {
|
|
4530
|
-
SubnetArn:
|
|
4531
|
-
Zone:
|
|
4530
|
+
SubnetArn: smithy_client_1.expectString(output.SubnetArn),
|
|
4531
|
+
Zone: smithy_client_1.expectString(output.Zone),
|
|
4532
4532
|
};
|
|
4533
4533
|
};
|
|
4534
4534
|
const deserializeAws_restJson1Bandwidth = (output, context) => {
|
|
4535
4535
|
return {
|
|
4536
|
-
DownloadSpeed:
|
|
4537
|
-
UploadSpeed:
|
|
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) => {
|
|
4541
4541
|
return {
|
|
4542
|
-
ConnectedDeviceId:
|
|
4543
|
-
ConnectedLinkId:
|
|
4544
|
-
ConnectionArn:
|
|
4545
|
-
ConnectionId:
|
|
4542
|
+
ConnectedDeviceId: smithy_client_1.expectString(output.ConnectedDeviceId),
|
|
4543
|
+
ConnectedLinkId: smithy_client_1.expectString(output.ConnectedLinkId),
|
|
4544
|
+
ConnectionArn: smithy_client_1.expectString(output.ConnectionArn),
|
|
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
|
-
Description:
|
|
4550
|
-
DeviceId:
|
|
4551
|
-
GlobalNetworkId:
|
|
4552
|
-
LinkId:
|
|
4553
|
-
State:
|
|
4549
|
+
Description: smithy_client_1.expectString(output.Description),
|
|
4550
|
+
DeviceId: smithy_client_1.expectString(output.DeviceId),
|
|
4551
|
+
GlobalNetworkId: smithy_client_1.expectString(output.GlobalNetworkId),
|
|
4552
|
+
LinkId: smithy_client_1.expectString(output.LinkId),
|
|
4553
|
+
State: smithy_client_1.expectString(output.State),
|
|
4554
4554
|
Tags: output.Tags !== undefined && output.Tags !== null
|
|
4555
4555
|
? deserializeAws_restJson1TagList(output.Tags, context)
|
|
4556
4556
|
: undefined,
|
|
@@ -4568,11 +4568,11 @@ const deserializeAws_restJson1ConnectionList = (output, context) => {
|
|
|
4568
4568
|
};
|
|
4569
4569
|
const deserializeAws_restJson1CustomerGatewayAssociation = (output, context) => {
|
|
4570
4570
|
return {
|
|
4571
|
-
CustomerGatewayArn:
|
|
4572
|
-
DeviceId:
|
|
4573
|
-
GlobalNetworkId:
|
|
4574
|
-
LinkId:
|
|
4575
|
-
State:
|
|
4571
|
+
CustomerGatewayArn: smithy_client_1.expectString(output.CustomerGatewayArn),
|
|
4572
|
+
DeviceId: smithy_client_1.expectString(output.DeviceId),
|
|
4573
|
+
GlobalNetworkId: smithy_client_1.expectString(output.GlobalNetworkId),
|
|
4574
|
+
LinkId: smithy_client_1.expectString(output.LinkId),
|
|
4575
|
+
State: smithy_client_1.expectString(output.State),
|
|
4576
4576
|
};
|
|
4577
4577
|
};
|
|
4578
4578
|
const deserializeAws_restJson1CustomerGatewayAssociationList = (output, context) => {
|
|
@@ -4591,24 +4591,24 @@ 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
|
-
Description:
|
|
4597
|
-
DeviceArn:
|
|
4598
|
-
DeviceId:
|
|
4599
|
-
GlobalNetworkId:
|
|
4596
|
+
Description: smithy_client_1.expectString(output.Description),
|
|
4597
|
+
DeviceArn: smithy_client_1.expectString(output.DeviceArn),
|
|
4598
|
+
DeviceId: smithy_client_1.expectString(output.DeviceId),
|
|
4599
|
+
GlobalNetworkId: smithy_client_1.expectString(output.GlobalNetworkId),
|
|
4600
4600
|
Location: output.Location !== undefined && output.Location !== null
|
|
4601
4601
|
? deserializeAws_restJson1Location(output.Location, context)
|
|
4602
4602
|
: undefined,
|
|
4603
|
-
Model:
|
|
4604
|
-
SerialNumber:
|
|
4605
|
-
SiteId:
|
|
4606
|
-
State:
|
|
4603
|
+
Model: smithy_client_1.expectString(output.Model),
|
|
4604
|
+
SerialNumber: smithy_client_1.expectString(output.SerialNumber),
|
|
4605
|
+
SiteId: smithy_client_1.expectString(output.SiteId),
|
|
4606
|
+
State: smithy_client_1.expectString(output.State),
|
|
4607
4607
|
Tags: output.Tags !== undefined && output.Tags !== null
|
|
4608
4608
|
? deserializeAws_restJson1TagList(output.Tags, context)
|
|
4609
4609
|
: undefined,
|
|
4610
|
-
Type:
|
|
4611
|
-
Vendor:
|
|
4610
|
+
Type: smithy_client_1.expectString(output.Type),
|
|
4611
|
+
Vendor: smithy_client_1.expectString(output.Vendor),
|
|
4612
4612
|
};
|
|
4613
4613
|
};
|
|
4614
4614
|
const deserializeAws_restJson1DeviceList = (output, context) => {
|
|
@@ -4624,12 +4624,12 @@ 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
|
-
Description:
|
|
4630
|
-
GlobalNetworkArn:
|
|
4631
|
-
GlobalNetworkId:
|
|
4632
|
-
State:
|
|
4629
|
+
Description: smithy_client_1.expectString(output.Description),
|
|
4630
|
+
GlobalNetworkArn: smithy_client_1.expectString(output.GlobalNetworkArn),
|
|
4631
|
+
GlobalNetworkId: smithy_client_1.expectString(output.GlobalNetworkId),
|
|
4632
|
+
State: smithy_client_1.expectString(output.State),
|
|
4633
4633
|
Tags: output.Tags !== undefined && output.Tags !== null
|
|
4634
4634
|
? deserializeAws_restJson1TagList(output.Tags, context)
|
|
4635
4635
|
: undefined,
|
|
@@ -4651,27 +4651,27 @@ 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
|
-
Description:
|
|
4657
|
-
GlobalNetworkId:
|
|
4658
|
-
LinkArn:
|
|
4659
|
-
LinkId:
|
|
4660
|
-
Provider:
|
|
4661
|
-
SiteId:
|
|
4662
|
-
State:
|
|
4656
|
+
Description: smithy_client_1.expectString(output.Description),
|
|
4657
|
+
GlobalNetworkId: smithy_client_1.expectString(output.GlobalNetworkId),
|
|
4658
|
+
LinkArn: smithy_client_1.expectString(output.LinkArn),
|
|
4659
|
+
LinkId: smithy_client_1.expectString(output.LinkId),
|
|
4660
|
+
Provider: smithy_client_1.expectString(output.Provider),
|
|
4661
|
+
SiteId: smithy_client_1.expectString(output.SiteId),
|
|
4662
|
+
State: smithy_client_1.expectString(output.State),
|
|
4663
4663
|
Tags: output.Tags !== undefined && output.Tags !== null
|
|
4664
4664
|
? deserializeAws_restJson1TagList(output.Tags, context)
|
|
4665
4665
|
: undefined,
|
|
4666
|
-
Type:
|
|
4666
|
+
Type: smithy_client_1.expectString(output.Type),
|
|
4667
4667
|
};
|
|
4668
4668
|
};
|
|
4669
4669
|
const deserializeAws_restJson1LinkAssociation = (output, context) => {
|
|
4670
4670
|
return {
|
|
4671
|
-
DeviceId:
|
|
4672
|
-
GlobalNetworkId:
|
|
4673
|
-
LinkAssociationState:
|
|
4674
|
-
LinkId:
|
|
4671
|
+
DeviceId: smithy_client_1.expectString(output.DeviceId),
|
|
4672
|
+
GlobalNetworkId: smithy_client_1.expectString(output.GlobalNetworkId),
|
|
4673
|
+
LinkAssociationState: smithy_client_1.expectString(output.LinkAssociationState),
|
|
4674
|
+
LinkId: smithy_client_1.expectString(output.LinkId),
|
|
4675
4675
|
};
|
|
4676
4676
|
};
|
|
4677
4677
|
const deserializeAws_restJson1LinkAssociationList = (output, context) => {
|
|
@@ -4696,24 +4696,24 @@ const deserializeAws_restJson1LinkList = (output, context) => {
|
|
|
4696
4696
|
};
|
|
4697
4697
|
const deserializeAws_restJson1Location = (output, context) => {
|
|
4698
4698
|
return {
|
|
4699
|
-
Address:
|
|
4700
|
-
Latitude:
|
|
4701
|
-
Longitude:
|
|
4699
|
+
Address: smithy_client_1.expectString(output.Address),
|
|
4700
|
+
Latitude: smithy_client_1.expectString(output.Latitude),
|
|
4701
|
+
Longitude: smithy_client_1.expectString(output.Longitude),
|
|
4702
4702
|
};
|
|
4703
4703
|
};
|
|
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
|
-
Description:
|
|
4710
|
-
GlobalNetworkId:
|
|
4709
|
+
Description: smithy_client_1.expectString(output.Description),
|
|
4710
|
+
GlobalNetworkId: smithy_client_1.expectString(output.GlobalNetworkId),
|
|
4711
4711
|
Location: output.Location !== undefined && output.Location !== null
|
|
4712
4712
|
? deserializeAws_restJson1Location(output.Location, context)
|
|
4713
4713
|
: undefined,
|
|
4714
|
-
SiteArn:
|
|
4715
|
-
SiteId:
|
|
4716
|
-
State:
|
|
4714
|
+
SiteArn: smithy_client_1.expectString(output.SiteArn),
|
|
4715
|
+
SiteId: smithy_client_1.expectString(output.SiteId),
|
|
4716
|
+
State: smithy_client_1.expectString(output.State),
|
|
4717
4717
|
Tags: output.Tags !== undefined && output.Tags !== null
|
|
4718
4718
|
? deserializeAws_restJson1TagList(output.Tags, context)
|
|
4719
4719
|
: undefined,
|
|
@@ -4731,8 +4731,8 @@ const deserializeAws_restJson1SiteList = (output, context) => {
|
|
|
4731
4731
|
};
|
|
4732
4732
|
const deserializeAws_restJson1Tag = (output, context) => {
|
|
4733
4733
|
return {
|
|
4734
|
-
Key:
|
|
4735
|
-
Value:
|
|
4734
|
+
Key: smithy_client_1.expectString(output.Key),
|
|
4735
|
+
Value: smithy_client_1.expectString(output.Value),
|
|
4736
4736
|
};
|
|
4737
4737
|
};
|
|
4738
4738
|
const deserializeAws_restJson1TagList = (output, context) => {
|
|
@@ -4747,11 +4747,11 @@ const deserializeAws_restJson1TagList = (output, context) => {
|
|
|
4747
4747
|
};
|
|
4748
4748
|
const deserializeAws_restJson1TransitGatewayConnectPeerAssociation = (output, context) => {
|
|
4749
4749
|
return {
|
|
4750
|
-
DeviceId:
|
|
4751
|
-
GlobalNetworkId:
|
|
4752
|
-
LinkId:
|
|
4753
|
-
State:
|
|
4754
|
-
TransitGatewayConnectPeerArn:
|
|
4750
|
+
DeviceId: smithy_client_1.expectString(output.DeviceId),
|
|
4751
|
+
GlobalNetworkId: smithy_client_1.expectString(output.GlobalNetworkId),
|
|
4752
|
+
LinkId: smithy_client_1.expectString(output.LinkId),
|
|
4753
|
+
State: smithy_client_1.expectString(output.State),
|
|
4754
|
+
TransitGatewayConnectPeerArn: smithy_client_1.expectString(output.TransitGatewayConnectPeerArn),
|
|
4755
4755
|
};
|
|
4756
4756
|
};
|
|
4757
4757
|
const deserializeAws_restJson1TransitGatewayConnectPeerAssociationList = (output, context) => {
|
|
@@ -4766,11 +4766,11 @@ const deserializeAws_restJson1TransitGatewayConnectPeerAssociationList = (output
|
|
|
4766
4766
|
};
|
|
4767
4767
|
const deserializeAws_restJson1TransitGatewayRegistration = (output, context) => {
|
|
4768
4768
|
return {
|
|
4769
|
-
GlobalNetworkId:
|
|
4769
|
+
GlobalNetworkId: smithy_client_1.expectString(output.GlobalNetworkId),
|
|
4770
4770
|
State: output.State !== undefined && output.State !== null
|
|
4771
4771
|
? deserializeAws_restJson1TransitGatewayRegistrationStateReason(output.State, context)
|
|
4772
4772
|
: undefined,
|
|
4773
|
-
TransitGatewayArn:
|
|
4773
|
+
TransitGatewayArn: smithy_client_1.expectString(output.TransitGatewayArn),
|
|
4774
4774
|
};
|
|
4775
4775
|
};
|
|
4776
4776
|
const deserializeAws_restJson1TransitGatewayRegistrationList = (output, context) => {
|
|
@@ -4785,14 +4785,14 @@ const deserializeAws_restJson1TransitGatewayRegistrationList = (output, context)
|
|
|
4785
4785
|
};
|
|
4786
4786
|
const deserializeAws_restJson1TransitGatewayRegistrationStateReason = (output, context) => {
|
|
4787
4787
|
return {
|
|
4788
|
-
Code:
|
|
4789
|
-
Message:
|
|
4788
|
+
Code: smithy_client_1.expectString(output.Code),
|
|
4789
|
+
Message: smithy_client_1.expectString(output.Message),
|
|
4790
4790
|
};
|
|
4791
4791
|
};
|
|
4792
4792
|
const deserializeAws_restJson1ValidationExceptionField = (output, context) => {
|
|
4793
4793
|
return {
|
|
4794
|
-
Message:
|
|
4795
|
-
Name:
|
|
4794
|
+
Message: smithy_client_1.expectString(output.Message),
|
|
4795
|
+
Name: smithy_client_1.expectString(output.Name),
|
|
4796
4796
|
};
|
|
4797
4797
|
};
|
|
4798
4798
|
const deserializeAws_restJson1ValidationExceptionFieldList = (output, context) => {
|