@aws-sdk/client-networkmanager 3.118.0 → 3.127.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 +27 -0
- package/dist-cjs/protocols/Aws_restJson1.js +582 -650
- package/dist-es/protocols/Aws_restJson1.js +511 -579
- package/package.json +26 -26
|
@@ -54,9 +54,9 @@ const serializeAws_restJson1AssociateConnectPeerCommand = async (input, context)
|
|
|
54
54
|
}
|
|
55
55
|
let body;
|
|
56
56
|
body = JSON.stringify({
|
|
57
|
-
...(input.ConnectPeerId
|
|
58
|
-
...(input.DeviceId
|
|
59
|
-
...(input.LinkId
|
|
57
|
+
...(input.ConnectPeerId != null && { ConnectPeerId: input.ConnectPeerId }),
|
|
58
|
+
...(input.DeviceId != null && { DeviceId: input.DeviceId }),
|
|
59
|
+
...(input.LinkId != null && { LinkId: input.LinkId }),
|
|
60
60
|
});
|
|
61
61
|
return new protocol_http_1.HttpRequest({
|
|
62
62
|
protocol,
|
|
@@ -88,10 +88,9 @@ const serializeAws_restJson1AssociateCustomerGatewayCommand = async (input, cont
|
|
|
88
88
|
}
|
|
89
89
|
let body;
|
|
90
90
|
body = JSON.stringify({
|
|
91
|
-
...(input.CustomerGatewayArn
|
|
92
|
-
|
|
93
|
-
...(input.
|
|
94
|
-
...(input.LinkId !== undefined && input.LinkId !== null && { LinkId: input.LinkId }),
|
|
91
|
+
...(input.CustomerGatewayArn != null && { CustomerGatewayArn: input.CustomerGatewayArn }),
|
|
92
|
+
...(input.DeviceId != null && { DeviceId: input.DeviceId }),
|
|
93
|
+
...(input.LinkId != null && { LinkId: input.LinkId }),
|
|
95
94
|
});
|
|
96
95
|
return new protocol_http_1.HttpRequest({
|
|
97
96
|
protocol,
|
|
@@ -123,8 +122,8 @@ const serializeAws_restJson1AssociateLinkCommand = async (input, context) => {
|
|
|
123
122
|
}
|
|
124
123
|
let body;
|
|
125
124
|
body = JSON.stringify({
|
|
126
|
-
...(input.DeviceId
|
|
127
|
-
...(input.LinkId
|
|
125
|
+
...(input.DeviceId != null && { DeviceId: input.DeviceId }),
|
|
126
|
+
...(input.LinkId != null && { LinkId: input.LinkId }),
|
|
128
127
|
});
|
|
129
128
|
return new protocol_http_1.HttpRequest({
|
|
130
129
|
protocol,
|
|
@@ -156,10 +155,9 @@ const serializeAws_restJson1AssociateTransitGatewayConnectPeerCommand = async (i
|
|
|
156
155
|
}
|
|
157
156
|
let body;
|
|
158
157
|
body = JSON.stringify({
|
|
159
|
-
...(input.DeviceId
|
|
160
|
-
...(input.LinkId
|
|
161
|
-
...(input.TransitGatewayConnectPeerArn
|
|
162
|
-
input.TransitGatewayConnectPeerArn !== null && {
|
|
158
|
+
...(input.DeviceId != null && { DeviceId: input.DeviceId }),
|
|
159
|
+
...(input.LinkId != null && { LinkId: input.LinkId }),
|
|
160
|
+
...(input.TransitGatewayConnectPeerArn != null && {
|
|
163
161
|
TransitGatewayConnectPeerArn: input.TransitGatewayConnectPeerArn,
|
|
164
162
|
}),
|
|
165
163
|
});
|
|
@@ -184,14 +182,11 @@ const serializeAws_restJson1CreateConnectAttachmentCommand = async (input, conte
|
|
|
184
182
|
let body;
|
|
185
183
|
body = JSON.stringify({
|
|
186
184
|
ClientToken: (_a = input.ClientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
187
|
-
...(input.CoreNetworkId
|
|
188
|
-
...(input.EdgeLocation
|
|
189
|
-
...(input.Options
|
|
190
|
-
|
|
191
|
-
...(input.
|
|
192
|
-
input.Tags !== null && { Tags: serializeAws_restJson1TagList(input.Tags, context) }),
|
|
193
|
-
...(input.TransportAttachmentId !== undefined &&
|
|
194
|
-
input.TransportAttachmentId !== null && { TransportAttachmentId: input.TransportAttachmentId }),
|
|
185
|
+
...(input.CoreNetworkId != null && { CoreNetworkId: input.CoreNetworkId }),
|
|
186
|
+
...(input.EdgeLocation != null && { EdgeLocation: input.EdgeLocation }),
|
|
187
|
+
...(input.Options != null && { Options: serializeAws_restJson1ConnectAttachmentOptions(input.Options, context) }),
|
|
188
|
+
...(input.Tags != null && { Tags: serializeAws_restJson1TagList(input.Tags, context) }),
|
|
189
|
+
...(input.TransportAttachmentId != null && { TransportAttachmentId: input.TransportAttachmentId }),
|
|
195
190
|
});
|
|
196
191
|
return new protocol_http_1.HttpRequest({
|
|
197
192
|
protocol,
|
|
@@ -223,15 +218,12 @@ const serializeAws_restJson1CreateConnectionCommand = async (input, context) =>
|
|
|
223
218
|
}
|
|
224
219
|
let body;
|
|
225
220
|
body = JSON.stringify({
|
|
226
|
-
...(input.ConnectedDeviceId
|
|
227
|
-
|
|
228
|
-
...(input.
|
|
229
|
-
|
|
230
|
-
...(input.
|
|
231
|
-
...(input.
|
|
232
|
-
...(input.LinkId !== undefined && input.LinkId !== null && { LinkId: input.LinkId }),
|
|
233
|
-
...(input.Tags !== undefined &&
|
|
234
|
-
input.Tags !== null && { Tags: serializeAws_restJson1TagList(input.Tags, context) }),
|
|
221
|
+
...(input.ConnectedDeviceId != null && { ConnectedDeviceId: input.ConnectedDeviceId }),
|
|
222
|
+
...(input.ConnectedLinkId != null && { ConnectedLinkId: input.ConnectedLinkId }),
|
|
223
|
+
...(input.Description != null && { Description: input.Description }),
|
|
224
|
+
...(input.DeviceId != null && { DeviceId: input.DeviceId }),
|
|
225
|
+
...(input.LinkId != null && { LinkId: input.LinkId }),
|
|
226
|
+
...(input.Tags != null && { Tags: serializeAws_restJson1TagList(input.Tags, context) }),
|
|
235
227
|
});
|
|
236
228
|
return new protocol_http_1.HttpRequest({
|
|
237
229
|
protocol,
|
|
@@ -253,20 +245,15 @@ const serializeAws_restJson1CreateConnectPeerCommand = async (input, context) =>
|
|
|
253
245
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/connect-peers";
|
|
254
246
|
let body;
|
|
255
247
|
body = JSON.stringify({
|
|
256
|
-
...(input.BgpOptions
|
|
257
|
-
input.BgpOptions !== null && { BgpOptions: serializeAws_restJson1BgpOptions(input.BgpOptions, context) }),
|
|
248
|
+
...(input.BgpOptions != null && { BgpOptions: serializeAws_restJson1BgpOptions(input.BgpOptions, context) }),
|
|
258
249
|
ClientToken: (_a = input.ClientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
259
|
-
...(input.ConnectAttachmentId
|
|
260
|
-
|
|
261
|
-
...(input.
|
|
262
|
-
input.CoreNetworkAddress !== null && { CoreNetworkAddress: input.CoreNetworkAddress }),
|
|
263
|
-
...(input.InsideCidrBlocks !== undefined &&
|
|
264
|
-
input.InsideCidrBlocks !== null && {
|
|
250
|
+
...(input.ConnectAttachmentId != null && { ConnectAttachmentId: input.ConnectAttachmentId }),
|
|
251
|
+
...(input.CoreNetworkAddress != null && { CoreNetworkAddress: input.CoreNetworkAddress }),
|
|
252
|
+
...(input.InsideCidrBlocks != null && {
|
|
265
253
|
InsideCidrBlocks: serializeAws_restJson1ConstrainedStringList(input.InsideCidrBlocks, context),
|
|
266
254
|
}),
|
|
267
|
-
...(input.PeerAddress
|
|
268
|
-
...(input.Tags
|
|
269
|
-
input.Tags !== null && { Tags: serializeAws_restJson1TagList(input.Tags, context) }),
|
|
255
|
+
...(input.PeerAddress != null && { PeerAddress: input.PeerAddress }),
|
|
256
|
+
...(input.Tags != null && { Tags: serializeAws_restJson1TagList(input.Tags, context) }),
|
|
270
257
|
});
|
|
271
258
|
return new protocol_http_1.HttpRequest({
|
|
272
259
|
protocol,
|
|
@@ -289,13 +276,10 @@ const serializeAws_restJson1CreateCoreNetworkCommand = async (input, context) =>
|
|
|
289
276
|
let body;
|
|
290
277
|
body = JSON.stringify({
|
|
291
278
|
ClientToken: (_a = input.ClientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
292
|
-
...(input.Description
|
|
293
|
-
...(input.GlobalNetworkId
|
|
294
|
-
|
|
295
|
-
...(input.
|
|
296
|
-
input.PolicyDocument !== null && { PolicyDocument: input.PolicyDocument }),
|
|
297
|
-
...(input.Tags !== undefined &&
|
|
298
|
-
input.Tags !== null && { Tags: serializeAws_restJson1TagList(input.Tags, context) }),
|
|
279
|
+
...(input.Description != null && { Description: input.Description }),
|
|
280
|
+
...(input.GlobalNetworkId != null && { GlobalNetworkId: input.GlobalNetworkId }),
|
|
281
|
+
...(input.PolicyDocument != null && { PolicyDocument: input.PolicyDocument }),
|
|
282
|
+
...(input.Tags != null && { Tags: serializeAws_restJson1TagList(input.Tags, context) }),
|
|
299
283
|
});
|
|
300
284
|
return new protocol_http_1.HttpRequest({
|
|
301
285
|
protocol,
|
|
@@ -327,18 +311,15 @@ const serializeAws_restJson1CreateDeviceCommand = async (input, context) => {
|
|
|
327
311
|
}
|
|
328
312
|
let body;
|
|
329
313
|
body = JSON.stringify({
|
|
330
|
-
...(input.AWSLocation
|
|
331
|
-
|
|
332
|
-
...(input.
|
|
333
|
-
...(input.
|
|
334
|
-
|
|
335
|
-
...(input.
|
|
336
|
-
...(input.
|
|
337
|
-
...(input.
|
|
338
|
-
...(input.
|
|
339
|
-
input.Tags !== null && { Tags: serializeAws_restJson1TagList(input.Tags, context) }),
|
|
340
|
-
...(input.Type !== undefined && input.Type !== null && { Type: input.Type }),
|
|
341
|
-
...(input.Vendor !== undefined && input.Vendor !== null && { Vendor: input.Vendor }),
|
|
314
|
+
...(input.AWSLocation != null && { AWSLocation: serializeAws_restJson1AWSLocation(input.AWSLocation, context) }),
|
|
315
|
+
...(input.Description != null && { Description: input.Description }),
|
|
316
|
+
...(input.Location != null && { Location: serializeAws_restJson1Location(input.Location, context) }),
|
|
317
|
+
...(input.Model != null && { Model: input.Model }),
|
|
318
|
+
...(input.SerialNumber != null && { SerialNumber: input.SerialNumber }),
|
|
319
|
+
...(input.SiteId != null && { SiteId: input.SiteId }),
|
|
320
|
+
...(input.Tags != null && { Tags: serializeAws_restJson1TagList(input.Tags, context) }),
|
|
321
|
+
...(input.Type != null && { Type: input.Type }),
|
|
322
|
+
...(input.Vendor != null && { Vendor: input.Vendor }),
|
|
342
323
|
});
|
|
343
324
|
return new protocol_http_1.HttpRequest({
|
|
344
325
|
protocol,
|
|
@@ -359,9 +340,8 @@ const serializeAws_restJson1CreateGlobalNetworkCommand = async (input, context)
|
|
|
359
340
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/global-networks";
|
|
360
341
|
let body;
|
|
361
342
|
body = JSON.stringify({
|
|
362
|
-
...(input.Description
|
|
363
|
-
...(input.Tags
|
|
364
|
-
input.Tags !== null && { Tags: serializeAws_restJson1TagList(input.Tags, context) }),
|
|
343
|
+
...(input.Description != null && { Description: input.Description }),
|
|
344
|
+
...(input.Tags != null && { Tags: serializeAws_restJson1TagList(input.Tags, context) }),
|
|
365
345
|
});
|
|
366
346
|
return new protocol_http_1.HttpRequest({
|
|
367
347
|
protocol,
|
|
@@ -392,14 +372,12 @@ const serializeAws_restJson1CreateLinkCommand = async (input, context) => {
|
|
|
392
372
|
}
|
|
393
373
|
let body;
|
|
394
374
|
body = JSON.stringify({
|
|
395
|
-
...(input.Bandwidth
|
|
396
|
-
|
|
397
|
-
...(input.
|
|
398
|
-
...(input.
|
|
399
|
-
...(input.
|
|
400
|
-
...(input.
|
|
401
|
-
input.Tags !== null && { Tags: serializeAws_restJson1TagList(input.Tags, context) }),
|
|
402
|
-
...(input.Type !== undefined && input.Type !== null && { Type: input.Type }),
|
|
375
|
+
...(input.Bandwidth != null && { Bandwidth: serializeAws_restJson1Bandwidth(input.Bandwidth, context) }),
|
|
376
|
+
...(input.Description != null && { Description: input.Description }),
|
|
377
|
+
...(input.Provider != null && { Provider: input.Provider }),
|
|
378
|
+
...(input.SiteId != null && { SiteId: input.SiteId }),
|
|
379
|
+
...(input.Tags != null && { Tags: serializeAws_restJson1TagList(input.Tags, context) }),
|
|
380
|
+
...(input.Type != null && { Type: input.Type }),
|
|
403
381
|
});
|
|
404
382
|
return new protocol_http_1.HttpRequest({
|
|
405
383
|
protocol,
|
|
@@ -430,11 +408,9 @@ const serializeAws_restJson1CreateSiteCommand = async (input, context) => {
|
|
|
430
408
|
}
|
|
431
409
|
let body;
|
|
432
410
|
body = JSON.stringify({
|
|
433
|
-
...(input.Description
|
|
434
|
-
...(input.Location
|
|
435
|
-
|
|
436
|
-
...(input.Tags !== undefined &&
|
|
437
|
-
input.Tags !== null && { Tags: serializeAws_restJson1TagList(input.Tags, context) }),
|
|
411
|
+
...(input.Description != null && { Description: input.Description }),
|
|
412
|
+
...(input.Location != null && { Location: serializeAws_restJson1Location(input.Location, context) }),
|
|
413
|
+
...(input.Tags != null && { Tags: serializeAws_restJson1TagList(input.Tags, context) }),
|
|
438
414
|
});
|
|
439
415
|
return new protocol_http_1.HttpRequest({
|
|
440
416
|
protocol,
|
|
@@ -457,11 +433,9 @@ const serializeAws_restJson1CreateSiteToSiteVpnAttachmentCommand = async (input,
|
|
|
457
433
|
let body;
|
|
458
434
|
body = JSON.stringify({
|
|
459
435
|
ClientToken: (_a = input.ClientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
460
|
-
...(input.CoreNetworkId
|
|
461
|
-
...(input.Tags
|
|
462
|
-
|
|
463
|
-
...(input.VpnConnectionArn !== undefined &&
|
|
464
|
-
input.VpnConnectionArn !== null && { VpnConnectionArn: input.VpnConnectionArn }),
|
|
436
|
+
...(input.CoreNetworkId != null && { CoreNetworkId: input.CoreNetworkId }),
|
|
437
|
+
...(input.Tags != null && { Tags: serializeAws_restJson1TagList(input.Tags, context) }),
|
|
438
|
+
...(input.VpnConnectionArn != null && { VpnConnectionArn: input.VpnConnectionArn }),
|
|
465
439
|
});
|
|
466
440
|
return new protocol_http_1.HttpRequest({
|
|
467
441
|
protocol,
|
|
@@ -484,14 +458,11 @@ const serializeAws_restJson1CreateVpcAttachmentCommand = async (input, context)
|
|
|
484
458
|
let body;
|
|
485
459
|
body = JSON.stringify({
|
|
486
460
|
ClientToken: (_a = input.ClientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
487
|
-
...(input.CoreNetworkId
|
|
488
|
-
...(input.Options
|
|
489
|
-
|
|
490
|
-
...(input.
|
|
491
|
-
|
|
492
|
-
...(input.Tags !== undefined &&
|
|
493
|
-
input.Tags !== null && { Tags: serializeAws_restJson1TagList(input.Tags, context) }),
|
|
494
|
-
...(input.VpcArn !== undefined && input.VpcArn !== null && { VpcArn: input.VpcArn }),
|
|
461
|
+
...(input.CoreNetworkId != null && { CoreNetworkId: input.CoreNetworkId }),
|
|
462
|
+
...(input.Options != null && { Options: serializeAws_restJson1VpcOptions(input.Options, context) }),
|
|
463
|
+
...(input.SubnetArns != null && { SubnetArns: serializeAws_restJson1SubnetArnList(input.SubnetArns, context) }),
|
|
464
|
+
...(input.Tags != null && { Tags: serializeAws_restJson1TagList(input.Tags, context) }),
|
|
465
|
+
...(input.VpcArn != null && { VpcArn: input.VpcArn }),
|
|
495
466
|
});
|
|
496
467
|
return new protocol_http_1.HttpRequest({
|
|
497
468
|
protocol,
|
|
@@ -1549,38 +1520,29 @@ const serializeAws_restJson1GetNetworkRoutesCommand = async (input, context) =>
|
|
|
1549
1520
|
}
|
|
1550
1521
|
let body;
|
|
1551
1522
|
body = JSON.stringify({
|
|
1552
|
-
...(input.DestinationFilters
|
|
1553
|
-
input.DestinationFilters !== null && {
|
|
1523
|
+
...(input.DestinationFilters != null && {
|
|
1554
1524
|
DestinationFilters: serializeAws_restJson1FilterMap(input.DestinationFilters, context),
|
|
1555
1525
|
}),
|
|
1556
|
-
...(input.ExactCidrMatches
|
|
1557
|
-
input.ExactCidrMatches !== null && {
|
|
1526
|
+
...(input.ExactCidrMatches != null && {
|
|
1558
1527
|
ExactCidrMatches: serializeAws_restJson1ConstrainedStringList(input.ExactCidrMatches, context),
|
|
1559
1528
|
}),
|
|
1560
|
-
...(input.LongestPrefixMatches
|
|
1561
|
-
input.LongestPrefixMatches !== null && {
|
|
1529
|
+
...(input.LongestPrefixMatches != null && {
|
|
1562
1530
|
LongestPrefixMatches: serializeAws_restJson1ConstrainedStringList(input.LongestPrefixMatches, context),
|
|
1563
1531
|
}),
|
|
1564
|
-
...(input.PrefixListIds
|
|
1565
|
-
input.PrefixListIds !== null && {
|
|
1532
|
+
...(input.PrefixListIds != null && {
|
|
1566
1533
|
PrefixListIds: serializeAws_restJson1ConstrainedStringList(input.PrefixListIds, context),
|
|
1567
1534
|
}),
|
|
1568
|
-
...(input.RouteTableIdentifier
|
|
1569
|
-
input.RouteTableIdentifier !== null && {
|
|
1535
|
+
...(input.RouteTableIdentifier != null && {
|
|
1570
1536
|
RouteTableIdentifier: serializeAws_restJson1RouteTableIdentifier(input.RouteTableIdentifier, context),
|
|
1571
1537
|
}),
|
|
1572
|
-
...(input.States
|
|
1573
|
-
|
|
1574
|
-
...(input.SubnetOfMatches !== undefined &&
|
|
1575
|
-
input.SubnetOfMatches !== null && {
|
|
1538
|
+
...(input.States != null && { States: serializeAws_restJson1RouteStateList(input.States, context) }),
|
|
1539
|
+
...(input.SubnetOfMatches != null && {
|
|
1576
1540
|
SubnetOfMatches: serializeAws_restJson1ConstrainedStringList(input.SubnetOfMatches, context),
|
|
1577
1541
|
}),
|
|
1578
|
-
...(input.SupernetOfMatches
|
|
1579
|
-
input.SupernetOfMatches !== null && {
|
|
1542
|
+
...(input.SupernetOfMatches != null && {
|
|
1580
1543
|
SupernetOfMatches: serializeAws_restJson1ConstrainedStringList(input.SupernetOfMatches, context),
|
|
1581
1544
|
}),
|
|
1582
|
-
...(input.Types
|
|
1583
|
-
input.Types !== null && { Types: serializeAws_restJson1RouteTypeList(input.Types, context) }),
|
|
1545
|
+
...(input.Types != null && { Types: serializeAws_restJson1RouteTypeList(input.Types, context) }),
|
|
1584
1546
|
});
|
|
1585
1547
|
return new protocol_http_1.HttpRequest({
|
|
1586
1548
|
protocol,
|
|
@@ -2018,11 +1980,9 @@ const serializeAws_restJson1PutCoreNetworkPolicyCommand = async (input, context)
|
|
|
2018
1980
|
let body;
|
|
2019
1981
|
body = JSON.stringify({
|
|
2020
1982
|
ClientToken: (_a = input.ClientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
2021
|
-
...(input.Description
|
|
2022
|
-
...(input.LatestVersionId
|
|
2023
|
-
|
|
2024
|
-
...(input.PolicyDocument !== undefined &&
|
|
2025
|
-
input.PolicyDocument !== null && { PolicyDocument: smithy_client_1.LazyJsonString.fromObject(input.PolicyDocument) }),
|
|
1983
|
+
...(input.Description != null && { Description: input.Description }),
|
|
1984
|
+
...(input.LatestVersionId != null && { LatestVersionId: input.LatestVersionId }),
|
|
1985
|
+
...(input.PolicyDocument != null && { PolicyDocument: smithy_client_1.LazyJsonString.fromObject(input.PolicyDocument) }),
|
|
2026
1986
|
});
|
|
2027
1987
|
return new protocol_http_1.HttpRequest({
|
|
2028
1988
|
protocol,
|
|
@@ -2053,8 +2013,7 @@ const serializeAws_restJson1PutResourcePolicyCommand = async (input, context) =>
|
|
|
2053
2013
|
}
|
|
2054
2014
|
let body;
|
|
2055
2015
|
body = JSON.stringify({
|
|
2056
|
-
...(input.PolicyDocument
|
|
2057
|
-
input.PolicyDocument !== null && { PolicyDocument: smithy_client_1.LazyJsonString.fromObject(input.PolicyDocument) }),
|
|
2016
|
+
...(input.PolicyDocument != null && { PolicyDocument: smithy_client_1.LazyJsonString.fromObject(input.PolicyDocument) }),
|
|
2058
2017
|
});
|
|
2059
2018
|
return new protocol_http_1.HttpRequest({
|
|
2060
2019
|
protocol,
|
|
@@ -2086,8 +2045,7 @@ const serializeAws_restJson1RegisterTransitGatewayCommand = async (input, contex
|
|
|
2086
2045
|
}
|
|
2087
2046
|
let body;
|
|
2088
2047
|
body = JSON.stringify({
|
|
2089
|
-
...(input.TransitGatewayArn
|
|
2090
|
-
input.TransitGatewayArn !== null && { TransitGatewayArn: input.TransitGatewayArn }),
|
|
2048
|
+
...(input.TransitGatewayArn != null && { TransitGatewayArn: input.TransitGatewayArn }),
|
|
2091
2049
|
});
|
|
2092
2050
|
return new protocol_http_1.HttpRequest({
|
|
2093
2051
|
protocol,
|
|
@@ -2171,7 +2129,7 @@ const serializeAws_restJson1StartOrganizationServiceAccessUpdateCommand = async
|
|
|
2171
2129
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/organizations/service-access";
|
|
2172
2130
|
let body;
|
|
2173
2131
|
body = JSON.stringify({
|
|
2174
|
-
...(input.Action
|
|
2132
|
+
...(input.Action != null && { Action: input.Action }),
|
|
2175
2133
|
});
|
|
2176
2134
|
return new protocol_http_1.HttpRequest({
|
|
2177
2135
|
protocol,
|
|
@@ -2203,18 +2161,14 @@ const serializeAws_restJson1StartRouteAnalysisCommand = async (input, context) =
|
|
|
2203
2161
|
}
|
|
2204
2162
|
let body;
|
|
2205
2163
|
body = JSON.stringify({
|
|
2206
|
-
...(input.Destination
|
|
2207
|
-
input.Destination !== null && {
|
|
2164
|
+
...(input.Destination != null && {
|
|
2208
2165
|
Destination: serializeAws_restJson1RouteAnalysisEndpointOptionsSpecification(input.Destination, context),
|
|
2209
2166
|
}),
|
|
2210
|
-
...(input.IncludeReturnPath
|
|
2211
|
-
|
|
2212
|
-
...(input.Source !== undefined &&
|
|
2213
|
-
input.Source !== null && {
|
|
2167
|
+
...(input.IncludeReturnPath != null && { IncludeReturnPath: input.IncludeReturnPath }),
|
|
2168
|
+
...(input.Source != null && {
|
|
2214
2169
|
Source: serializeAws_restJson1RouteAnalysisEndpointOptionsSpecification(input.Source, context),
|
|
2215
2170
|
}),
|
|
2216
|
-
...(input.UseMiddleboxes
|
|
2217
|
-
input.UseMiddleboxes !== null && { UseMiddleboxes: input.UseMiddleboxes }),
|
|
2171
|
+
...(input.UseMiddleboxes != null && { UseMiddleboxes: input.UseMiddleboxes }),
|
|
2218
2172
|
});
|
|
2219
2173
|
return new protocol_http_1.HttpRequest({
|
|
2220
2174
|
protocol,
|
|
@@ -2245,8 +2199,7 @@ const serializeAws_restJson1TagResourceCommand = async (input, context) => {
|
|
|
2245
2199
|
}
|
|
2246
2200
|
let body;
|
|
2247
2201
|
body = JSON.stringify({
|
|
2248
|
-
...(input.Tags
|
|
2249
|
-
input.Tags !== null && { Tags: serializeAws_restJson1TagList(input.Tags, context) }),
|
|
2202
|
+
...(input.Tags != null && { Tags: serializeAws_restJson1TagList(input.Tags, context) }),
|
|
2250
2203
|
});
|
|
2251
2204
|
return new protocol_http_1.HttpRequest({
|
|
2252
2205
|
protocol,
|
|
@@ -2318,10 +2271,9 @@ const serializeAws_restJson1UpdateConnectionCommand = async (input, context) =>
|
|
|
2318
2271
|
}
|
|
2319
2272
|
let body;
|
|
2320
2273
|
body = JSON.stringify({
|
|
2321
|
-
...(input.ConnectedLinkId
|
|
2322
|
-
|
|
2323
|
-
...(input.
|
|
2324
|
-
...(input.LinkId !== undefined && input.LinkId !== null && { LinkId: input.LinkId }),
|
|
2274
|
+
...(input.ConnectedLinkId != null && { ConnectedLinkId: input.ConnectedLinkId }),
|
|
2275
|
+
...(input.Description != null && { Description: input.Description }),
|
|
2276
|
+
...(input.LinkId != null && { LinkId: input.LinkId }),
|
|
2325
2277
|
});
|
|
2326
2278
|
return new protocol_http_1.HttpRequest({
|
|
2327
2279
|
protocol,
|
|
@@ -2352,7 +2304,7 @@ const serializeAws_restJson1UpdateCoreNetworkCommand = async (input, context) =>
|
|
|
2352
2304
|
}
|
|
2353
2305
|
let body;
|
|
2354
2306
|
body = JSON.stringify({
|
|
2355
|
-
...(input.Description
|
|
2307
|
+
...(input.Description != null && { Description: input.Description }),
|
|
2356
2308
|
});
|
|
2357
2309
|
return new protocol_http_1.HttpRequest({
|
|
2358
2310
|
protocol,
|
|
@@ -2394,16 +2346,14 @@ const serializeAws_restJson1UpdateDeviceCommand = async (input, context) => {
|
|
|
2394
2346
|
}
|
|
2395
2347
|
let body;
|
|
2396
2348
|
body = JSON.stringify({
|
|
2397
|
-
...(input.AWSLocation
|
|
2398
|
-
|
|
2399
|
-
...(input.
|
|
2400
|
-
...(input.
|
|
2401
|
-
|
|
2402
|
-
...(input.
|
|
2403
|
-
...(input.
|
|
2404
|
-
...(input.
|
|
2405
|
-
...(input.Type !== undefined && input.Type !== null && { Type: input.Type }),
|
|
2406
|
-
...(input.Vendor !== undefined && input.Vendor !== null && { Vendor: input.Vendor }),
|
|
2349
|
+
...(input.AWSLocation != null && { AWSLocation: serializeAws_restJson1AWSLocation(input.AWSLocation, context) }),
|
|
2350
|
+
...(input.Description != null && { Description: input.Description }),
|
|
2351
|
+
...(input.Location != null && { Location: serializeAws_restJson1Location(input.Location, context) }),
|
|
2352
|
+
...(input.Model != null && { Model: input.Model }),
|
|
2353
|
+
...(input.SerialNumber != null && { SerialNumber: input.SerialNumber }),
|
|
2354
|
+
...(input.SiteId != null && { SiteId: input.SiteId }),
|
|
2355
|
+
...(input.Type != null && { Type: input.Type }),
|
|
2356
|
+
...(input.Vendor != null && { Vendor: input.Vendor }),
|
|
2407
2357
|
});
|
|
2408
2358
|
return new protocol_http_1.HttpRequest({
|
|
2409
2359
|
protocol,
|
|
@@ -2434,7 +2384,7 @@ const serializeAws_restJson1UpdateGlobalNetworkCommand = async (input, context)
|
|
|
2434
2384
|
}
|
|
2435
2385
|
let body;
|
|
2436
2386
|
body = JSON.stringify({
|
|
2437
|
-
...(input.Description
|
|
2387
|
+
...(input.Description != null && { Description: input.Description }),
|
|
2438
2388
|
});
|
|
2439
2389
|
return new protocol_http_1.HttpRequest({
|
|
2440
2390
|
protocol,
|
|
@@ -2476,11 +2426,10 @@ const serializeAws_restJson1UpdateLinkCommand = async (input, context) => {
|
|
|
2476
2426
|
}
|
|
2477
2427
|
let body;
|
|
2478
2428
|
body = JSON.stringify({
|
|
2479
|
-
...(input.Bandwidth
|
|
2480
|
-
|
|
2481
|
-
...(input.
|
|
2482
|
-
...(input.
|
|
2483
|
-
...(input.Type !== undefined && input.Type !== null && { Type: input.Type }),
|
|
2429
|
+
...(input.Bandwidth != null && { Bandwidth: serializeAws_restJson1Bandwidth(input.Bandwidth, context) }),
|
|
2430
|
+
...(input.Description != null && { Description: input.Description }),
|
|
2431
|
+
...(input.Provider != null && { Provider: input.Provider }),
|
|
2432
|
+
...(input.Type != null && { Type: input.Type }),
|
|
2484
2433
|
});
|
|
2485
2434
|
return new protocol_http_1.HttpRequest({
|
|
2486
2435
|
protocol,
|
|
@@ -2522,8 +2471,7 @@ const serializeAws_restJson1UpdateNetworkResourceMetadataCommand = async (input,
|
|
|
2522
2471
|
}
|
|
2523
2472
|
let body;
|
|
2524
2473
|
body = JSON.stringify({
|
|
2525
|
-
...(input.Metadata
|
|
2526
|
-
input.Metadata !== null && {
|
|
2474
|
+
...(input.Metadata != null && {
|
|
2527
2475
|
Metadata: serializeAws_restJson1NetworkResourceMetadataMap(input.Metadata, context),
|
|
2528
2476
|
}),
|
|
2529
2477
|
});
|
|
@@ -2567,9 +2515,8 @@ const serializeAws_restJson1UpdateSiteCommand = async (input, context) => {
|
|
|
2567
2515
|
}
|
|
2568
2516
|
let body;
|
|
2569
2517
|
body = JSON.stringify({
|
|
2570
|
-
...(input.Description
|
|
2571
|
-
...(input.Location
|
|
2572
|
-
input.Location !== null && { Location: serializeAws_restJson1Location(input.Location, context) }),
|
|
2518
|
+
...(input.Description != null && { Description: input.Description }),
|
|
2519
|
+
...(input.Location != null && { Location: serializeAws_restJson1Location(input.Location, context) }),
|
|
2573
2520
|
});
|
|
2574
2521
|
return new protocol_http_1.HttpRequest({
|
|
2575
2522
|
protocol,
|
|
@@ -2600,14 +2547,11 @@ const serializeAws_restJson1UpdateVpcAttachmentCommand = async (input, context)
|
|
|
2600
2547
|
}
|
|
2601
2548
|
let body;
|
|
2602
2549
|
body = JSON.stringify({
|
|
2603
|
-
...(input.AddSubnetArns
|
|
2604
|
-
input.AddSubnetArns !== null && {
|
|
2550
|
+
...(input.AddSubnetArns != null && {
|
|
2605
2551
|
AddSubnetArns: serializeAws_restJson1SubnetArnList(input.AddSubnetArns, context),
|
|
2606
2552
|
}),
|
|
2607
|
-
...(input.Options
|
|
2608
|
-
|
|
2609
|
-
...(input.RemoveSubnetArns !== undefined &&
|
|
2610
|
-
input.RemoveSubnetArns !== null && {
|
|
2553
|
+
...(input.Options != null && { Options: serializeAws_restJson1VpcOptions(input.Options, context) }),
|
|
2554
|
+
...(input.RemoveSubnetArns != null && {
|
|
2611
2555
|
RemoveSubnetArns: serializeAws_restJson1SubnetArnList(input.RemoveSubnetArns, context),
|
|
2612
2556
|
}),
|
|
2613
2557
|
});
|
|
@@ -2643,8 +2587,7 @@ const deserializeAws_restJson1AcceptAttachmentCommandError = async (output, cont
|
|
|
2643
2587
|
body: await parseBody(output.body, context),
|
|
2644
2588
|
};
|
|
2645
2589
|
let response;
|
|
2646
|
-
|
|
2647
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2590
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2648
2591
|
switch (errorCode) {
|
|
2649
2592
|
case "AccessDeniedException":
|
|
2650
2593
|
case "com.amazonaws.networkmanager#AccessDeniedException":
|
|
@@ -2666,10 +2609,12 @@ const deserializeAws_restJson1AcceptAttachmentCommandError = async (output, cont
|
|
|
2666
2609
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2667
2610
|
default:
|
|
2668
2611
|
const parsedBody = parsedOutput.body;
|
|
2612
|
+
const $metadata = deserializeMetadata(output);
|
|
2613
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2669
2614
|
response = new NetworkManagerServiceException_1.NetworkManagerServiceException({
|
|
2670
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2615
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2671
2616
|
$fault: "client",
|
|
2672
|
-
$metadata
|
|
2617
|
+
$metadata,
|
|
2673
2618
|
});
|
|
2674
2619
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2675
2620
|
}
|
|
@@ -2695,8 +2640,7 @@ const deserializeAws_restJson1AssociateConnectPeerCommandError = async (output,
|
|
|
2695
2640
|
body: await parseBody(output.body, context),
|
|
2696
2641
|
};
|
|
2697
2642
|
let response;
|
|
2698
|
-
|
|
2699
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2643
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2700
2644
|
switch (errorCode) {
|
|
2701
2645
|
case "AccessDeniedException":
|
|
2702
2646
|
case "com.amazonaws.networkmanager#AccessDeniedException":
|
|
@@ -2721,10 +2665,12 @@ const deserializeAws_restJson1AssociateConnectPeerCommandError = async (output,
|
|
|
2721
2665
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2722
2666
|
default:
|
|
2723
2667
|
const parsedBody = parsedOutput.body;
|
|
2668
|
+
const $metadata = deserializeMetadata(output);
|
|
2669
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2724
2670
|
response = new NetworkManagerServiceException_1.NetworkManagerServiceException({
|
|
2725
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2671
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2726
2672
|
$fault: "client",
|
|
2727
|
-
$metadata
|
|
2673
|
+
$metadata,
|
|
2728
2674
|
});
|
|
2729
2675
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2730
2676
|
}
|
|
@@ -2750,8 +2696,7 @@ const deserializeAws_restJson1AssociateCustomerGatewayCommandError = async (outp
|
|
|
2750
2696
|
body: await parseBody(output.body, context),
|
|
2751
2697
|
};
|
|
2752
2698
|
let response;
|
|
2753
|
-
|
|
2754
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2699
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2755
2700
|
switch (errorCode) {
|
|
2756
2701
|
case "AccessDeniedException":
|
|
2757
2702
|
case "com.amazonaws.networkmanager#AccessDeniedException":
|
|
@@ -2776,10 +2721,12 @@ const deserializeAws_restJson1AssociateCustomerGatewayCommandError = async (outp
|
|
|
2776
2721
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2777
2722
|
default:
|
|
2778
2723
|
const parsedBody = parsedOutput.body;
|
|
2724
|
+
const $metadata = deserializeMetadata(output);
|
|
2725
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2779
2726
|
response = new NetworkManagerServiceException_1.NetworkManagerServiceException({
|
|
2780
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2727
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2781
2728
|
$fault: "client",
|
|
2782
|
-
$metadata
|
|
2729
|
+
$metadata,
|
|
2783
2730
|
});
|
|
2784
2731
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2785
2732
|
}
|
|
@@ -2805,8 +2752,7 @@ const deserializeAws_restJson1AssociateLinkCommandError = async (output, context
|
|
|
2805
2752
|
body: await parseBody(output.body, context),
|
|
2806
2753
|
};
|
|
2807
2754
|
let response;
|
|
2808
|
-
|
|
2809
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2755
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2810
2756
|
switch (errorCode) {
|
|
2811
2757
|
case "AccessDeniedException":
|
|
2812
2758
|
case "com.amazonaws.networkmanager#AccessDeniedException":
|
|
@@ -2831,10 +2777,12 @@ const deserializeAws_restJson1AssociateLinkCommandError = async (output, context
|
|
|
2831
2777
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2832
2778
|
default:
|
|
2833
2779
|
const parsedBody = parsedOutput.body;
|
|
2780
|
+
const $metadata = deserializeMetadata(output);
|
|
2781
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2834
2782
|
response = new NetworkManagerServiceException_1.NetworkManagerServiceException({
|
|
2835
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2783
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2836
2784
|
$fault: "client",
|
|
2837
|
-
$metadata
|
|
2785
|
+
$metadata,
|
|
2838
2786
|
});
|
|
2839
2787
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2840
2788
|
}
|
|
@@ -2860,8 +2808,7 @@ const deserializeAws_restJson1AssociateTransitGatewayConnectPeerCommandError = a
|
|
|
2860
2808
|
body: await parseBody(output.body, context),
|
|
2861
2809
|
};
|
|
2862
2810
|
let response;
|
|
2863
|
-
|
|
2864
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2811
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2865
2812
|
switch (errorCode) {
|
|
2866
2813
|
case "AccessDeniedException":
|
|
2867
2814
|
case "com.amazonaws.networkmanager#AccessDeniedException":
|
|
@@ -2886,10 +2833,12 @@ const deserializeAws_restJson1AssociateTransitGatewayConnectPeerCommandError = a
|
|
|
2886
2833
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2887
2834
|
default:
|
|
2888
2835
|
const parsedBody = parsedOutput.body;
|
|
2836
|
+
const $metadata = deserializeMetadata(output);
|
|
2837
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2889
2838
|
response = new NetworkManagerServiceException_1.NetworkManagerServiceException({
|
|
2890
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2839
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2891
2840
|
$fault: "client",
|
|
2892
|
-
$metadata
|
|
2841
|
+
$metadata,
|
|
2893
2842
|
});
|
|
2894
2843
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2895
2844
|
}
|
|
@@ -2915,8 +2864,7 @@ const deserializeAws_restJson1CreateConnectAttachmentCommandError = async (outpu
|
|
|
2915
2864
|
body: await parseBody(output.body, context),
|
|
2916
2865
|
};
|
|
2917
2866
|
let response;
|
|
2918
|
-
|
|
2919
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2867
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2920
2868
|
switch (errorCode) {
|
|
2921
2869
|
case "AccessDeniedException":
|
|
2922
2870
|
case "com.amazonaws.networkmanager#AccessDeniedException":
|
|
@@ -2938,10 +2886,12 @@ const deserializeAws_restJson1CreateConnectAttachmentCommandError = async (outpu
|
|
|
2938
2886
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2939
2887
|
default:
|
|
2940
2888
|
const parsedBody = parsedOutput.body;
|
|
2889
|
+
const $metadata = deserializeMetadata(output);
|
|
2890
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2941
2891
|
response = new NetworkManagerServiceException_1.NetworkManagerServiceException({
|
|
2942
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2892
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2943
2893
|
$fault: "client",
|
|
2944
|
-
$metadata
|
|
2894
|
+
$metadata,
|
|
2945
2895
|
});
|
|
2946
2896
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2947
2897
|
}
|
|
@@ -2967,8 +2917,7 @@ const deserializeAws_restJson1CreateConnectionCommandError = async (output, cont
|
|
|
2967
2917
|
body: await parseBody(output.body, context),
|
|
2968
2918
|
};
|
|
2969
2919
|
let response;
|
|
2970
|
-
|
|
2971
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2920
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2972
2921
|
switch (errorCode) {
|
|
2973
2922
|
case "AccessDeniedException":
|
|
2974
2923
|
case "com.amazonaws.networkmanager#AccessDeniedException":
|
|
@@ -2990,10 +2939,12 @@ const deserializeAws_restJson1CreateConnectionCommandError = async (output, cont
|
|
|
2990
2939
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2991
2940
|
default:
|
|
2992
2941
|
const parsedBody = parsedOutput.body;
|
|
2942
|
+
const $metadata = deserializeMetadata(output);
|
|
2943
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2993
2944
|
response = new NetworkManagerServiceException_1.NetworkManagerServiceException({
|
|
2994
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2945
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2995
2946
|
$fault: "client",
|
|
2996
|
-
$metadata
|
|
2947
|
+
$metadata,
|
|
2997
2948
|
});
|
|
2998
2949
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2999
2950
|
}
|
|
@@ -3019,8 +2970,7 @@ const deserializeAws_restJson1CreateConnectPeerCommandError = async (output, con
|
|
|
3019
2970
|
body: await parseBody(output.body, context),
|
|
3020
2971
|
};
|
|
3021
2972
|
let response;
|
|
3022
|
-
|
|
3023
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2973
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3024
2974
|
switch (errorCode) {
|
|
3025
2975
|
case "AccessDeniedException":
|
|
3026
2976
|
case "com.amazonaws.networkmanager#AccessDeniedException":
|
|
@@ -3042,10 +2992,12 @@ const deserializeAws_restJson1CreateConnectPeerCommandError = async (output, con
|
|
|
3042
2992
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3043
2993
|
default:
|
|
3044
2994
|
const parsedBody = parsedOutput.body;
|
|
2995
|
+
const $metadata = deserializeMetadata(output);
|
|
2996
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3045
2997
|
response = new NetworkManagerServiceException_1.NetworkManagerServiceException({
|
|
3046
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2998
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3047
2999
|
$fault: "client",
|
|
3048
|
-
$metadata
|
|
3000
|
+
$metadata,
|
|
3049
3001
|
});
|
|
3050
3002
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3051
3003
|
}
|
|
@@ -3071,8 +3023,7 @@ const deserializeAws_restJson1CreateCoreNetworkCommandError = async (output, con
|
|
|
3071
3023
|
body: await parseBody(output.body, context),
|
|
3072
3024
|
};
|
|
3073
3025
|
let response;
|
|
3074
|
-
|
|
3075
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3026
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3076
3027
|
switch (errorCode) {
|
|
3077
3028
|
case "AccessDeniedException":
|
|
3078
3029
|
case "com.amazonaws.networkmanager#AccessDeniedException":
|
|
@@ -3097,10 +3048,12 @@ const deserializeAws_restJson1CreateCoreNetworkCommandError = async (output, con
|
|
|
3097
3048
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3098
3049
|
default:
|
|
3099
3050
|
const parsedBody = parsedOutput.body;
|
|
3051
|
+
const $metadata = deserializeMetadata(output);
|
|
3052
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3100
3053
|
response = new NetworkManagerServiceException_1.NetworkManagerServiceException({
|
|
3101
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3054
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3102
3055
|
$fault: "client",
|
|
3103
|
-
$metadata
|
|
3056
|
+
$metadata,
|
|
3104
3057
|
});
|
|
3105
3058
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3106
3059
|
}
|
|
@@ -3126,8 +3079,7 @@ const deserializeAws_restJson1CreateDeviceCommandError = async (output, context)
|
|
|
3126
3079
|
body: await parseBody(output.body, context),
|
|
3127
3080
|
};
|
|
3128
3081
|
let response;
|
|
3129
|
-
|
|
3130
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3082
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3131
3083
|
switch (errorCode) {
|
|
3132
3084
|
case "AccessDeniedException":
|
|
3133
3085
|
case "com.amazonaws.networkmanager#AccessDeniedException":
|
|
@@ -3152,10 +3104,12 @@ const deserializeAws_restJson1CreateDeviceCommandError = async (output, context)
|
|
|
3152
3104
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3153
3105
|
default:
|
|
3154
3106
|
const parsedBody = parsedOutput.body;
|
|
3107
|
+
const $metadata = deserializeMetadata(output);
|
|
3108
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3155
3109
|
response = new NetworkManagerServiceException_1.NetworkManagerServiceException({
|
|
3156
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3110
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3157
3111
|
$fault: "client",
|
|
3158
|
-
$metadata
|
|
3112
|
+
$metadata,
|
|
3159
3113
|
});
|
|
3160
3114
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3161
3115
|
}
|
|
@@ -3181,8 +3135,7 @@ const deserializeAws_restJson1CreateGlobalNetworkCommandError = async (output, c
|
|
|
3181
3135
|
body: await parseBody(output.body, context),
|
|
3182
3136
|
};
|
|
3183
3137
|
let response;
|
|
3184
|
-
|
|
3185
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3138
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3186
3139
|
switch (errorCode) {
|
|
3187
3140
|
case "AccessDeniedException":
|
|
3188
3141
|
case "com.amazonaws.networkmanager#AccessDeniedException":
|
|
@@ -3204,10 +3157,12 @@ const deserializeAws_restJson1CreateGlobalNetworkCommandError = async (output, c
|
|
|
3204
3157
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3205
3158
|
default:
|
|
3206
3159
|
const parsedBody = parsedOutput.body;
|
|
3160
|
+
const $metadata = deserializeMetadata(output);
|
|
3161
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3207
3162
|
response = new NetworkManagerServiceException_1.NetworkManagerServiceException({
|
|
3208
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3163
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3209
3164
|
$fault: "client",
|
|
3210
|
-
$metadata
|
|
3165
|
+
$metadata,
|
|
3211
3166
|
});
|
|
3212
3167
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3213
3168
|
}
|
|
@@ -3233,8 +3188,7 @@ const deserializeAws_restJson1CreateLinkCommandError = async (output, context) =
|
|
|
3233
3188
|
body: await parseBody(output.body, context),
|
|
3234
3189
|
};
|
|
3235
3190
|
let response;
|
|
3236
|
-
|
|
3237
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3191
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3238
3192
|
switch (errorCode) {
|
|
3239
3193
|
case "AccessDeniedException":
|
|
3240
3194
|
case "com.amazonaws.networkmanager#AccessDeniedException":
|
|
@@ -3259,10 +3213,12 @@ const deserializeAws_restJson1CreateLinkCommandError = async (output, context) =
|
|
|
3259
3213
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3260
3214
|
default:
|
|
3261
3215
|
const parsedBody = parsedOutput.body;
|
|
3216
|
+
const $metadata = deserializeMetadata(output);
|
|
3217
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3262
3218
|
response = new NetworkManagerServiceException_1.NetworkManagerServiceException({
|
|
3263
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3219
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3264
3220
|
$fault: "client",
|
|
3265
|
-
$metadata
|
|
3221
|
+
$metadata,
|
|
3266
3222
|
});
|
|
3267
3223
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3268
3224
|
}
|
|
@@ -3288,8 +3244,7 @@ const deserializeAws_restJson1CreateSiteCommandError = async (output, context) =
|
|
|
3288
3244
|
body: await parseBody(output.body, context),
|
|
3289
3245
|
};
|
|
3290
3246
|
let response;
|
|
3291
|
-
|
|
3292
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3247
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3293
3248
|
switch (errorCode) {
|
|
3294
3249
|
case "AccessDeniedException":
|
|
3295
3250
|
case "com.amazonaws.networkmanager#AccessDeniedException":
|
|
@@ -3314,10 +3269,12 @@ const deserializeAws_restJson1CreateSiteCommandError = async (output, context) =
|
|
|
3314
3269
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3315
3270
|
default:
|
|
3316
3271
|
const parsedBody = parsedOutput.body;
|
|
3272
|
+
const $metadata = deserializeMetadata(output);
|
|
3273
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3317
3274
|
response = new NetworkManagerServiceException_1.NetworkManagerServiceException({
|
|
3318
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3275
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3319
3276
|
$fault: "client",
|
|
3320
|
-
$metadata
|
|
3277
|
+
$metadata,
|
|
3321
3278
|
});
|
|
3322
3279
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3323
3280
|
}
|
|
@@ -3343,8 +3300,7 @@ const deserializeAws_restJson1CreateSiteToSiteVpnAttachmentCommandError = async
|
|
|
3343
3300
|
body: await parseBody(output.body, context),
|
|
3344
3301
|
};
|
|
3345
3302
|
let response;
|
|
3346
|
-
|
|
3347
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3303
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3348
3304
|
switch (errorCode) {
|
|
3349
3305
|
case "AccessDeniedException":
|
|
3350
3306
|
case "com.amazonaws.networkmanager#AccessDeniedException":
|
|
@@ -3366,10 +3322,12 @@ const deserializeAws_restJson1CreateSiteToSiteVpnAttachmentCommandError = async
|
|
|
3366
3322
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3367
3323
|
default:
|
|
3368
3324
|
const parsedBody = parsedOutput.body;
|
|
3325
|
+
const $metadata = deserializeMetadata(output);
|
|
3326
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3369
3327
|
response = new NetworkManagerServiceException_1.NetworkManagerServiceException({
|
|
3370
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3328
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3371
3329
|
$fault: "client",
|
|
3372
|
-
$metadata
|
|
3330
|
+
$metadata,
|
|
3373
3331
|
});
|
|
3374
3332
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3375
3333
|
}
|
|
@@ -3395,8 +3353,7 @@ const deserializeAws_restJson1CreateVpcAttachmentCommandError = async (output, c
|
|
|
3395
3353
|
body: await parseBody(output.body, context),
|
|
3396
3354
|
};
|
|
3397
3355
|
let response;
|
|
3398
|
-
|
|
3399
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3356
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3400
3357
|
switch (errorCode) {
|
|
3401
3358
|
case "AccessDeniedException":
|
|
3402
3359
|
case "com.amazonaws.networkmanager#AccessDeniedException":
|
|
@@ -3418,10 +3375,12 @@ const deserializeAws_restJson1CreateVpcAttachmentCommandError = async (output, c
|
|
|
3418
3375
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3419
3376
|
default:
|
|
3420
3377
|
const parsedBody = parsedOutput.body;
|
|
3378
|
+
const $metadata = deserializeMetadata(output);
|
|
3379
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3421
3380
|
response = new NetworkManagerServiceException_1.NetworkManagerServiceException({
|
|
3422
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3381
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3423
3382
|
$fault: "client",
|
|
3424
|
-
$metadata
|
|
3383
|
+
$metadata,
|
|
3425
3384
|
});
|
|
3426
3385
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3427
3386
|
}
|
|
@@ -3447,8 +3406,7 @@ const deserializeAws_restJson1DeleteAttachmentCommandError = async (output, cont
|
|
|
3447
3406
|
body: await parseBody(output.body, context),
|
|
3448
3407
|
};
|
|
3449
3408
|
let response;
|
|
3450
|
-
|
|
3451
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3409
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3452
3410
|
switch (errorCode) {
|
|
3453
3411
|
case "AccessDeniedException":
|
|
3454
3412
|
case "com.amazonaws.networkmanager#AccessDeniedException":
|
|
@@ -3470,10 +3428,12 @@ const deserializeAws_restJson1DeleteAttachmentCommandError = async (output, cont
|
|
|
3470
3428
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3471
3429
|
default:
|
|
3472
3430
|
const parsedBody = parsedOutput.body;
|
|
3431
|
+
const $metadata = deserializeMetadata(output);
|
|
3432
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3473
3433
|
response = new NetworkManagerServiceException_1.NetworkManagerServiceException({
|
|
3474
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3434
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3475
3435
|
$fault: "client",
|
|
3476
|
-
$metadata
|
|
3436
|
+
$metadata,
|
|
3477
3437
|
});
|
|
3478
3438
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3479
3439
|
}
|
|
@@ -3499,8 +3459,7 @@ const deserializeAws_restJson1DeleteConnectionCommandError = async (output, cont
|
|
|
3499
3459
|
body: await parseBody(output.body, context),
|
|
3500
3460
|
};
|
|
3501
3461
|
let response;
|
|
3502
|
-
|
|
3503
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3462
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3504
3463
|
switch (errorCode) {
|
|
3505
3464
|
case "AccessDeniedException":
|
|
3506
3465
|
case "com.amazonaws.networkmanager#AccessDeniedException":
|
|
@@ -3522,10 +3481,12 @@ const deserializeAws_restJson1DeleteConnectionCommandError = async (output, cont
|
|
|
3522
3481
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3523
3482
|
default:
|
|
3524
3483
|
const parsedBody = parsedOutput.body;
|
|
3484
|
+
const $metadata = deserializeMetadata(output);
|
|
3485
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3525
3486
|
response = new NetworkManagerServiceException_1.NetworkManagerServiceException({
|
|
3526
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3487
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3527
3488
|
$fault: "client",
|
|
3528
|
-
$metadata
|
|
3489
|
+
$metadata,
|
|
3529
3490
|
});
|
|
3530
3491
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3531
3492
|
}
|
|
@@ -3551,8 +3512,7 @@ const deserializeAws_restJson1DeleteConnectPeerCommandError = async (output, con
|
|
|
3551
3512
|
body: await parseBody(output.body, context),
|
|
3552
3513
|
};
|
|
3553
3514
|
let response;
|
|
3554
|
-
|
|
3555
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3515
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3556
3516
|
switch (errorCode) {
|
|
3557
3517
|
case "AccessDeniedException":
|
|
3558
3518
|
case "com.amazonaws.networkmanager#AccessDeniedException":
|
|
@@ -3574,10 +3534,12 @@ const deserializeAws_restJson1DeleteConnectPeerCommandError = async (output, con
|
|
|
3574
3534
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3575
3535
|
default:
|
|
3576
3536
|
const parsedBody = parsedOutput.body;
|
|
3537
|
+
const $metadata = deserializeMetadata(output);
|
|
3538
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3577
3539
|
response = new NetworkManagerServiceException_1.NetworkManagerServiceException({
|
|
3578
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3540
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3579
3541
|
$fault: "client",
|
|
3580
|
-
$metadata
|
|
3542
|
+
$metadata,
|
|
3581
3543
|
});
|
|
3582
3544
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3583
3545
|
}
|
|
@@ -3603,8 +3565,7 @@ const deserializeAws_restJson1DeleteCoreNetworkCommandError = async (output, con
|
|
|
3603
3565
|
body: await parseBody(output.body, context),
|
|
3604
3566
|
};
|
|
3605
3567
|
let response;
|
|
3606
|
-
|
|
3607
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3568
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3608
3569
|
switch (errorCode) {
|
|
3609
3570
|
case "AccessDeniedException":
|
|
3610
3571
|
case "com.amazonaws.networkmanager#AccessDeniedException":
|
|
@@ -3626,10 +3587,12 @@ const deserializeAws_restJson1DeleteCoreNetworkCommandError = async (output, con
|
|
|
3626
3587
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3627
3588
|
default:
|
|
3628
3589
|
const parsedBody = parsedOutput.body;
|
|
3590
|
+
const $metadata = deserializeMetadata(output);
|
|
3591
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3629
3592
|
response = new NetworkManagerServiceException_1.NetworkManagerServiceException({
|
|
3630
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3593
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3631
3594
|
$fault: "client",
|
|
3632
|
-
$metadata
|
|
3595
|
+
$metadata,
|
|
3633
3596
|
});
|
|
3634
3597
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3635
3598
|
}
|
|
@@ -3655,8 +3618,7 @@ const deserializeAws_restJson1DeleteCoreNetworkPolicyVersionCommandError = async
|
|
|
3655
3618
|
body: await parseBody(output.body, context),
|
|
3656
3619
|
};
|
|
3657
3620
|
let response;
|
|
3658
|
-
|
|
3659
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3621
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3660
3622
|
switch (errorCode) {
|
|
3661
3623
|
case "AccessDeniedException":
|
|
3662
3624
|
case "com.amazonaws.networkmanager#AccessDeniedException":
|
|
@@ -3678,10 +3640,12 @@ const deserializeAws_restJson1DeleteCoreNetworkPolicyVersionCommandError = async
|
|
|
3678
3640
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3679
3641
|
default:
|
|
3680
3642
|
const parsedBody = parsedOutput.body;
|
|
3643
|
+
const $metadata = deserializeMetadata(output);
|
|
3644
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3681
3645
|
response = new NetworkManagerServiceException_1.NetworkManagerServiceException({
|
|
3682
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3646
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3683
3647
|
$fault: "client",
|
|
3684
|
-
$metadata
|
|
3648
|
+
$metadata,
|
|
3685
3649
|
});
|
|
3686
3650
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3687
3651
|
}
|
|
@@ -3707,8 +3671,7 @@ const deserializeAws_restJson1DeleteDeviceCommandError = async (output, context)
|
|
|
3707
3671
|
body: await parseBody(output.body, context),
|
|
3708
3672
|
};
|
|
3709
3673
|
let response;
|
|
3710
|
-
|
|
3711
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3674
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3712
3675
|
switch (errorCode) {
|
|
3713
3676
|
case "AccessDeniedException":
|
|
3714
3677
|
case "com.amazonaws.networkmanager#AccessDeniedException":
|
|
@@ -3730,10 +3693,12 @@ const deserializeAws_restJson1DeleteDeviceCommandError = async (output, context)
|
|
|
3730
3693
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3731
3694
|
default:
|
|
3732
3695
|
const parsedBody = parsedOutput.body;
|
|
3696
|
+
const $metadata = deserializeMetadata(output);
|
|
3697
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3733
3698
|
response = new NetworkManagerServiceException_1.NetworkManagerServiceException({
|
|
3734
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3699
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3735
3700
|
$fault: "client",
|
|
3736
|
-
$metadata
|
|
3701
|
+
$metadata,
|
|
3737
3702
|
});
|
|
3738
3703
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3739
3704
|
}
|
|
@@ -3759,8 +3724,7 @@ const deserializeAws_restJson1DeleteGlobalNetworkCommandError = async (output, c
|
|
|
3759
3724
|
body: await parseBody(output.body, context),
|
|
3760
3725
|
};
|
|
3761
3726
|
let response;
|
|
3762
|
-
|
|
3763
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3727
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3764
3728
|
switch (errorCode) {
|
|
3765
3729
|
case "AccessDeniedException":
|
|
3766
3730
|
case "com.amazonaws.networkmanager#AccessDeniedException":
|
|
@@ -3782,10 +3746,12 @@ const deserializeAws_restJson1DeleteGlobalNetworkCommandError = async (output, c
|
|
|
3782
3746
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3783
3747
|
default:
|
|
3784
3748
|
const parsedBody = parsedOutput.body;
|
|
3749
|
+
const $metadata = deserializeMetadata(output);
|
|
3750
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3785
3751
|
response = new NetworkManagerServiceException_1.NetworkManagerServiceException({
|
|
3786
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3752
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3787
3753
|
$fault: "client",
|
|
3788
|
-
$metadata
|
|
3754
|
+
$metadata,
|
|
3789
3755
|
});
|
|
3790
3756
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3791
3757
|
}
|
|
@@ -3811,8 +3777,7 @@ const deserializeAws_restJson1DeleteLinkCommandError = async (output, context) =
|
|
|
3811
3777
|
body: await parseBody(output.body, context),
|
|
3812
3778
|
};
|
|
3813
3779
|
let response;
|
|
3814
|
-
|
|
3815
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3780
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3816
3781
|
switch (errorCode) {
|
|
3817
3782
|
case "AccessDeniedException":
|
|
3818
3783
|
case "com.amazonaws.networkmanager#AccessDeniedException":
|
|
@@ -3834,10 +3799,12 @@ const deserializeAws_restJson1DeleteLinkCommandError = async (output, context) =
|
|
|
3834
3799
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3835
3800
|
default:
|
|
3836
3801
|
const parsedBody = parsedOutput.body;
|
|
3802
|
+
const $metadata = deserializeMetadata(output);
|
|
3803
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3837
3804
|
response = new NetworkManagerServiceException_1.NetworkManagerServiceException({
|
|
3838
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3805
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3839
3806
|
$fault: "client",
|
|
3840
|
-
$metadata
|
|
3807
|
+
$metadata,
|
|
3841
3808
|
});
|
|
3842
3809
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3843
3810
|
}
|
|
@@ -3859,8 +3826,7 @@ const deserializeAws_restJson1DeleteResourcePolicyCommandError = async (output,
|
|
|
3859
3826
|
body: await parseBody(output.body, context),
|
|
3860
3827
|
};
|
|
3861
3828
|
let response;
|
|
3862
|
-
|
|
3863
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3829
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3864
3830
|
switch (errorCode) {
|
|
3865
3831
|
case "AccessDeniedException":
|
|
3866
3832
|
case "com.amazonaws.networkmanager#AccessDeniedException":
|
|
@@ -3879,10 +3845,12 @@ const deserializeAws_restJson1DeleteResourcePolicyCommandError = async (output,
|
|
|
3879
3845
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3880
3846
|
default:
|
|
3881
3847
|
const parsedBody = parsedOutput.body;
|
|
3848
|
+
const $metadata = deserializeMetadata(output);
|
|
3849
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3882
3850
|
response = new NetworkManagerServiceException_1.NetworkManagerServiceException({
|
|
3883
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3851
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3884
3852
|
$fault: "client",
|
|
3885
|
-
$metadata
|
|
3853
|
+
$metadata,
|
|
3886
3854
|
});
|
|
3887
3855
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3888
3856
|
}
|
|
@@ -3908,8 +3876,7 @@ const deserializeAws_restJson1DeleteSiteCommandError = async (output, context) =
|
|
|
3908
3876
|
body: await parseBody(output.body, context),
|
|
3909
3877
|
};
|
|
3910
3878
|
let response;
|
|
3911
|
-
|
|
3912
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3879
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3913
3880
|
switch (errorCode) {
|
|
3914
3881
|
case "AccessDeniedException":
|
|
3915
3882
|
case "com.amazonaws.networkmanager#AccessDeniedException":
|
|
@@ -3931,10 +3898,12 @@ const deserializeAws_restJson1DeleteSiteCommandError = async (output, context) =
|
|
|
3931
3898
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3932
3899
|
default:
|
|
3933
3900
|
const parsedBody = parsedOutput.body;
|
|
3901
|
+
const $metadata = deserializeMetadata(output);
|
|
3902
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3934
3903
|
response = new NetworkManagerServiceException_1.NetworkManagerServiceException({
|
|
3935
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3904
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3936
3905
|
$fault: "client",
|
|
3937
|
-
$metadata
|
|
3906
|
+
$metadata,
|
|
3938
3907
|
});
|
|
3939
3908
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3940
3909
|
}
|
|
@@ -3960,8 +3929,7 @@ const deserializeAws_restJson1DeregisterTransitGatewayCommandError = async (outp
|
|
|
3960
3929
|
body: await parseBody(output.body, context),
|
|
3961
3930
|
};
|
|
3962
3931
|
let response;
|
|
3963
|
-
|
|
3964
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3932
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3965
3933
|
switch (errorCode) {
|
|
3966
3934
|
case "AccessDeniedException":
|
|
3967
3935
|
case "com.amazonaws.networkmanager#AccessDeniedException":
|
|
@@ -3983,10 +3951,12 @@ const deserializeAws_restJson1DeregisterTransitGatewayCommandError = async (outp
|
|
|
3983
3951
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3984
3952
|
default:
|
|
3985
3953
|
const parsedBody = parsedOutput.body;
|
|
3954
|
+
const $metadata = deserializeMetadata(output);
|
|
3955
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3986
3956
|
response = new NetworkManagerServiceException_1.NetworkManagerServiceException({
|
|
3987
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3957
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3988
3958
|
$fault: "client",
|
|
3989
|
-
$metadata
|
|
3959
|
+
$metadata,
|
|
3990
3960
|
});
|
|
3991
3961
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3992
3962
|
}
|
|
@@ -4016,8 +3986,7 @@ const deserializeAws_restJson1DescribeGlobalNetworksCommandError = async (output
|
|
|
4016
3986
|
body: await parseBody(output.body, context),
|
|
4017
3987
|
};
|
|
4018
3988
|
let response;
|
|
4019
|
-
|
|
4020
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3989
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4021
3990
|
switch (errorCode) {
|
|
4022
3991
|
case "AccessDeniedException":
|
|
4023
3992
|
case "com.amazonaws.networkmanager#AccessDeniedException":
|
|
@@ -4036,10 +4005,12 @@ const deserializeAws_restJson1DescribeGlobalNetworksCommandError = async (output
|
|
|
4036
4005
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
4037
4006
|
default:
|
|
4038
4007
|
const parsedBody = parsedOutput.body;
|
|
4008
|
+
const $metadata = deserializeMetadata(output);
|
|
4009
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4039
4010
|
response = new NetworkManagerServiceException_1.NetworkManagerServiceException({
|
|
4040
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4011
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4041
4012
|
$fault: "client",
|
|
4042
|
-
$metadata
|
|
4013
|
+
$metadata,
|
|
4043
4014
|
});
|
|
4044
4015
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4045
4016
|
}
|
|
@@ -4065,8 +4036,7 @@ const deserializeAws_restJson1DisassociateConnectPeerCommandError = async (outpu
|
|
|
4065
4036
|
body: await parseBody(output.body, context),
|
|
4066
4037
|
};
|
|
4067
4038
|
let response;
|
|
4068
|
-
|
|
4069
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4039
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4070
4040
|
switch (errorCode) {
|
|
4071
4041
|
case "AccessDeniedException":
|
|
4072
4042
|
case "com.amazonaws.networkmanager#AccessDeniedException":
|
|
@@ -4088,10 +4058,12 @@ const deserializeAws_restJson1DisassociateConnectPeerCommandError = async (outpu
|
|
|
4088
4058
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
4089
4059
|
default:
|
|
4090
4060
|
const parsedBody = parsedOutput.body;
|
|
4061
|
+
const $metadata = deserializeMetadata(output);
|
|
4062
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4091
4063
|
response = new NetworkManagerServiceException_1.NetworkManagerServiceException({
|
|
4092
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4064
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4093
4065
|
$fault: "client",
|
|
4094
|
-
$metadata
|
|
4066
|
+
$metadata,
|
|
4095
4067
|
});
|
|
4096
4068
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4097
4069
|
}
|
|
@@ -4117,8 +4089,7 @@ const deserializeAws_restJson1DisassociateCustomerGatewayCommandError = async (o
|
|
|
4117
4089
|
body: await parseBody(output.body, context),
|
|
4118
4090
|
};
|
|
4119
4091
|
let response;
|
|
4120
|
-
|
|
4121
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4092
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4122
4093
|
switch (errorCode) {
|
|
4123
4094
|
case "AccessDeniedException":
|
|
4124
4095
|
case "com.amazonaws.networkmanager#AccessDeniedException":
|
|
@@ -4140,10 +4111,12 @@ const deserializeAws_restJson1DisassociateCustomerGatewayCommandError = async (o
|
|
|
4140
4111
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
4141
4112
|
default:
|
|
4142
4113
|
const parsedBody = parsedOutput.body;
|
|
4114
|
+
const $metadata = deserializeMetadata(output);
|
|
4115
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4143
4116
|
response = new NetworkManagerServiceException_1.NetworkManagerServiceException({
|
|
4144
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4117
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4145
4118
|
$fault: "client",
|
|
4146
|
-
$metadata
|
|
4119
|
+
$metadata,
|
|
4147
4120
|
});
|
|
4148
4121
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4149
4122
|
}
|
|
@@ -4169,8 +4142,7 @@ const deserializeAws_restJson1DisassociateLinkCommandError = async (output, cont
|
|
|
4169
4142
|
body: await parseBody(output.body, context),
|
|
4170
4143
|
};
|
|
4171
4144
|
let response;
|
|
4172
|
-
|
|
4173
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4145
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4174
4146
|
switch (errorCode) {
|
|
4175
4147
|
case "AccessDeniedException":
|
|
4176
4148
|
case "com.amazonaws.networkmanager#AccessDeniedException":
|
|
@@ -4192,10 +4164,12 @@ const deserializeAws_restJson1DisassociateLinkCommandError = async (output, cont
|
|
|
4192
4164
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
4193
4165
|
default:
|
|
4194
4166
|
const parsedBody = parsedOutput.body;
|
|
4167
|
+
const $metadata = deserializeMetadata(output);
|
|
4168
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4195
4169
|
response = new NetworkManagerServiceException_1.NetworkManagerServiceException({
|
|
4196
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4170
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4197
4171
|
$fault: "client",
|
|
4198
|
-
$metadata
|
|
4172
|
+
$metadata,
|
|
4199
4173
|
});
|
|
4200
4174
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4201
4175
|
}
|
|
@@ -4221,8 +4195,7 @@ const deserializeAws_restJson1DisassociateTransitGatewayConnectPeerCommandError
|
|
|
4221
4195
|
body: await parseBody(output.body, context),
|
|
4222
4196
|
};
|
|
4223
4197
|
let response;
|
|
4224
|
-
|
|
4225
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4198
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4226
4199
|
switch (errorCode) {
|
|
4227
4200
|
case "AccessDeniedException":
|
|
4228
4201
|
case "com.amazonaws.networkmanager#AccessDeniedException":
|
|
@@ -4244,10 +4217,12 @@ const deserializeAws_restJson1DisassociateTransitGatewayConnectPeerCommandError
|
|
|
4244
4217
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
4245
4218
|
default:
|
|
4246
4219
|
const parsedBody = parsedOutput.body;
|
|
4220
|
+
const $metadata = deserializeMetadata(output);
|
|
4221
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4247
4222
|
response = new NetworkManagerServiceException_1.NetworkManagerServiceException({
|
|
4248
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4223
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4249
4224
|
$fault: "client",
|
|
4250
|
-
$metadata
|
|
4225
|
+
$metadata,
|
|
4251
4226
|
});
|
|
4252
4227
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4253
4228
|
}
|
|
@@ -4269,8 +4244,7 @@ const deserializeAws_restJson1ExecuteCoreNetworkChangeSetCommandError = async (o
|
|
|
4269
4244
|
body: await parseBody(output.body, context),
|
|
4270
4245
|
};
|
|
4271
4246
|
let response;
|
|
4272
|
-
|
|
4273
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4247
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4274
4248
|
switch (errorCode) {
|
|
4275
4249
|
case "AccessDeniedException":
|
|
4276
4250
|
case "com.amazonaws.networkmanager#AccessDeniedException":
|
|
@@ -4292,10 +4266,12 @@ const deserializeAws_restJson1ExecuteCoreNetworkChangeSetCommandError = async (o
|
|
|
4292
4266
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
4293
4267
|
default:
|
|
4294
4268
|
const parsedBody = parsedOutput.body;
|
|
4269
|
+
const $metadata = deserializeMetadata(output);
|
|
4270
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4295
4271
|
response = new NetworkManagerServiceException_1.NetworkManagerServiceException({
|
|
4296
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4272
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4297
4273
|
$fault: "client",
|
|
4298
|
-
$metadata
|
|
4274
|
+
$metadata,
|
|
4299
4275
|
});
|
|
4300
4276
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4301
4277
|
}
|
|
@@ -4321,8 +4297,7 @@ const deserializeAws_restJson1GetConnectAttachmentCommandError = async (output,
|
|
|
4321
4297
|
body: await parseBody(output.body, context),
|
|
4322
4298
|
};
|
|
4323
4299
|
let response;
|
|
4324
|
-
|
|
4325
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4300
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4326
4301
|
switch (errorCode) {
|
|
4327
4302
|
case "AccessDeniedException":
|
|
4328
4303
|
case "com.amazonaws.networkmanager#AccessDeniedException":
|
|
@@ -4341,10 +4316,12 @@ const deserializeAws_restJson1GetConnectAttachmentCommandError = async (output,
|
|
|
4341
4316
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
4342
4317
|
default:
|
|
4343
4318
|
const parsedBody = parsedOutput.body;
|
|
4319
|
+
const $metadata = deserializeMetadata(output);
|
|
4320
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4344
4321
|
response = new NetworkManagerServiceException_1.NetworkManagerServiceException({
|
|
4345
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4322
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4346
4323
|
$fault: "client",
|
|
4347
|
-
$metadata
|
|
4324
|
+
$metadata,
|
|
4348
4325
|
});
|
|
4349
4326
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4350
4327
|
}
|
|
@@ -4374,8 +4351,7 @@ const deserializeAws_restJson1GetConnectionsCommandError = async (output, contex
|
|
|
4374
4351
|
body: await parseBody(output.body, context),
|
|
4375
4352
|
};
|
|
4376
4353
|
let response;
|
|
4377
|
-
|
|
4378
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4354
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4379
4355
|
switch (errorCode) {
|
|
4380
4356
|
case "AccessDeniedException":
|
|
4381
4357
|
case "com.amazonaws.networkmanager#AccessDeniedException":
|
|
@@ -4394,10 +4370,12 @@ const deserializeAws_restJson1GetConnectionsCommandError = async (output, contex
|
|
|
4394
4370
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
4395
4371
|
default:
|
|
4396
4372
|
const parsedBody = parsedOutput.body;
|
|
4373
|
+
const $metadata = deserializeMetadata(output);
|
|
4374
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4397
4375
|
response = new NetworkManagerServiceException_1.NetworkManagerServiceException({
|
|
4398
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4376
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4399
4377
|
$fault: "client",
|
|
4400
|
-
$metadata
|
|
4378
|
+
$metadata,
|
|
4401
4379
|
});
|
|
4402
4380
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4403
4381
|
}
|
|
@@ -4423,8 +4401,7 @@ const deserializeAws_restJson1GetConnectPeerCommandError = async (output, contex
|
|
|
4423
4401
|
body: await parseBody(output.body, context),
|
|
4424
4402
|
};
|
|
4425
4403
|
let response;
|
|
4426
|
-
|
|
4427
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4404
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4428
4405
|
switch (errorCode) {
|
|
4429
4406
|
case "AccessDeniedException":
|
|
4430
4407
|
case "com.amazonaws.networkmanager#AccessDeniedException":
|
|
@@ -4443,10 +4420,12 @@ const deserializeAws_restJson1GetConnectPeerCommandError = async (output, contex
|
|
|
4443
4420
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
4444
4421
|
default:
|
|
4445
4422
|
const parsedBody = parsedOutput.body;
|
|
4423
|
+
const $metadata = deserializeMetadata(output);
|
|
4424
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4446
4425
|
response = new NetworkManagerServiceException_1.NetworkManagerServiceException({
|
|
4447
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4426
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4448
4427
|
$fault: "client",
|
|
4449
|
-
$metadata
|
|
4428
|
+
$metadata,
|
|
4450
4429
|
});
|
|
4451
4430
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4452
4431
|
}
|
|
@@ -4476,8 +4455,7 @@ const deserializeAws_restJson1GetConnectPeerAssociationsCommandError = async (ou
|
|
|
4476
4455
|
body: await parseBody(output.body, context),
|
|
4477
4456
|
};
|
|
4478
4457
|
let response;
|
|
4479
|
-
|
|
4480
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4458
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4481
4459
|
switch (errorCode) {
|
|
4482
4460
|
case "AccessDeniedException":
|
|
4483
4461
|
case "com.amazonaws.networkmanager#AccessDeniedException":
|
|
@@ -4499,10 +4477,12 @@ const deserializeAws_restJson1GetConnectPeerAssociationsCommandError = async (ou
|
|
|
4499
4477
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
4500
4478
|
default:
|
|
4501
4479
|
const parsedBody = parsedOutput.body;
|
|
4480
|
+
const $metadata = deserializeMetadata(output);
|
|
4481
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4502
4482
|
response = new NetworkManagerServiceException_1.NetworkManagerServiceException({
|
|
4503
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4483
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4504
4484
|
$fault: "client",
|
|
4505
|
-
$metadata
|
|
4485
|
+
$metadata,
|
|
4506
4486
|
});
|
|
4507
4487
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4508
4488
|
}
|
|
@@ -4528,8 +4508,7 @@ const deserializeAws_restJson1GetCoreNetworkCommandError = async (output, contex
|
|
|
4528
4508
|
body: await parseBody(output.body, context),
|
|
4529
4509
|
};
|
|
4530
4510
|
let response;
|
|
4531
|
-
|
|
4532
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4511
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4533
4512
|
switch (errorCode) {
|
|
4534
4513
|
case "AccessDeniedException":
|
|
4535
4514
|
case "com.amazonaws.networkmanager#AccessDeniedException":
|
|
@@ -4548,10 +4527,12 @@ const deserializeAws_restJson1GetCoreNetworkCommandError = async (output, contex
|
|
|
4548
4527
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
4549
4528
|
default:
|
|
4550
4529
|
const parsedBody = parsedOutput.body;
|
|
4530
|
+
const $metadata = deserializeMetadata(output);
|
|
4531
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4551
4532
|
response = new NetworkManagerServiceException_1.NetworkManagerServiceException({
|
|
4552
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4533
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4553
4534
|
$fault: "client",
|
|
4554
|
-
$metadata
|
|
4535
|
+
$metadata,
|
|
4555
4536
|
});
|
|
4556
4537
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4557
4538
|
}
|
|
@@ -4581,8 +4562,7 @@ const deserializeAws_restJson1GetCoreNetworkChangeSetCommandError = async (outpu
|
|
|
4581
4562
|
body: await parseBody(output.body, context),
|
|
4582
4563
|
};
|
|
4583
4564
|
let response;
|
|
4584
|
-
|
|
4585
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4565
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4586
4566
|
switch (errorCode) {
|
|
4587
4567
|
case "AccessDeniedException":
|
|
4588
4568
|
case "com.amazonaws.networkmanager#AccessDeniedException":
|
|
@@ -4601,10 +4581,12 @@ const deserializeAws_restJson1GetCoreNetworkChangeSetCommandError = async (outpu
|
|
|
4601
4581
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
4602
4582
|
default:
|
|
4603
4583
|
const parsedBody = parsedOutput.body;
|
|
4584
|
+
const $metadata = deserializeMetadata(output);
|
|
4585
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4604
4586
|
response = new NetworkManagerServiceException_1.NetworkManagerServiceException({
|
|
4605
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4587
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4606
4588
|
$fault: "client",
|
|
4607
|
-
$metadata
|
|
4589
|
+
$metadata,
|
|
4608
4590
|
});
|
|
4609
4591
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4610
4592
|
}
|
|
@@ -4630,8 +4612,7 @@ const deserializeAws_restJson1GetCoreNetworkPolicyCommandError = async (output,
|
|
|
4630
4612
|
body: await parseBody(output.body, context),
|
|
4631
4613
|
};
|
|
4632
4614
|
let response;
|
|
4633
|
-
|
|
4634
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4615
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4635
4616
|
switch (errorCode) {
|
|
4636
4617
|
case "AccessDeniedException":
|
|
4637
4618
|
case "com.amazonaws.networkmanager#AccessDeniedException":
|
|
@@ -4650,10 +4631,12 @@ const deserializeAws_restJson1GetCoreNetworkPolicyCommandError = async (output,
|
|
|
4650
4631
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
4651
4632
|
default:
|
|
4652
4633
|
const parsedBody = parsedOutput.body;
|
|
4634
|
+
const $metadata = deserializeMetadata(output);
|
|
4635
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4653
4636
|
response = new NetworkManagerServiceException_1.NetworkManagerServiceException({
|
|
4654
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4637
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4655
4638
|
$fault: "client",
|
|
4656
|
-
$metadata
|
|
4639
|
+
$metadata,
|
|
4657
4640
|
});
|
|
4658
4641
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4659
4642
|
}
|
|
@@ -4683,8 +4666,7 @@ const deserializeAws_restJson1GetCustomerGatewayAssociationsCommandError = async
|
|
|
4683
4666
|
body: await parseBody(output.body, context),
|
|
4684
4667
|
};
|
|
4685
4668
|
let response;
|
|
4686
|
-
|
|
4687
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4669
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4688
4670
|
switch (errorCode) {
|
|
4689
4671
|
case "AccessDeniedException":
|
|
4690
4672
|
case "com.amazonaws.networkmanager#AccessDeniedException":
|
|
@@ -4706,10 +4688,12 @@ const deserializeAws_restJson1GetCustomerGatewayAssociationsCommandError = async
|
|
|
4706
4688
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
4707
4689
|
default:
|
|
4708
4690
|
const parsedBody = parsedOutput.body;
|
|
4691
|
+
const $metadata = deserializeMetadata(output);
|
|
4692
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4709
4693
|
response = new NetworkManagerServiceException_1.NetworkManagerServiceException({
|
|
4710
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4694
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4711
4695
|
$fault: "client",
|
|
4712
|
-
$metadata
|
|
4696
|
+
$metadata,
|
|
4713
4697
|
});
|
|
4714
4698
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4715
4699
|
}
|
|
@@ -4739,8 +4723,7 @@ const deserializeAws_restJson1GetDevicesCommandError = async (output, context) =
|
|
|
4739
4723
|
body: await parseBody(output.body, context),
|
|
4740
4724
|
};
|
|
4741
4725
|
let response;
|
|
4742
|
-
|
|
4743
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4726
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4744
4727
|
switch (errorCode) {
|
|
4745
4728
|
case "AccessDeniedException":
|
|
4746
4729
|
case "com.amazonaws.networkmanager#AccessDeniedException":
|
|
@@ -4759,10 +4742,12 @@ const deserializeAws_restJson1GetDevicesCommandError = async (output, context) =
|
|
|
4759
4742
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
4760
4743
|
default:
|
|
4761
4744
|
const parsedBody = parsedOutput.body;
|
|
4745
|
+
const $metadata = deserializeMetadata(output);
|
|
4746
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4762
4747
|
response = new NetworkManagerServiceException_1.NetworkManagerServiceException({
|
|
4763
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4748
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4764
4749
|
$fault: "client",
|
|
4765
|
-
$metadata
|
|
4750
|
+
$metadata,
|
|
4766
4751
|
});
|
|
4767
4752
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4768
4753
|
}
|
|
@@ -4792,8 +4777,7 @@ const deserializeAws_restJson1GetLinkAssociationsCommandError = async (output, c
|
|
|
4792
4777
|
body: await parseBody(output.body, context),
|
|
4793
4778
|
};
|
|
4794
4779
|
let response;
|
|
4795
|
-
|
|
4796
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4780
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4797
4781
|
switch (errorCode) {
|
|
4798
4782
|
case "AccessDeniedException":
|
|
4799
4783
|
case "com.amazonaws.networkmanager#AccessDeniedException":
|
|
@@ -4812,10 +4796,12 @@ const deserializeAws_restJson1GetLinkAssociationsCommandError = async (output, c
|
|
|
4812
4796
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
4813
4797
|
default:
|
|
4814
4798
|
const parsedBody = parsedOutput.body;
|
|
4799
|
+
const $metadata = deserializeMetadata(output);
|
|
4800
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4815
4801
|
response = new NetworkManagerServiceException_1.NetworkManagerServiceException({
|
|
4816
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4802
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4817
4803
|
$fault: "client",
|
|
4818
|
-
$metadata
|
|
4804
|
+
$metadata,
|
|
4819
4805
|
});
|
|
4820
4806
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4821
4807
|
}
|
|
@@ -4845,8 +4831,7 @@ const deserializeAws_restJson1GetLinksCommandError = async (output, context) =>
|
|
|
4845
4831
|
body: await parseBody(output.body, context),
|
|
4846
4832
|
};
|
|
4847
4833
|
let response;
|
|
4848
|
-
|
|
4849
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4834
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4850
4835
|
switch (errorCode) {
|
|
4851
4836
|
case "AccessDeniedException":
|
|
4852
4837
|
case "com.amazonaws.networkmanager#AccessDeniedException":
|
|
@@ -4865,10 +4850,12 @@ const deserializeAws_restJson1GetLinksCommandError = async (output, context) =>
|
|
|
4865
4850
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
4866
4851
|
default:
|
|
4867
4852
|
const parsedBody = parsedOutput.body;
|
|
4853
|
+
const $metadata = deserializeMetadata(output);
|
|
4854
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4868
4855
|
response = new NetworkManagerServiceException_1.NetworkManagerServiceException({
|
|
4869
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4856
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4870
4857
|
$fault: "client",
|
|
4871
|
-
$metadata
|
|
4858
|
+
$metadata,
|
|
4872
4859
|
});
|
|
4873
4860
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4874
4861
|
}
|
|
@@ -4898,8 +4885,7 @@ const deserializeAws_restJson1GetNetworkResourceCountsCommandError = async (outp
|
|
|
4898
4885
|
body: await parseBody(output.body, context),
|
|
4899
4886
|
};
|
|
4900
4887
|
let response;
|
|
4901
|
-
|
|
4902
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4888
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4903
4889
|
switch (errorCode) {
|
|
4904
4890
|
case "AccessDeniedException":
|
|
4905
4891
|
case "com.amazonaws.networkmanager#AccessDeniedException":
|
|
@@ -4915,10 +4901,12 @@ const deserializeAws_restJson1GetNetworkResourceCountsCommandError = async (outp
|
|
|
4915
4901
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
4916
4902
|
default:
|
|
4917
4903
|
const parsedBody = parsedOutput.body;
|
|
4904
|
+
const $metadata = deserializeMetadata(output);
|
|
4905
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4918
4906
|
response = new NetworkManagerServiceException_1.NetworkManagerServiceException({
|
|
4919
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4907
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4920
4908
|
$fault: "client",
|
|
4921
|
-
$metadata
|
|
4909
|
+
$metadata,
|
|
4922
4910
|
});
|
|
4923
4911
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4924
4912
|
}
|
|
@@ -4948,8 +4936,7 @@ const deserializeAws_restJson1GetNetworkResourceRelationshipsCommandError = asyn
|
|
|
4948
4936
|
body: await parseBody(output.body, context),
|
|
4949
4937
|
};
|
|
4950
4938
|
let response;
|
|
4951
|
-
|
|
4952
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4939
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4953
4940
|
switch (errorCode) {
|
|
4954
4941
|
case "AccessDeniedException":
|
|
4955
4942
|
case "com.amazonaws.networkmanager#AccessDeniedException":
|
|
@@ -4968,10 +4955,12 @@ const deserializeAws_restJson1GetNetworkResourceRelationshipsCommandError = asyn
|
|
|
4968
4955
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
4969
4956
|
default:
|
|
4970
4957
|
const parsedBody = parsedOutput.body;
|
|
4958
|
+
const $metadata = deserializeMetadata(output);
|
|
4959
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4971
4960
|
response = new NetworkManagerServiceException_1.NetworkManagerServiceException({
|
|
4972
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4961
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4973
4962
|
$fault: "client",
|
|
4974
|
-
$metadata
|
|
4963
|
+
$metadata,
|
|
4975
4964
|
});
|
|
4976
4965
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4977
4966
|
}
|
|
@@ -5001,8 +4990,7 @@ const deserializeAws_restJson1GetNetworkResourcesCommandError = async (output, c
|
|
|
5001
4990
|
body: await parseBody(output.body, context),
|
|
5002
4991
|
};
|
|
5003
4992
|
let response;
|
|
5004
|
-
|
|
5005
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4993
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5006
4994
|
switch (errorCode) {
|
|
5007
4995
|
case "AccessDeniedException":
|
|
5008
4996
|
case "com.amazonaws.networkmanager#AccessDeniedException":
|
|
@@ -5021,10 +5009,12 @@ const deserializeAws_restJson1GetNetworkResourcesCommandError = async (output, c
|
|
|
5021
5009
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
5022
5010
|
default:
|
|
5023
5011
|
const parsedBody = parsedOutput.body;
|
|
5012
|
+
const $metadata = deserializeMetadata(output);
|
|
5013
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5024
5014
|
response = new NetworkManagerServiceException_1.NetworkManagerServiceException({
|
|
5025
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5015
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5026
5016
|
$fault: "client",
|
|
5027
|
-
$metadata
|
|
5017
|
+
$metadata,
|
|
5028
5018
|
});
|
|
5029
5019
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5030
5020
|
}
|
|
@@ -5066,8 +5056,7 @@ const deserializeAws_restJson1GetNetworkRoutesCommandError = async (output, cont
|
|
|
5066
5056
|
body: await parseBody(output.body, context),
|
|
5067
5057
|
};
|
|
5068
5058
|
let response;
|
|
5069
|
-
|
|
5070
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5059
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5071
5060
|
switch (errorCode) {
|
|
5072
5061
|
case "AccessDeniedException":
|
|
5073
5062
|
case "com.amazonaws.networkmanager#AccessDeniedException":
|
|
@@ -5086,10 +5075,12 @@ const deserializeAws_restJson1GetNetworkRoutesCommandError = async (output, cont
|
|
|
5086
5075
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
5087
5076
|
default:
|
|
5088
5077
|
const parsedBody = parsedOutput.body;
|
|
5078
|
+
const $metadata = deserializeMetadata(output);
|
|
5079
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5089
5080
|
response = new NetworkManagerServiceException_1.NetworkManagerServiceException({
|
|
5090
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5081
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5091
5082
|
$fault: "client",
|
|
5092
|
-
$metadata
|
|
5083
|
+
$metadata,
|
|
5093
5084
|
});
|
|
5094
5085
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5095
5086
|
}
|
|
@@ -5119,8 +5110,7 @@ const deserializeAws_restJson1GetNetworkTelemetryCommandError = async (output, c
|
|
|
5119
5110
|
body: await parseBody(output.body, context),
|
|
5120
5111
|
};
|
|
5121
5112
|
let response;
|
|
5122
|
-
|
|
5123
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5113
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5124
5114
|
switch (errorCode) {
|
|
5125
5115
|
case "AccessDeniedException":
|
|
5126
5116
|
case "com.amazonaws.networkmanager#AccessDeniedException":
|
|
@@ -5139,10 +5129,12 @@ const deserializeAws_restJson1GetNetworkTelemetryCommandError = async (output, c
|
|
|
5139
5129
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
5140
5130
|
default:
|
|
5141
5131
|
const parsedBody = parsedOutput.body;
|
|
5132
|
+
const $metadata = deserializeMetadata(output);
|
|
5133
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5142
5134
|
response = new NetworkManagerServiceException_1.NetworkManagerServiceException({
|
|
5143
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5135
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5144
5136
|
$fault: "client",
|
|
5145
|
-
$metadata
|
|
5137
|
+
$metadata,
|
|
5146
5138
|
});
|
|
5147
5139
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5148
5140
|
}
|
|
@@ -5168,8 +5160,7 @@ const deserializeAws_restJson1GetResourcePolicyCommandError = async (output, con
|
|
|
5168
5160
|
body: await parseBody(output.body, context),
|
|
5169
5161
|
};
|
|
5170
5162
|
let response;
|
|
5171
|
-
|
|
5172
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5163
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5173
5164
|
switch (errorCode) {
|
|
5174
5165
|
case "AccessDeniedException":
|
|
5175
5166
|
case "com.amazonaws.networkmanager#AccessDeniedException":
|
|
@@ -5185,10 +5176,12 @@ const deserializeAws_restJson1GetResourcePolicyCommandError = async (output, con
|
|
|
5185
5176
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
5186
5177
|
default:
|
|
5187
5178
|
const parsedBody = parsedOutput.body;
|
|
5179
|
+
const $metadata = deserializeMetadata(output);
|
|
5180
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5188
5181
|
response = new NetworkManagerServiceException_1.NetworkManagerServiceException({
|
|
5189
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5182
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5190
5183
|
$fault: "client",
|
|
5191
|
-
$metadata
|
|
5184
|
+
$metadata,
|
|
5192
5185
|
});
|
|
5193
5186
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5194
5187
|
}
|
|
@@ -5214,8 +5207,7 @@ const deserializeAws_restJson1GetRouteAnalysisCommandError = async (output, cont
|
|
|
5214
5207
|
body: await parseBody(output.body, context),
|
|
5215
5208
|
};
|
|
5216
5209
|
let response;
|
|
5217
|
-
|
|
5218
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5210
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5219
5211
|
switch (errorCode) {
|
|
5220
5212
|
case "AccessDeniedException":
|
|
5221
5213
|
case "com.amazonaws.networkmanager#AccessDeniedException":
|
|
@@ -5234,10 +5226,12 @@ const deserializeAws_restJson1GetRouteAnalysisCommandError = async (output, cont
|
|
|
5234
5226
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
5235
5227
|
default:
|
|
5236
5228
|
const parsedBody = parsedOutput.body;
|
|
5229
|
+
const $metadata = deserializeMetadata(output);
|
|
5230
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5237
5231
|
response = new NetworkManagerServiceException_1.NetworkManagerServiceException({
|
|
5238
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5232
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5239
5233
|
$fault: "client",
|
|
5240
|
-
$metadata
|
|
5234
|
+
$metadata,
|
|
5241
5235
|
});
|
|
5242
5236
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5243
5237
|
}
|
|
@@ -5267,8 +5261,7 @@ const deserializeAws_restJson1GetSitesCommandError = async (output, context) =>
|
|
|
5267
5261
|
body: await parseBody(output.body, context),
|
|
5268
5262
|
};
|
|
5269
5263
|
let response;
|
|
5270
|
-
|
|
5271
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5264
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5272
5265
|
switch (errorCode) {
|
|
5273
5266
|
case "AccessDeniedException":
|
|
5274
5267
|
case "com.amazonaws.networkmanager#AccessDeniedException":
|
|
@@ -5287,10 +5280,12 @@ const deserializeAws_restJson1GetSitesCommandError = async (output, context) =>
|
|
|
5287
5280
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
5288
5281
|
default:
|
|
5289
5282
|
const parsedBody = parsedOutput.body;
|
|
5283
|
+
const $metadata = deserializeMetadata(output);
|
|
5284
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5290
5285
|
response = new NetworkManagerServiceException_1.NetworkManagerServiceException({
|
|
5291
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5286
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5292
5287
|
$fault: "client",
|
|
5293
|
-
$metadata
|
|
5288
|
+
$metadata,
|
|
5294
5289
|
});
|
|
5295
5290
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5296
5291
|
}
|
|
@@ -5316,8 +5311,7 @@ const deserializeAws_restJson1GetSiteToSiteVpnAttachmentCommandError = async (ou
|
|
|
5316
5311
|
body: await parseBody(output.body, context),
|
|
5317
5312
|
};
|
|
5318
5313
|
let response;
|
|
5319
|
-
|
|
5320
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5314
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5321
5315
|
switch (errorCode) {
|
|
5322
5316
|
case "AccessDeniedException":
|
|
5323
5317
|
case "com.amazonaws.networkmanager#AccessDeniedException":
|
|
@@ -5336,10 +5330,12 @@ const deserializeAws_restJson1GetSiteToSiteVpnAttachmentCommandError = async (ou
|
|
|
5336
5330
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
5337
5331
|
default:
|
|
5338
5332
|
const parsedBody = parsedOutput.body;
|
|
5333
|
+
const $metadata = deserializeMetadata(output);
|
|
5334
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5339
5335
|
response = new NetworkManagerServiceException_1.NetworkManagerServiceException({
|
|
5340
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5336
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5341
5337
|
$fault: "client",
|
|
5342
|
-
$metadata
|
|
5338
|
+
$metadata,
|
|
5343
5339
|
});
|
|
5344
5340
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5345
5341
|
}
|
|
@@ -5369,8 +5365,7 @@ const deserializeAws_restJson1GetTransitGatewayConnectPeerAssociationsCommandErr
|
|
|
5369
5365
|
body: await parseBody(output.body, context),
|
|
5370
5366
|
};
|
|
5371
5367
|
let response;
|
|
5372
|
-
|
|
5373
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5368
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5374
5369
|
switch (errorCode) {
|
|
5375
5370
|
case "AccessDeniedException":
|
|
5376
5371
|
case "com.amazonaws.networkmanager#AccessDeniedException":
|
|
@@ -5392,10 +5387,12 @@ const deserializeAws_restJson1GetTransitGatewayConnectPeerAssociationsCommandErr
|
|
|
5392
5387
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
5393
5388
|
default:
|
|
5394
5389
|
const parsedBody = parsedOutput.body;
|
|
5390
|
+
const $metadata = deserializeMetadata(output);
|
|
5391
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5395
5392
|
response = new NetworkManagerServiceException_1.NetworkManagerServiceException({
|
|
5396
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5393
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5397
5394
|
$fault: "client",
|
|
5398
|
-
$metadata
|
|
5395
|
+
$metadata,
|
|
5399
5396
|
});
|
|
5400
5397
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5401
5398
|
}
|
|
@@ -5425,8 +5422,7 @@ const deserializeAws_restJson1GetTransitGatewayRegistrationsCommandError = async
|
|
|
5425
5422
|
body: await parseBody(output.body, context),
|
|
5426
5423
|
};
|
|
5427
5424
|
let response;
|
|
5428
|
-
|
|
5429
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5425
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5430
5426
|
switch (errorCode) {
|
|
5431
5427
|
case "AccessDeniedException":
|
|
5432
5428
|
case "com.amazonaws.networkmanager#AccessDeniedException":
|
|
@@ -5445,10 +5441,12 @@ const deserializeAws_restJson1GetTransitGatewayRegistrationsCommandError = async
|
|
|
5445
5441
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
5446
5442
|
default:
|
|
5447
5443
|
const parsedBody = parsedOutput.body;
|
|
5444
|
+
const $metadata = deserializeMetadata(output);
|
|
5445
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5448
5446
|
response = new NetworkManagerServiceException_1.NetworkManagerServiceException({
|
|
5449
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5447
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5450
5448
|
$fault: "client",
|
|
5451
|
-
$metadata
|
|
5449
|
+
$metadata,
|
|
5452
5450
|
});
|
|
5453
5451
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5454
5452
|
}
|
|
@@ -5474,8 +5472,7 @@ const deserializeAws_restJson1GetVpcAttachmentCommandError = async (output, cont
|
|
|
5474
5472
|
body: await parseBody(output.body, context),
|
|
5475
5473
|
};
|
|
5476
5474
|
let response;
|
|
5477
|
-
|
|
5478
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5475
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5479
5476
|
switch (errorCode) {
|
|
5480
5477
|
case "AccessDeniedException":
|
|
5481
5478
|
case "com.amazonaws.networkmanager#AccessDeniedException":
|
|
@@ -5494,10 +5491,12 @@ const deserializeAws_restJson1GetVpcAttachmentCommandError = async (output, cont
|
|
|
5494
5491
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
5495
5492
|
default:
|
|
5496
5493
|
const parsedBody = parsedOutput.body;
|
|
5494
|
+
const $metadata = deserializeMetadata(output);
|
|
5495
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5497
5496
|
response = new NetworkManagerServiceException_1.NetworkManagerServiceException({
|
|
5498
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5497
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5499
5498
|
$fault: "client",
|
|
5500
|
-
$metadata
|
|
5499
|
+
$metadata,
|
|
5501
5500
|
});
|
|
5502
5501
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5503
5502
|
}
|
|
@@ -5527,8 +5526,7 @@ const deserializeAws_restJson1ListAttachmentsCommandError = async (output, conte
|
|
|
5527
5526
|
body: await parseBody(output.body, context),
|
|
5528
5527
|
};
|
|
5529
5528
|
let response;
|
|
5530
|
-
|
|
5531
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5529
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5532
5530
|
switch (errorCode) {
|
|
5533
5531
|
case "AccessDeniedException":
|
|
5534
5532
|
case "com.amazonaws.networkmanager#AccessDeniedException":
|
|
@@ -5544,10 +5542,12 @@ const deserializeAws_restJson1ListAttachmentsCommandError = async (output, conte
|
|
|
5544
5542
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
5545
5543
|
default:
|
|
5546
5544
|
const parsedBody = parsedOutput.body;
|
|
5545
|
+
const $metadata = deserializeMetadata(output);
|
|
5546
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5547
5547
|
response = new NetworkManagerServiceException_1.NetworkManagerServiceException({
|
|
5548
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5548
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5549
5549
|
$fault: "client",
|
|
5550
|
-
$metadata
|
|
5550
|
+
$metadata,
|
|
5551
5551
|
});
|
|
5552
5552
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5553
5553
|
}
|
|
@@ -5577,8 +5577,7 @@ const deserializeAws_restJson1ListConnectPeersCommandError = async (output, cont
|
|
|
5577
5577
|
body: await parseBody(output.body, context),
|
|
5578
5578
|
};
|
|
5579
5579
|
let response;
|
|
5580
|
-
|
|
5581
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5580
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5582
5581
|
switch (errorCode) {
|
|
5583
5582
|
case "AccessDeniedException":
|
|
5584
5583
|
case "com.amazonaws.networkmanager#AccessDeniedException":
|
|
@@ -5594,10 +5593,12 @@ const deserializeAws_restJson1ListConnectPeersCommandError = async (output, cont
|
|
|
5594
5593
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
5595
5594
|
default:
|
|
5596
5595
|
const parsedBody = parsedOutput.body;
|
|
5596
|
+
const $metadata = deserializeMetadata(output);
|
|
5597
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5597
5598
|
response = new NetworkManagerServiceException_1.NetworkManagerServiceException({
|
|
5598
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5599
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5599
5600
|
$fault: "client",
|
|
5600
|
-
$metadata
|
|
5601
|
+
$metadata,
|
|
5601
5602
|
});
|
|
5602
5603
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5603
5604
|
}
|
|
@@ -5627,8 +5628,7 @@ const deserializeAws_restJson1ListCoreNetworkPolicyVersionsCommandError = async
|
|
|
5627
5628
|
body: await parseBody(output.body, context),
|
|
5628
5629
|
};
|
|
5629
5630
|
let response;
|
|
5630
|
-
|
|
5631
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5631
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5632
5632
|
switch (errorCode) {
|
|
5633
5633
|
case "AccessDeniedException":
|
|
5634
5634
|
case "com.amazonaws.networkmanager#AccessDeniedException":
|
|
@@ -5647,10 +5647,12 @@ const deserializeAws_restJson1ListCoreNetworkPolicyVersionsCommandError = async
|
|
|
5647
5647
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
5648
5648
|
default:
|
|
5649
5649
|
const parsedBody = parsedOutput.body;
|
|
5650
|
+
const $metadata = deserializeMetadata(output);
|
|
5651
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5650
5652
|
response = new NetworkManagerServiceException_1.NetworkManagerServiceException({
|
|
5651
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5653
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5652
5654
|
$fault: "client",
|
|
5653
|
-
$metadata
|
|
5655
|
+
$metadata,
|
|
5654
5656
|
});
|
|
5655
5657
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5656
5658
|
}
|
|
@@ -5680,8 +5682,7 @@ const deserializeAws_restJson1ListCoreNetworksCommandError = async (output, cont
|
|
|
5680
5682
|
body: await parseBody(output.body, context),
|
|
5681
5683
|
};
|
|
5682
5684
|
let response;
|
|
5683
|
-
|
|
5684
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5685
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5685
5686
|
switch (errorCode) {
|
|
5686
5687
|
case "AccessDeniedException":
|
|
5687
5688
|
case "com.amazonaws.networkmanager#AccessDeniedException":
|
|
@@ -5697,10 +5698,12 @@ const deserializeAws_restJson1ListCoreNetworksCommandError = async (output, cont
|
|
|
5697
5698
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
5698
5699
|
default:
|
|
5699
5700
|
const parsedBody = parsedOutput.body;
|
|
5701
|
+
const $metadata = deserializeMetadata(output);
|
|
5702
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5700
5703
|
response = new NetworkManagerServiceException_1.NetworkManagerServiceException({
|
|
5701
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5704
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5702
5705
|
$fault: "client",
|
|
5703
|
-
$metadata
|
|
5706
|
+
$metadata,
|
|
5704
5707
|
});
|
|
5705
5708
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5706
5709
|
}
|
|
@@ -5730,15 +5733,16 @@ const deserializeAws_restJson1ListOrganizationServiceAccessStatusCommandError =
|
|
|
5730
5733
|
body: await parseBody(output.body, context),
|
|
5731
5734
|
};
|
|
5732
5735
|
let response;
|
|
5733
|
-
|
|
5734
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5736
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5735
5737
|
switch (errorCode) {
|
|
5736
5738
|
default:
|
|
5737
5739
|
const parsedBody = parsedOutput.body;
|
|
5740
|
+
const $metadata = deserializeMetadata(output);
|
|
5741
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5738
5742
|
response = new NetworkManagerServiceException_1.NetworkManagerServiceException({
|
|
5739
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5743
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5740
5744
|
$fault: "client",
|
|
5741
|
-
$metadata
|
|
5745
|
+
$metadata,
|
|
5742
5746
|
});
|
|
5743
5747
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5744
5748
|
}
|
|
@@ -5764,8 +5768,7 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
5764
5768
|
body: await parseBody(output.body, context),
|
|
5765
5769
|
};
|
|
5766
5770
|
let response;
|
|
5767
|
-
|
|
5768
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5771
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5769
5772
|
switch (errorCode) {
|
|
5770
5773
|
case "AccessDeniedException":
|
|
5771
5774
|
case "com.amazonaws.networkmanager#AccessDeniedException":
|
|
@@ -5784,10 +5787,12 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
5784
5787
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
5785
5788
|
default:
|
|
5786
5789
|
const parsedBody = parsedOutput.body;
|
|
5790
|
+
const $metadata = deserializeMetadata(output);
|
|
5791
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5787
5792
|
response = new NetworkManagerServiceException_1.NetworkManagerServiceException({
|
|
5788
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5793
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5789
5794
|
$fault: "client",
|
|
5790
|
-
$metadata
|
|
5795
|
+
$metadata,
|
|
5791
5796
|
});
|
|
5792
5797
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5793
5798
|
}
|
|
@@ -5813,8 +5818,7 @@ const deserializeAws_restJson1PutCoreNetworkPolicyCommandError = async (output,
|
|
|
5813
5818
|
body: await parseBody(output.body, context),
|
|
5814
5819
|
};
|
|
5815
5820
|
let response;
|
|
5816
|
-
|
|
5817
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5821
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5818
5822
|
switch (errorCode) {
|
|
5819
5823
|
case "AccessDeniedException":
|
|
5820
5824
|
case "com.amazonaws.networkmanager#AccessDeniedException":
|
|
@@ -5839,10 +5843,12 @@ const deserializeAws_restJson1PutCoreNetworkPolicyCommandError = async (output,
|
|
|
5839
5843
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
5840
5844
|
default:
|
|
5841
5845
|
const parsedBody = parsedOutput.body;
|
|
5846
|
+
const $metadata = deserializeMetadata(output);
|
|
5847
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5842
5848
|
response = new NetworkManagerServiceException_1.NetworkManagerServiceException({
|
|
5843
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5849
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5844
5850
|
$fault: "client",
|
|
5845
|
-
$metadata
|
|
5851
|
+
$metadata,
|
|
5846
5852
|
});
|
|
5847
5853
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5848
5854
|
}
|
|
@@ -5864,8 +5870,7 @@ const deserializeAws_restJson1PutResourcePolicyCommandError = async (output, con
|
|
|
5864
5870
|
body: await parseBody(output.body, context),
|
|
5865
5871
|
};
|
|
5866
5872
|
let response;
|
|
5867
|
-
|
|
5868
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5873
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5869
5874
|
switch (errorCode) {
|
|
5870
5875
|
case "AccessDeniedException":
|
|
5871
5876
|
case "com.amazonaws.networkmanager#AccessDeniedException":
|
|
@@ -5887,10 +5892,12 @@ const deserializeAws_restJson1PutResourcePolicyCommandError = async (output, con
|
|
|
5887
5892
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
5888
5893
|
default:
|
|
5889
5894
|
const parsedBody = parsedOutput.body;
|
|
5895
|
+
const $metadata = deserializeMetadata(output);
|
|
5896
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5890
5897
|
response = new NetworkManagerServiceException_1.NetworkManagerServiceException({
|
|
5891
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5898
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5892
5899
|
$fault: "client",
|
|
5893
|
-
$metadata
|
|
5900
|
+
$metadata,
|
|
5894
5901
|
});
|
|
5895
5902
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5896
5903
|
}
|
|
@@ -5916,8 +5923,7 @@ const deserializeAws_restJson1RegisterTransitGatewayCommandError = async (output
|
|
|
5916
5923
|
body: await parseBody(output.body, context),
|
|
5917
5924
|
};
|
|
5918
5925
|
let response;
|
|
5919
|
-
|
|
5920
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5926
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5921
5927
|
switch (errorCode) {
|
|
5922
5928
|
case "AccessDeniedException":
|
|
5923
5929
|
case "com.amazonaws.networkmanager#AccessDeniedException":
|
|
@@ -5939,10 +5945,12 @@ const deserializeAws_restJson1RegisterTransitGatewayCommandError = async (output
|
|
|
5939
5945
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
5940
5946
|
default:
|
|
5941
5947
|
const parsedBody = parsedOutput.body;
|
|
5948
|
+
const $metadata = deserializeMetadata(output);
|
|
5949
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5942
5950
|
response = new NetworkManagerServiceException_1.NetworkManagerServiceException({
|
|
5943
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5951
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5944
5952
|
$fault: "client",
|
|
5945
|
-
$metadata
|
|
5953
|
+
$metadata,
|
|
5946
5954
|
});
|
|
5947
5955
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5948
5956
|
}
|
|
@@ -5968,8 +5976,7 @@ const deserializeAws_restJson1RejectAttachmentCommandError = async (output, cont
|
|
|
5968
5976
|
body: await parseBody(output.body, context),
|
|
5969
5977
|
};
|
|
5970
5978
|
let response;
|
|
5971
|
-
|
|
5972
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5979
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5973
5980
|
switch (errorCode) {
|
|
5974
5981
|
case "AccessDeniedException":
|
|
5975
5982
|
case "com.amazonaws.networkmanager#AccessDeniedException":
|
|
@@ -5991,10 +5998,12 @@ const deserializeAws_restJson1RejectAttachmentCommandError = async (output, cont
|
|
|
5991
5998
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
5992
5999
|
default:
|
|
5993
6000
|
const parsedBody = parsedOutput.body;
|
|
6001
|
+
const $metadata = deserializeMetadata(output);
|
|
6002
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5994
6003
|
response = new NetworkManagerServiceException_1.NetworkManagerServiceException({
|
|
5995
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
6004
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5996
6005
|
$fault: "client",
|
|
5997
|
-
$metadata
|
|
6006
|
+
$metadata,
|
|
5998
6007
|
});
|
|
5999
6008
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
6000
6009
|
}
|
|
@@ -6020,8 +6029,7 @@ const deserializeAws_restJson1RestoreCoreNetworkPolicyVersionCommandError = asyn
|
|
|
6020
6029
|
body: await parseBody(output.body, context),
|
|
6021
6030
|
};
|
|
6022
6031
|
let response;
|
|
6023
|
-
|
|
6024
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6032
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6025
6033
|
switch (errorCode) {
|
|
6026
6034
|
case "AccessDeniedException":
|
|
6027
6035
|
case "com.amazonaws.networkmanager#AccessDeniedException":
|
|
@@ -6043,10 +6051,12 @@ const deserializeAws_restJson1RestoreCoreNetworkPolicyVersionCommandError = asyn
|
|
|
6043
6051
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
6044
6052
|
default:
|
|
6045
6053
|
const parsedBody = parsedOutput.body;
|
|
6054
|
+
const $metadata = deserializeMetadata(output);
|
|
6055
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
6046
6056
|
response = new NetworkManagerServiceException_1.NetworkManagerServiceException({
|
|
6047
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
6057
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
6048
6058
|
$fault: "client",
|
|
6049
|
-
$metadata
|
|
6059
|
+
$metadata,
|
|
6050
6060
|
});
|
|
6051
6061
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
6052
6062
|
}
|
|
@@ -6072,8 +6082,7 @@ const deserializeAws_restJson1StartOrganizationServiceAccessUpdateCommandError =
|
|
|
6072
6082
|
body: await parseBody(output.body, context),
|
|
6073
6083
|
};
|
|
6074
6084
|
let response;
|
|
6075
|
-
|
|
6076
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6085
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6077
6086
|
switch (errorCode) {
|
|
6078
6087
|
case "AccessDeniedException":
|
|
6079
6088
|
case "com.amazonaws.networkmanager#AccessDeniedException":
|
|
@@ -6095,10 +6104,12 @@ const deserializeAws_restJson1StartOrganizationServiceAccessUpdateCommandError =
|
|
|
6095
6104
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
6096
6105
|
default:
|
|
6097
6106
|
const parsedBody = parsedOutput.body;
|
|
6107
|
+
const $metadata = deserializeMetadata(output);
|
|
6108
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
6098
6109
|
response = new NetworkManagerServiceException_1.NetworkManagerServiceException({
|
|
6099
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
6110
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
6100
6111
|
$fault: "client",
|
|
6101
|
-
$metadata
|
|
6112
|
+
$metadata,
|
|
6102
6113
|
});
|
|
6103
6114
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
6104
6115
|
}
|
|
@@ -6124,8 +6135,7 @@ const deserializeAws_restJson1StartRouteAnalysisCommandError = async (output, co
|
|
|
6124
6135
|
body: await parseBody(output.body, context),
|
|
6125
6136
|
};
|
|
6126
6137
|
let response;
|
|
6127
|
-
|
|
6128
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6138
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6129
6139
|
switch (errorCode) {
|
|
6130
6140
|
case "AccessDeniedException":
|
|
6131
6141
|
case "com.amazonaws.networkmanager#AccessDeniedException":
|
|
@@ -6147,10 +6157,12 @@ const deserializeAws_restJson1StartRouteAnalysisCommandError = async (output, co
|
|
|
6147
6157
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
6148
6158
|
default:
|
|
6149
6159
|
const parsedBody = parsedOutput.body;
|
|
6160
|
+
const $metadata = deserializeMetadata(output);
|
|
6161
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
6150
6162
|
response = new NetworkManagerServiceException_1.NetworkManagerServiceException({
|
|
6151
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
6163
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
6152
6164
|
$fault: "client",
|
|
6153
|
-
$metadata
|
|
6165
|
+
$metadata,
|
|
6154
6166
|
});
|
|
6155
6167
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
6156
6168
|
}
|
|
@@ -6172,8 +6184,7 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
6172
6184
|
body: await parseBody(output.body, context),
|
|
6173
6185
|
};
|
|
6174
6186
|
let response;
|
|
6175
|
-
|
|
6176
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6187
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6177
6188
|
switch (errorCode) {
|
|
6178
6189
|
case "AccessDeniedException":
|
|
6179
6190
|
case "com.amazonaws.networkmanager#AccessDeniedException":
|
|
@@ -6198,10 +6209,12 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
6198
6209
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
6199
6210
|
default:
|
|
6200
6211
|
const parsedBody = parsedOutput.body;
|
|
6212
|
+
const $metadata = deserializeMetadata(output);
|
|
6213
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
6201
6214
|
response = new NetworkManagerServiceException_1.NetworkManagerServiceException({
|
|
6202
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
6215
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
6203
6216
|
$fault: "client",
|
|
6204
|
-
$metadata
|
|
6217
|
+
$metadata,
|
|
6205
6218
|
});
|
|
6206
6219
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
6207
6220
|
}
|
|
@@ -6223,8 +6236,7 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
6223
6236
|
body: await parseBody(output.body, context),
|
|
6224
6237
|
};
|
|
6225
6238
|
let response;
|
|
6226
|
-
|
|
6227
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6239
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6228
6240
|
switch (errorCode) {
|
|
6229
6241
|
case "AccessDeniedException":
|
|
6230
6242
|
case "com.amazonaws.networkmanager#AccessDeniedException":
|
|
@@ -6246,10 +6258,12 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
6246
6258
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
6247
6259
|
default:
|
|
6248
6260
|
const parsedBody = parsedOutput.body;
|
|
6261
|
+
const $metadata = deserializeMetadata(output);
|
|
6262
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
6249
6263
|
response = new NetworkManagerServiceException_1.NetworkManagerServiceException({
|
|
6250
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
6264
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
6251
6265
|
$fault: "client",
|
|
6252
|
-
$metadata
|
|
6266
|
+
$metadata,
|
|
6253
6267
|
});
|
|
6254
6268
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
6255
6269
|
}
|
|
@@ -6275,8 +6289,7 @@ const deserializeAws_restJson1UpdateConnectionCommandError = async (output, cont
|
|
|
6275
6289
|
body: await parseBody(output.body, context),
|
|
6276
6290
|
};
|
|
6277
6291
|
let response;
|
|
6278
|
-
|
|
6279
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6292
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6280
6293
|
switch (errorCode) {
|
|
6281
6294
|
case "AccessDeniedException":
|
|
6282
6295
|
case "com.amazonaws.networkmanager#AccessDeniedException":
|
|
@@ -6298,10 +6311,12 @@ const deserializeAws_restJson1UpdateConnectionCommandError = async (output, cont
|
|
|
6298
6311
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
6299
6312
|
default:
|
|
6300
6313
|
const parsedBody = parsedOutput.body;
|
|
6314
|
+
const $metadata = deserializeMetadata(output);
|
|
6315
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
6301
6316
|
response = new NetworkManagerServiceException_1.NetworkManagerServiceException({
|
|
6302
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
6317
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
6303
6318
|
$fault: "client",
|
|
6304
|
-
$metadata
|
|
6319
|
+
$metadata,
|
|
6305
6320
|
});
|
|
6306
6321
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
6307
6322
|
}
|
|
@@ -6327,8 +6342,7 @@ const deserializeAws_restJson1UpdateCoreNetworkCommandError = async (output, con
|
|
|
6327
6342
|
body: await parseBody(output.body, context),
|
|
6328
6343
|
};
|
|
6329
6344
|
let response;
|
|
6330
|
-
|
|
6331
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6345
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6332
6346
|
switch (errorCode) {
|
|
6333
6347
|
case "AccessDeniedException":
|
|
6334
6348
|
case "com.amazonaws.networkmanager#AccessDeniedException":
|
|
@@ -6350,10 +6364,12 @@ const deserializeAws_restJson1UpdateCoreNetworkCommandError = async (output, con
|
|
|
6350
6364
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
6351
6365
|
default:
|
|
6352
6366
|
const parsedBody = parsedOutput.body;
|
|
6367
|
+
const $metadata = deserializeMetadata(output);
|
|
6368
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
6353
6369
|
response = new NetworkManagerServiceException_1.NetworkManagerServiceException({
|
|
6354
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
6370
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
6355
6371
|
$fault: "client",
|
|
6356
|
-
$metadata
|
|
6372
|
+
$metadata,
|
|
6357
6373
|
});
|
|
6358
6374
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
6359
6375
|
}
|
|
@@ -6379,8 +6395,7 @@ const deserializeAws_restJson1UpdateDeviceCommandError = async (output, context)
|
|
|
6379
6395
|
body: await parseBody(output.body, context),
|
|
6380
6396
|
};
|
|
6381
6397
|
let response;
|
|
6382
|
-
|
|
6383
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6398
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6384
6399
|
switch (errorCode) {
|
|
6385
6400
|
case "AccessDeniedException":
|
|
6386
6401
|
case "com.amazonaws.networkmanager#AccessDeniedException":
|
|
@@ -6402,10 +6417,12 @@ const deserializeAws_restJson1UpdateDeviceCommandError = async (output, context)
|
|
|
6402
6417
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
6403
6418
|
default:
|
|
6404
6419
|
const parsedBody = parsedOutput.body;
|
|
6420
|
+
const $metadata = deserializeMetadata(output);
|
|
6421
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
6405
6422
|
response = new NetworkManagerServiceException_1.NetworkManagerServiceException({
|
|
6406
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
6423
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
6407
6424
|
$fault: "client",
|
|
6408
|
-
$metadata
|
|
6425
|
+
$metadata,
|
|
6409
6426
|
});
|
|
6410
6427
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
6411
6428
|
}
|
|
@@ -6431,8 +6448,7 @@ const deserializeAws_restJson1UpdateGlobalNetworkCommandError = async (output, c
|
|
|
6431
6448
|
body: await parseBody(output.body, context),
|
|
6432
6449
|
};
|
|
6433
6450
|
let response;
|
|
6434
|
-
|
|
6435
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6451
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6436
6452
|
switch (errorCode) {
|
|
6437
6453
|
case "AccessDeniedException":
|
|
6438
6454
|
case "com.amazonaws.networkmanager#AccessDeniedException":
|
|
@@ -6454,10 +6470,12 @@ const deserializeAws_restJson1UpdateGlobalNetworkCommandError = async (output, c
|
|
|
6454
6470
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
6455
6471
|
default:
|
|
6456
6472
|
const parsedBody = parsedOutput.body;
|
|
6473
|
+
const $metadata = deserializeMetadata(output);
|
|
6474
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
6457
6475
|
response = new NetworkManagerServiceException_1.NetworkManagerServiceException({
|
|
6458
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
6476
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
6459
6477
|
$fault: "client",
|
|
6460
|
-
$metadata
|
|
6478
|
+
$metadata,
|
|
6461
6479
|
});
|
|
6462
6480
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
6463
6481
|
}
|
|
@@ -6483,8 +6501,7 @@ const deserializeAws_restJson1UpdateLinkCommandError = async (output, context) =
|
|
|
6483
6501
|
body: await parseBody(output.body, context),
|
|
6484
6502
|
};
|
|
6485
6503
|
let response;
|
|
6486
|
-
|
|
6487
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6504
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6488
6505
|
switch (errorCode) {
|
|
6489
6506
|
case "AccessDeniedException":
|
|
6490
6507
|
case "com.amazonaws.networkmanager#AccessDeniedException":
|
|
@@ -6509,10 +6526,12 @@ const deserializeAws_restJson1UpdateLinkCommandError = async (output, context) =
|
|
|
6509
6526
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
6510
6527
|
default:
|
|
6511
6528
|
const parsedBody = parsedOutput.body;
|
|
6529
|
+
const $metadata = deserializeMetadata(output);
|
|
6530
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
6512
6531
|
response = new NetworkManagerServiceException_1.NetworkManagerServiceException({
|
|
6513
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
6532
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
6514
6533
|
$fault: "client",
|
|
6515
|
-
$metadata
|
|
6534
|
+
$metadata,
|
|
6516
6535
|
});
|
|
6517
6536
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
6518
6537
|
}
|
|
@@ -6542,8 +6561,7 @@ const deserializeAws_restJson1UpdateNetworkResourceMetadataCommandError = async
|
|
|
6542
6561
|
body: await parseBody(output.body, context),
|
|
6543
6562
|
};
|
|
6544
6563
|
let response;
|
|
6545
|
-
|
|
6546
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6564
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6547
6565
|
switch (errorCode) {
|
|
6548
6566
|
case "AccessDeniedException":
|
|
6549
6567
|
case "com.amazonaws.networkmanager#AccessDeniedException":
|
|
@@ -6565,10 +6583,12 @@ const deserializeAws_restJson1UpdateNetworkResourceMetadataCommandError = async
|
|
|
6565
6583
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
6566
6584
|
default:
|
|
6567
6585
|
const parsedBody = parsedOutput.body;
|
|
6586
|
+
const $metadata = deserializeMetadata(output);
|
|
6587
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
6568
6588
|
response = new NetworkManagerServiceException_1.NetworkManagerServiceException({
|
|
6569
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
6589
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
6570
6590
|
$fault: "client",
|
|
6571
|
-
$metadata
|
|
6591
|
+
$metadata,
|
|
6572
6592
|
});
|
|
6573
6593
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
6574
6594
|
}
|
|
@@ -6594,8 +6614,7 @@ const deserializeAws_restJson1UpdateSiteCommandError = async (output, context) =
|
|
|
6594
6614
|
body: await parseBody(output.body, context),
|
|
6595
6615
|
};
|
|
6596
6616
|
let response;
|
|
6597
|
-
|
|
6598
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6617
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6599
6618
|
switch (errorCode) {
|
|
6600
6619
|
case "AccessDeniedException":
|
|
6601
6620
|
case "com.amazonaws.networkmanager#AccessDeniedException":
|
|
@@ -6617,10 +6636,12 @@ const deserializeAws_restJson1UpdateSiteCommandError = async (output, context) =
|
|
|
6617
6636
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
6618
6637
|
default:
|
|
6619
6638
|
const parsedBody = parsedOutput.body;
|
|
6639
|
+
const $metadata = deserializeMetadata(output);
|
|
6640
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
6620
6641
|
response = new NetworkManagerServiceException_1.NetworkManagerServiceException({
|
|
6621
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
6642
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
6622
6643
|
$fault: "client",
|
|
6623
|
-
$metadata
|
|
6644
|
+
$metadata,
|
|
6624
6645
|
});
|
|
6625
6646
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
6626
6647
|
}
|
|
@@ -6646,8 +6667,7 @@ const deserializeAws_restJson1UpdateVpcAttachmentCommandError = async (output, c
|
|
|
6646
6667
|
body: await parseBody(output.body, context),
|
|
6647
6668
|
};
|
|
6648
6669
|
let response;
|
|
6649
|
-
|
|
6650
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6670
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6651
6671
|
switch (errorCode) {
|
|
6652
6672
|
case "AccessDeniedException":
|
|
6653
6673
|
case "com.amazonaws.networkmanager#AccessDeniedException":
|
|
@@ -6669,10 +6689,12 @@ const deserializeAws_restJson1UpdateVpcAttachmentCommandError = async (output, c
|
|
|
6669
6689
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
6670
6690
|
default:
|
|
6671
6691
|
const parsedBody = parsedOutput.body;
|
|
6692
|
+
const $metadata = deserializeMetadata(output);
|
|
6693
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
6672
6694
|
response = new NetworkManagerServiceException_1.NetworkManagerServiceException({
|
|
6673
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
6695
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
6674
6696
|
$fault: "client",
|
|
6675
|
-
$metadata
|
|
6697
|
+
$metadata,
|
|
6676
6698
|
});
|
|
6677
6699
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
6678
6700
|
}
|
|
@@ -6817,24 +6839,24 @@ const deserializeAws_restJson1ValidationExceptionResponse = async (parsedOutput,
|
|
|
6817
6839
|
};
|
|
6818
6840
|
const serializeAws_restJson1AWSLocation = (input, context) => {
|
|
6819
6841
|
return {
|
|
6820
|
-
...(input.SubnetArn
|
|
6821
|
-
...(input.Zone
|
|
6842
|
+
...(input.SubnetArn != null && { SubnetArn: input.SubnetArn }),
|
|
6843
|
+
...(input.Zone != null && { Zone: input.Zone }),
|
|
6822
6844
|
};
|
|
6823
6845
|
};
|
|
6824
6846
|
const serializeAws_restJson1Bandwidth = (input, context) => {
|
|
6825
6847
|
return {
|
|
6826
|
-
...(input.DownloadSpeed
|
|
6827
|
-
...(input.UploadSpeed
|
|
6848
|
+
...(input.DownloadSpeed != null && { DownloadSpeed: input.DownloadSpeed }),
|
|
6849
|
+
...(input.UploadSpeed != null && { UploadSpeed: input.UploadSpeed }),
|
|
6828
6850
|
};
|
|
6829
6851
|
};
|
|
6830
6852
|
const serializeAws_restJson1BgpOptions = (input, context) => {
|
|
6831
6853
|
return {
|
|
6832
|
-
...(input.PeerAsn
|
|
6854
|
+
...(input.PeerAsn != null && { PeerAsn: input.PeerAsn }),
|
|
6833
6855
|
};
|
|
6834
6856
|
};
|
|
6835
6857
|
const serializeAws_restJson1ConnectAttachmentOptions = (input, context) => {
|
|
6836
6858
|
return {
|
|
6837
|
-
...(input.Protocol
|
|
6859
|
+
...(input.Protocol != null && { Protocol: input.Protocol }),
|
|
6838
6860
|
};
|
|
6839
6861
|
};
|
|
6840
6862
|
const serializeAws_restJson1ConstrainedStringList = (input, context) => {
|
|
@@ -6849,9 +6871,9 @@ const serializeAws_restJson1ConstrainedStringList = (input, context) => {
|
|
|
6849
6871
|
};
|
|
6850
6872
|
const serializeAws_restJson1CoreNetworkSegmentEdgeIdentifier = (input, context) => {
|
|
6851
6873
|
return {
|
|
6852
|
-
...(input.CoreNetworkId
|
|
6853
|
-
...(input.EdgeLocation
|
|
6854
|
-
...(input.SegmentName
|
|
6874
|
+
...(input.CoreNetworkId != null && { CoreNetworkId: input.CoreNetworkId }),
|
|
6875
|
+
...(input.EdgeLocation != null && { EdgeLocation: input.EdgeLocation }),
|
|
6876
|
+
...(input.SegmentName != null && { SegmentName: input.SegmentName }),
|
|
6855
6877
|
};
|
|
6856
6878
|
};
|
|
6857
6879
|
const serializeAws_restJson1FilterMap = (input, context) => {
|
|
@@ -6877,9 +6899,9 @@ const serializeAws_restJson1FilterValues = (input, context) => {
|
|
|
6877
6899
|
};
|
|
6878
6900
|
const serializeAws_restJson1Location = (input, context) => {
|
|
6879
6901
|
return {
|
|
6880
|
-
...(input.Address
|
|
6881
|
-
...(input.Latitude
|
|
6882
|
-
...(input.Longitude
|
|
6902
|
+
...(input.Address != null && { Address: input.Address }),
|
|
6903
|
+
...(input.Latitude != null && { Latitude: input.Latitude }),
|
|
6904
|
+
...(input.Longitude != null && { Longitude: input.Longitude }),
|
|
6883
6905
|
};
|
|
6884
6906
|
};
|
|
6885
6907
|
const serializeAws_restJson1NetworkResourceMetadataMap = (input, context) => {
|
|
@@ -6895,9 +6917,10 @@ const serializeAws_restJson1NetworkResourceMetadataMap = (input, context) => {
|
|
|
6895
6917
|
};
|
|
6896
6918
|
const serializeAws_restJson1RouteAnalysisEndpointOptionsSpecification = (input, context) => {
|
|
6897
6919
|
return {
|
|
6898
|
-
...(input.IpAddress
|
|
6899
|
-
...(input.TransitGatewayAttachmentArn
|
|
6900
|
-
|
|
6920
|
+
...(input.IpAddress != null && { IpAddress: input.IpAddress }),
|
|
6921
|
+
...(input.TransitGatewayAttachmentArn != null && {
|
|
6922
|
+
TransitGatewayAttachmentArn: input.TransitGatewayAttachmentArn,
|
|
6923
|
+
}),
|
|
6901
6924
|
};
|
|
6902
6925
|
};
|
|
6903
6926
|
const serializeAws_restJson1RouteStateList = (input, context) => {
|
|
@@ -6912,12 +6935,12 @@ const serializeAws_restJson1RouteStateList = (input, context) => {
|
|
|
6912
6935
|
};
|
|
6913
6936
|
const serializeAws_restJson1RouteTableIdentifier = (input, context) => {
|
|
6914
6937
|
return {
|
|
6915
|
-
...(input.CoreNetworkSegmentEdge
|
|
6916
|
-
input.CoreNetworkSegmentEdge !== null && {
|
|
6938
|
+
...(input.CoreNetworkSegmentEdge != null && {
|
|
6917
6939
|
CoreNetworkSegmentEdge: serializeAws_restJson1CoreNetworkSegmentEdgeIdentifier(input.CoreNetworkSegmentEdge, context),
|
|
6918
6940
|
}),
|
|
6919
|
-
...(input.TransitGatewayRouteTableArn
|
|
6920
|
-
|
|
6941
|
+
...(input.TransitGatewayRouteTableArn != null && {
|
|
6942
|
+
TransitGatewayRouteTableArn: input.TransitGatewayRouteTableArn,
|
|
6943
|
+
}),
|
|
6921
6944
|
};
|
|
6922
6945
|
};
|
|
6923
6946
|
const serializeAws_restJson1RouteTypeList = (input, context) => {
|
|
@@ -6942,8 +6965,8 @@ const serializeAws_restJson1SubnetArnList = (input, context) => {
|
|
|
6942
6965
|
};
|
|
6943
6966
|
const serializeAws_restJson1Tag = (input, context) => {
|
|
6944
6967
|
return {
|
|
6945
|
-
...(input.Key
|
|
6946
|
-
...(input.Value
|
|
6968
|
+
...(input.Key != null && { Key: input.Key }),
|
|
6969
|
+
...(input.Value != null && { Value: input.Value }),
|
|
6947
6970
|
};
|
|
6948
6971
|
};
|
|
6949
6972
|
const serializeAws_restJson1TagList = (input, context) => {
|
|
@@ -6958,7 +6981,7 @@ const serializeAws_restJson1TagList = (input, context) => {
|
|
|
6958
6981
|
};
|
|
6959
6982
|
const serializeAws_restJson1VpcOptions = (input, context) => {
|
|
6960
6983
|
return {
|
|
6961
|
-
...(input.Ipv6Support
|
|
6984
|
+
...(input.Ipv6Support != null && { Ipv6Support: input.Ipv6Support }),
|
|
6962
6985
|
};
|
|
6963
6986
|
};
|
|
6964
6987
|
const deserializeAws_restJson1AccountStatus = (output, context) => {
|
|
@@ -6985,23 +7008,17 @@ const deserializeAws_restJson1Attachment = (output, context) => {
|
|
|
6985
7008
|
AttachmentType: (0, smithy_client_1.expectString)(output.AttachmentType),
|
|
6986
7009
|
CoreNetworkArn: (0, smithy_client_1.expectString)(output.CoreNetworkArn),
|
|
6987
7010
|
CoreNetworkId: (0, smithy_client_1.expectString)(output.CoreNetworkId),
|
|
6988
|
-
CreatedAt: output.CreatedAt
|
|
6989
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedAt)))
|
|
6990
|
-
: undefined,
|
|
7011
|
+
CreatedAt: output.CreatedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedAt))) : undefined,
|
|
6991
7012
|
EdgeLocation: (0, smithy_client_1.expectString)(output.EdgeLocation),
|
|
6992
7013
|
OwnerAccountId: (0, smithy_client_1.expectString)(output.OwnerAccountId),
|
|
6993
|
-
ProposedSegmentChange: output.ProposedSegmentChange
|
|
7014
|
+
ProposedSegmentChange: output.ProposedSegmentChange != null
|
|
6994
7015
|
? deserializeAws_restJson1ProposedSegmentChange(output.ProposedSegmentChange, context)
|
|
6995
7016
|
: undefined,
|
|
6996
7017
|
ResourceArn: (0, smithy_client_1.expectString)(output.ResourceArn),
|
|
6997
7018
|
SegmentName: (0, smithy_client_1.expectString)(output.SegmentName),
|
|
6998
7019
|
State: (0, smithy_client_1.expectString)(output.State),
|
|
6999
|
-
Tags: output.Tags
|
|
7000
|
-
|
|
7001
|
-
: undefined,
|
|
7002
|
-
UpdatedAt: output.UpdatedAt !== undefined && output.UpdatedAt !== null
|
|
7003
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.UpdatedAt)))
|
|
7004
|
-
: undefined,
|
|
7020
|
+
Tags: output.Tags != null ? deserializeAws_restJson1TagList(output.Tags, context) : undefined,
|
|
7021
|
+
UpdatedAt: output.UpdatedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.UpdatedAt))) : undefined,
|
|
7005
7022
|
};
|
|
7006
7023
|
};
|
|
7007
7024
|
const deserializeAws_restJson1AttachmentList = (output, context) => {
|
|
@@ -7029,12 +7046,8 @@ const deserializeAws_restJson1Bandwidth = (output, context) => {
|
|
|
7029
7046
|
};
|
|
7030
7047
|
const deserializeAws_restJson1ConnectAttachment = (output, context) => {
|
|
7031
7048
|
return {
|
|
7032
|
-
Attachment: output.Attachment
|
|
7033
|
-
|
|
7034
|
-
: undefined,
|
|
7035
|
-
Options: output.Options !== undefined && output.Options !== null
|
|
7036
|
-
? deserializeAws_restJson1ConnectAttachmentOptions(output.Options, context)
|
|
7037
|
-
: undefined,
|
|
7049
|
+
Attachment: output.Attachment != null ? deserializeAws_restJson1Attachment(output.Attachment, context) : undefined,
|
|
7050
|
+
Options: output.Options != null ? deserializeAws_restJson1ConnectAttachmentOptions(output.Options, context) : undefined,
|
|
7038
7051
|
TransportAttachmentId: (0, smithy_client_1.expectString)(output.TransportAttachmentId),
|
|
7039
7052
|
};
|
|
7040
7053
|
};
|
|
@@ -7049,25 +7062,19 @@ const deserializeAws_restJson1Connection = (output, context) => {
|
|
|
7049
7062
|
ConnectedLinkId: (0, smithy_client_1.expectString)(output.ConnectedLinkId),
|
|
7050
7063
|
ConnectionArn: (0, smithy_client_1.expectString)(output.ConnectionArn),
|
|
7051
7064
|
ConnectionId: (0, smithy_client_1.expectString)(output.ConnectionId),
|
|
7052
|
-
CreatedAt: output.CreatedAt
|
|
7053
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedAt)))
|
|
7054
|
-
: undefined,
|
|
7065
|
+
CreatedAt: output.CreatedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedAt))) : undefined,
|
|
7055
7066
|
Description: (0, smithy_client_1.expectString)(output.Description),
|
|
7056
7067
|
DeviceId: (0, smithy_client_1.expectString)(output.DeviceId),
|
|
7057
7068
|
GlobalNetworkId: (0, smithy_client_1.expectString)(output.GlobalNetworkId),
|
|
7058
7069
|
LinkId: (0, smithy_client_1.expectString)(output.LinkId),
|
|
7059
7070
|
State: (0, smithy_client_1.expectString)(output.State),
|
|
7060
|
-
Tags: output.Tags
|
|
7061
|
-
? deserializeAws_restJson1TagList(output.Tags, context)
|
|
7062
|
-
: undefined,
|
|
7071
|
+
Tags: output.Tags != null ? deserializeAws_restJson1TagList(output.Tags, context) : undefined,
|
|
7063
7072
|
};
|
|
7064
7073
|
};
|
|
7065
7074
|
const deserializeAws_restJson1ConnectionHealth = (output, context) => {
|
|
7066
7075
|
return {
|
|
7067
7076
|
Status: (0, smithy_client_1.expectString)(output.Status),
|
|
7068
|
-
Timestamp: output.Timestamp
|
|
7069
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.Timestamp)))
|
|
7070
|
-
: undefined,
|
|
7077
|
+
Timestamp: output.Timestamp != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.Timestamp))) : undefined,
|
|
7071
7078
|
Type: (0, smithy_client_1.expectString)(output.Type),
|
|
7072
7079
|
};
|
|
7073
7080
|
};
|
|
@@ -7084,20 +7091,16 @@ const deserializeAws_restJson1ConnectionList = (output, context) => {
|
|
|
7084
7091
|
};
|
|
7085
7092
|
const deserializeAws_restJson1ConnectPeer = (output, context) => {
|
|
7086
7093
|
return {
|
|
7087
|
-
Configuration: output.Configuration
|
|
7094
|
+
Configuration: output.Configuration != null
|
|
7088
7095
|
? deserializeAws_restJson1ConnectPeerConfiguration(output.Configuration, context)
|
|
7089
7096
|
: undefined,
|
|
7090
7097
|
ConnectAttachmentId: (0, smithy_client_1.expectString)(output.ConnectAttachmentId),
|
|
7091
7098
|
ConnectPeerId: (0, smithy_client_1.expectString)(output.ConnectPeerId),
|
|
7092
7099
|
CoreNetworkId: (0, smithy_client_1.expectString)(output.CoreNetworkId),
|
|
7093
|
-
CreatedAt: output.CreatedAt
|
|
7094
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedAt)))
|
|
7095
|
-
: undefined,
|
|
7100
|
+
CreatedAt: output.CreatedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedAt))) : undefined,
|
|
7096
7101
|
EdgeLocation: (0, smithy_client_1.expectString)(output.EdgeLocation),
|
|
7097
7102
|
State: (0, smithy_client_1.expectString)(output.State),
|
|
7098
|
-
Tags: output.Tags
|
|
7099
|
-
? deserializeAws_restJson1TagList(output.Tags, context)
|
|
7100
|
-
: undefined,
|
|
7103
|
+
Tags: output.Tags != null ? deserializeAws_restJson1TagList(output.Tags, context) : undefined,
|
|
7101
7104
|
};
|
|
7102
7105
|
};
|
|
7103
7106
|
const deserializeAws_restJson1ConnectPeerAssociation = (output, context) => {
|
|
@@ -7141,11 +7144,11 @@ const deserializeAws_restJson1ConnectPeerBgpConfigurationList = (output, context
|
|
|
7141
7144
|
};
|
|
7142
7145
|
const deserializeAws_restJson1ConnectPeerConfiguration = (output, context) => {
|
|
7143
7146
|
return {
|
|
7144
|
-
BgpConfigurations: output.BgpConfigurations
|
|
7147
|
+
BgpConfigurations: output.BgpConfigurations != null
|
|
7145
7148
|
? deserializeAws_restJson1ConnectPeerBgpConfigurationList(output.BgpConfigurations, context)
|
|
7146
7149
|
: undefined,
|
|
7147
7150
|
CoreNetworkAddress: (0, smithy_client_1.expectString)(output.CoreNetworkAddress),
|
|
7148
|
-
InsideCidrBlocks: output.InsideCidrBlocks
|
|
7151
|
+
InsideCidrBlocks: output.InsideCidrBlocks != null
|
|
7149
7152
|
? deserializeAws_restJson1ConstrainedStringList(output.InsideCidrBlocks, context)
|
|
7150
7153
|
: undefined,
|
|
7151
7154
|
PeerAddress: (0, smithy_client_1.expectString)(output.PeerAddress),
|
|
@@ -7158,13 +7161,9 @@ const deserializeAws_restJson1ConnectPeerSummary = (output, context) => {
|
|
|
7158
7161
|
ConnectPeerId: (0, smithy_client_1.expectString)(output.ConnectPeerId),
|
|
7159
7162
|
ConnectPeerState: (0, smithy_client_1.expectString)(output.ConnectPeerState),
|
|
7160
7163
|
CoreNetworkId: (0, smithy_client_1.expectString)(output.CoreNetworkId),
|
|
7161
|
-
CreatedAt: output.CreatedAt
|
|
7162
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedAt)))
|
|
7163
|
-
: undefined,
|
|
7164
|
+
CreatedAt: output.CreatedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedAt))) : undefined,
|
|
7164
7165
|
EdgeLocation: (0, smithy_client_1.expectString)(output.EdgeLocation),
|
|
7165
|
-
Tags: output.Tags
|
|
7166
|
-
? deserializeAws_restJson1TagList(output.Tags, context)
|
|
7167
|
-
: undefined,
|
|
7166
|
+
Tags: output.Tags != null ? deserializeAws_restJson1TagList(output.Tags, context) : undefined,
|
|
7168
7167
|
};
|
|
7169
7168
|
};
|
|
7170
7169
|
const deserializeAws_restJson1ConnectPeerSummaryList = (output, context) => {
|
|
@@ -7193,31 +7192,21 @@ const deserializeAws_restJson1CoreNetwork = (output, context) => {
|
|
|
7193
7192
|
return {
|
|
7194
7193
|
CoreNetworkArn: (0, smithy_client_1.expectString)(output.CoreNetworkArn),
|
|
7195
7194
|
CoreNetworkId: (0, smithy_client_1.expectString)(output.CoreNetworkId),
|
|
7196
|
-
CreatedAt: output.CreatedAt
|
|
7197
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedAt)))
|
|
7198
|
-
: undefined,
|
|
7195
|
+
CreatedAt: output.CreatedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedAt))) : undefined,
|
|
7199
7196
|
Description: (0, smithy_client_1.expectString)(output.Description),
|
|
7200
|
-
Edges: output.Edges
|
|
7201
|
-
? deserializeAws_restJson1CoreNetworkEdgeList(output.Edges, context)
|
|
7202
|
-
: undefined,
|
|
7197
|
+
Edges: output.Edges != null ? deserializeAws_restJson1CoreNetworkEdgeList(output.Edges, context) : undefined,
|
|
7203
7198
|
GlobalNetworkId: (0, smithy_client_1.expectString)(output.GlobalNetworkId),
|
|
7204
|
-
Segments: output.Segments
|
|
7205
|
-
? deserializeAws_restJson1CoreNetworkSegmentList(output.Segments, context)
|
|
7206
|
-
: undefined,
|
|
7199
|
+
Segments: output.Segments != null ? deserializeAws_restJson1CoreNetworkSegmentList(output.Segments, context) : undefined,
|
|
7207
7200
|
State: (0, smithy_client_1.expectString)(output.State),
|
|
7208
|
-
Tags: output.Tags
|
|
7209
|
-
? deserializeAws_restJson1TagList(output.Tags, context)
|
|
7210
|
-
: undefined,
|
|
7201
|
+
Tags: output.Tags != null ? deserializeAws_restJson1TagList(output.Tags, context) : undefined,
|
|
7211
7202
|
};
|
|
7212
7203
|
};
|
|
7213
7204
|
const deserializeAws_restJson1CoreNetworkChange = (output, context) => {
|
|
7214
7205
|
return {
|
|
7215
7206
|
Action: (0, smithy_client_1.expectString)(output.Action),
|
|
7216
7207
|
Identifier: (0, smithy_client_1.expectString)(output.Identifier),
|
|
7217
|
-
NewValues: output.NewValues
|
|
7218
|
-
|
|
7219
|
-
: undefined,
|
|
7220
|
-
PreviousValues: output.PreviousValues !== undefined && output.PreviousValues !== null
|
|
7208
|
+
NewValues: output.NewValues != null ? deserializeAws_restJson1CoreNetworkChangeValues(output.NewValues, context) : undefined,
|
|
7209
|
+
PreviousValues: output.PreviousValues != null
|
|
7221
7210
|
? deserializeAws_restJson1CoreNetworkChangeValues(output.PreviousValues, context)
|
|
7222
7211
|
: undefined,
|
|
7223
7212
|
Type: (0, smithy_client_1.expectString)(output.Type),
|
|
@@ -7239,14 +7228,14 @@ const deserializeAws_restJson1CoreNetworkChangeValues = (output, context) => {
|
|
|
7239
7228
|
Asn: (0, smithy_client_1.expectLong)(output.Asn),
|
|
7240
7229
|
Cidr: (0, smithy_client_1.expectString)(output.Cidr),
|
|
7241
7230
|
DestinationIdentifier: (0, smithy_client_1.expectString)(output.DestinationIdentifier),
|
|
7242
|
-
EdgeLocations: output.EdgeLocations
|
|
7231
|
+
EdgeLocations: output.EdgeLocations != null
|
|
7243
7232
|
? deserializeAws_restJson1ExternalRegionCodeList(output.EdgeLocations, context)
|
|
7244
7233
|
: undefined,
|
|
7245
|
-
InsideCidrBlocks: output.InsideCidrBlocks
|
|
7234
|
+
InsideCidrBlocks: output.InsideCidrBlocks != null
|
|
7246
7235
|
? deserializeAws_restJson1ConstrainedStringList(output.InsideCidrBlocks, context)
|
|
7247
7236
|
: undefined,
|
|
7248
7237
|
SegmentName: (0, smithy_client_1.expectString)(output.SegmentName),
|
|
7249
|
-
SharedSegments: output.SharedSegments
|
|
7238
|
+
SharedSegments: output.SharedSegments != null
|
|
7250
7239
|
? deserializeAws_restJson1ConstrainedStringList(output.SharedSegments, context)
|
|
7251
7240
|
: undefined,
|
|
7252
7241
|
};
|
|
@@ -7255,7 +7244,7 @@ const deserializeAws_restJson1CoreNetworkEdge = (output, context) => {
|
|
|
7255
7244
|
return {
|
|
7256
7245
|
Asn: (0, smithy_client_1.expectLong)(output.Asn),
|
|
7257
7246
|
EdgeLocation: (0, smithy_client_1.expectString)(output.EdgeLocation),
|
|
7258
|
-
InsideCidrBlocks: output.InsideCidrBlocks
|
|
7247
|
+
InsideCidrBlocks: output.InsideCidrBlocks != null
|
|
7259
7248
|
? deserializeAws_restJson1ConstrainedStringList(output.InsideCidrBlocks, context)
|
|
7260
7249
|
: undefined,
|
|
7261
7250
|
};
|
|
@@ -7276,14 +7265,10 @@ const deserializeAws_restJson1CoreNetworkPolicy = (output, context) => {
|
|
|
7276
7265
|
Alias: (0, smithy_client_1.expectString)(output.Alias),
|
|
7277
7266
|
ChangeSetState: (0, smithy_client_1.expectString)(output.ChangeSetState),
|
|
7278
7267
|
CoreNetworkId: (0, smithy_client_1.expectString)(output.CoreNetworkId),
|
|
7279
|
-
CreatedAt: output.CreatedAt
|
|
7280
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedAt)))
|
|
7281
|
-
: undefined,
|
|
7268
|
+
CreatedAt: output.CreatedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedAt))) : undefined,
|
|
7282
7269
|
Description: (0, smithy_client_1.expectString)(output.Description),
|
|
7283
|
-
PolicyDocument: output.PolicyDocument
|
|
7284
|
-
|
|
7285
|
-
: undefined,
|
|
7286
|
-
PolicyErrors: output.PolicyErrors !== undefined && output.PolicyErrors !== null
|
|
7270
|
+
PolicyDocument: output.PolicyDocument != null ? new smithy_client_1.LazyJsonString(output.PolicyDocument) : undefined,
|
|
7271
|
+
PolicyErrors: output.PolicyErrors != null
|
|
7287
7272
|
? deserializeAws_restJson1CoreNetworkPolicyErrorList(output.PolicyErrors, context)
|
|
7288
7273
|
: undefined,
|
|
7289
7274
|
PolicyVersionId: (0, smithy_client_1.expectInt32)(output.PolicyVersionId),
|
|
@@ -7312,9 +7297,7 @@ const deserializeAws_restJson1CoreNetworkPolicyVersion = (output, context) => {
|
|
|
7312
7297
|
Alias: (0, smithy_client_1.expectString)(output.Alias),
|
|
7313
7298
|
ChangeSetState: (0, smithy_client_1.expectString)(output.ChangeSetState),
|
|
7314
7299
|
CoreNetworkId: (0, smithy_client_1.expectString)(output.CoreNetworkId),
|
|
7315
|
-
CreatedAt: output.CreatedAt
|
|
7316
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedAt)))
|
|
7317
|
-
: undefined,
|
|
7300
|
+
CreatedAt: output.CreatedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedAt))) : undefined,
|
|
7318
7301
|
Description: (0, smithy_client_1.expectString)(output.Description),
|
|
7319
7302
|
PolicyVersionId: (0, smithy_client_1.expectInt32)(output.PolicyVersionId),
|
|
7320
7303
|
};
|
|
@@ -7332,11 +7315,11 @@ const deserializeAws_restJson1CoreNetworkPolicyVersionList = (output, context) =
|
|
|
7332
7315
|
};
|
|
7333
7316
|
const deserializeAws_restJson1CoreNetworkSegment = (output, context) => {
|
|
7334
7317
|
return {
|
|
7335
|
-
EdgeLocations: output.EdgeLocations
|
|
7318
|
+
EdgeLocations: output.EdgeLocations != null
|
|
7336
7319
|
? deserializeAws_restJson1ExternalRegionCodeList(output.EdgeLocations, context)
|
|
7337
7320
|
: undefined,
|
|
7338
7321
|
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
7339
|
-
SharedSegments: output.SharedSegments
|
|
7322
|
+
SharedSegments: output.SharedSegments != null
|
|
7340
7323
|
? deserializeAws_restJson1ConstrainedStringList(output.SharedSegments, context)
|
|
7341
7324
|
: undefined,
|
|
7342
7325
|
};
|
|
@@ -7367,9 +7350,7 @@ const deserializeAws_restJson1CoreNetworkSummary = (output, context) => {
|
|
|
7367
7350
|
GlobalNetworkId: (0, smithy_client_1.expectString)(output.GlobalNetworkId),
|
|
7368
7351
|
OwnerAccountId: (0, smithy_client_1.expectString)(output.OwnerAccountId),
|
|
7369
7352
|
State: (0, smithy_client_1.expectString)(output.State),
|
|
7370
|
-
Tags: output.Tags
|
|
7371
|
-
? deserializeAws_restJson1TagList(output.Tags, context)
|
|
7372
|
-
: undefined,
|
|
7353
|
+
Tags: output.Tags != null ? deserializeAws_restJson1TagList(output.Tags, context) : undefined,
|
|
7373
7354
|
};
|
|
7374
7355
|
};
|
|
7375
7356
|
const deserializeAws_restJson1CoreNetworkSummaryList = (output, context) => {
|
|
@@ -7405,26 +7386,18 @@ const deserializeAws_restJson1CustomerGatewayAssociationList = (output, context)
|
|
|
7405
7386
|
};
|
|
7406
7387
|
const deserializeAws_restJson1Device = (output, context) => {
|
|
7407
7388
|
return {
|
|
7408
|
-
AWSLocation: output.AWSLocation
|
|
7409
|
-
|
|
7410
|
-
: undefined,
|
|
7411
|
-
CreatedAt: output.CreatedAt !== undefined && output.CreatedAt !== null
|
|
7412
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedAt)))
|
|
7413
|
-
: undefined,
|
|
7389
|
+
AWSLocation: output.AWSLocation != null ? deserializeAws_restJson1AWSLocation(output.AWSLocation, context) : undefined,
|
|
7390
|
+
CreatedAt: output.CreatedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedAt))) : undefined,
|
|
7414
7391
|
Description: (0, smithy_client_1.expectString)(output.Description),
|
|
7415
7392
|
DeviceArn: (0, smithy_client_1.expectString)(output.DeviceArn),
|
|
7416
7393
|
DeviceId: (0, smithy_client_1.expectString)(output.DeviceId),
|
|
7417
7394
|
GlobalNetworkId: (0, smithy_client_1.expectString)(output.GlobalNetworkId),
|
|
7418
|
-
Location: output.Location
|
|
7419
|
-
? deserializeAws_restJson1Location(output.Location, context)
|
|
7420
|
-
: undefined,
|
|
7395
|
+
Location: output.Location != null ? deserializeAws_restJson1Location(output.Location, context) : undefined,
|
|
7421
7396
|
Model: (0, smithy_client_1.expectString)(output.Model),
|
|
7422
7397
|
SerialNumber: (0, smithy_client_1.expectString)(output.SerialNumber),
|
|
7423
7398
|
SiteId: (0, smithy_client_1.expectString)(output.SiteId),
|
|
7424
7399
|
State: (0, smithy_client_1.expectString)(output.State),
|
|
7425
|
-
Tags: output.Tags
|
|
7426
|
-
? deserializeAws_restJson1TagList(output.Tags, context)
|
|
7427
|
-
: undefined,
|
|
7400
|
+
Tags: output.Tags != null ? deserializeAws_restJson1TagList(output.Tags, context) : undefined,
|
|
7428
7401
|
Type: (0, smithy_client_1.expectString)(output.Type),
|
|
7429
7402
|
Vendor: (0, smithy_client_1.expectString)(output.Vendor),
|
|
7430
7403
|
};
|
|
@@ -7464,16 +7437,12 @@ const deserializeAws_restJson1ExternalRegionCodeList = (output, context) => {
|
|
|
7464
7437
|
};
|
|
7465
7438
|
const deserializeAws_restJson1GlobalNetwork = (output, context) => {
|
|
7466
7439
|
return {
|
|
7467
|
-
CreatedAt: output.CreatedAt
|
|
7468
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedAt)))
|
|
7469
|
-
: undefined,
|
|
7440
|
+
CreatedAt: output.CreatedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedAt))) : undefined,
|
|
7470
7441
|
Description: (0, smithy_client_1.expectString)(output.Description),
|
|
7471
7442
|
GlobalNetworkArn: (0, smithy_client_1.expectString)(output.GlobalNetworkArn),
|
|
7472
7443
|
GlobalNetworkId: (0, smithy_client_1.expectString)(output.GlobalNetworkId),
|
|
7473
7444
|
State: (0, smithy_client_1.expectString)(output.State),
|
|
7474
|
-
Tags: output.Tags
|
|
7475
|
-
? deserializeAws_restJson1TagList(output.Tags, context)
|
|
7476
|
-
: undefined,
|
|
7445
|
+
Tags: output.Tags != null ? deserializeAws_restJson1TagList(output.Tags, context) : undefined,
|
|
7477
7446
|
};
|
|
7478
7447
|
};
|
|
7479
7448
|
const deserializeAws_restJson1GlobalNetworkList = (output, context) => {
|
|
@@ -7489,12 +7458,8 @@ const deserializeAws_restJson1GlobalNetworkList = (output, context) => {
|
|
|
7489
7458
|
};
|
|
7490
7459
|
const deserializeAws_restJson1Link = (output, context) => {
|
|
7491
7460
|
return {
|
|
7492
|
-
Bandwidth: output.Bandwidth
|
|
7493
|
-
|
|
7494
|
-
: undefined,
|
|
7495
|
-
CreatedAt: output.CreatedAt !== undefined && output.CreatedAt !== null
|
|
7496
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedAt)))
|
|
7497
|
-
: undefined,
|
|
7461
|
+
Bandwidth: output.Bandwidth != null ? deserializeAws_restJson1Bandwidth(output.Bandwidth, context) : undefined,
|
|
7462
|
+
CreatedAt: output.CreatedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedAt))) : undefined,
|
|
7498
7463
|
Description: (0, smithy_client_1.expectString)(output.Description),
|
|
7499
7464
|
GlobalNetworkId: (0, smithy_client_1.expectString)(output.GlobalNetworkId),
|
|
7500
7465
|
LinkArn: (0, smithy_client_1.expectString)(output.LinkArn),
|
|
@@ -7502,9 +7467,7 @@ const deserializeAws_restJson1Link = (output, context) => {
|
|
|
7502
7467
|
Provider: (0, smithy_client_1.expectString)(output.Provider),
|
|
7503
7468
|
SiteId: (0, smithy_client_1.expectString)(output.SiteId),
|
|
7504
7469
|
State: (0, smithy_client_1.expectString)(output.State),
|
|
7505
|
-
Tags: output.Tags
|
|
7506
|
-
? deserializeAws_restJson1TagList(output.Tags, context)
|
|
7507
|
-
: undefined,
|
|
7470
|
+
Tags: output.Tags != null ? deserializeAws_restJson1TagList(output.Tags, context) : undefined,
|
|
7508
7471
|
Type: (0, smithy_client_1.expectString)(output.Type),
|
|
7509
7472
|
};
|
|
7510
7473
|
};
|
|
@@ -7551,19 +7514,17 @@ const deserializeAws_restJson1NetworkResource = (output, context) => {
|
|
|
7551
7514
|
AwsRegion: (0, smithy_client_1.expectString)(output.AwsRegion),
|
|
7552
7515
|
CoreNetworkId: (0, smithy_client_1.expectString)(output.CoreNetworkId),
|
|
7553
7516
|
Definition: (0, smithy_client_1.expectString)(output.Definition),
|
|
7554
|
-
DefinitionTimestamp: output.DefinitionTimestamp
|
|
7517
|
+
DefinitionTimestamp: output.DefinitionTimestamp != null
|
|
7555
7518
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.DefinitionTimestamp)))
|
|
7556
7519
|
: undefined,
|
|
7557
|
-
Metadata: output.Metadata
|
|
7520
|
+
Metadata: output.Metadata != null
|
|
7558
7521
|
? deserializeAws_restJson1NetworkResourceMetadataMap(output.Metadata, context)
|
|
7559
7522
|
: undefined,
|
|
7560
7523
|
RegisteredGatewayArn: (0, smithy_client_1.expectString)(output.RegisteredGatewayArn),
|
|
7561
7524
|
ResourceArn: (0, smithy_client_1.expectString)(output.ResourceArn),
|
|
7562
7525
|
ResourceId: (0, smithy_client_1.expectString)(output.ResourceId),
|
|
7563
7526
|
ResourceType: (0, smithy_client_1.expectString)(output.ResourceType),
|
|
7564
|
-
Tags: output.Tags
|
|
7565
|
-
? deserializeAws_restJson1TagList(output.Tags, context)
|
|
7566
|
-
: undefined,
|
|
7527
|
+
Tags: output.Tags != null ? deserializeAws_restJson1TagList(output.Tags, context) : undefined,
|
|
7567
7528
|
};
|
|
7568
7529
|
};
|
|
7569
7530
|
const deserializeAws_restJson1NetworkResourceCount = (output, context) => {
|
|
@@ -7618,7 +7579,7 @@ const deserializeAws_restJson1NetworkResourceSummary = (output, context) => {
|
|
|
7618
7579
|
const deserializeAws_restJson1NetworkRoute = (output, context) => {
|
|
7619
7580
|
return {
|
|
7620
7581
|
DestinationCidrBlock: (0, smithy_client_1.expectString)(output.DestinationCidrBlock),
|
|
7621
|
-
Destinations: output.Destinations
|
|
7582
|
+
Destinations: output.Destinations != null
|
|
7622
7583
|
? deserializeAws_restJson1NetworkRouteDestinationList(output.Destinations, context)
|
|
7623
7584
|
: undefined,
|
|
7624
7585
|
PrefixListId: (0, smithy_client_1.expectString)(output.PrefixListId),
|
|
@@ -7664,9 +7625,7 @@ const deserializeAws_restJson1NetworkTelemetry = (output, context) => {
|
|
|
7664
7625
|
Address: (0, smithy_client_1.expectString)(output.Address),
|
|
7665
7626
|
AwsRegion: (0, smithy_client_1.expectString)(output.AwsRegion),
|
|
7666
7627
|
CoreNetworkId: (0, smithy_client_1.expectString)(output.CoreNetworkId),
|
|
7667
|
-
Health: output.Health
|
|
7668
|
-
? deserializeAws_restJson1ConnectionHealth(output.Health, context)
|
|
7669
|
-
: undefined,
|
|
7628
|
+
Health: output.Health != null ? deserializeAws_restJson1ConnectionHealth(output.Health, context) : undefined,
|
|
7670
7629
|
RegisteredGatewayArn: (0, smithy_client_1.expectString)(output.RegisteredGatewayArn),
|
|
7671
7630
|
ResourceArn: (0, smithy_client_1.expectString)(output.ResourceArn),
|
|
7672
7631
|
ResourceId: (0, smithy_client_1.expectString)(output.ResourceId),
|
|
@@ -7686,7 +7645,7 @@ const deserializeAws_restJson1NetworkTelemetryList = (output, context) => {
|
|
|
7686
7645
|
};
|
|
7687
7646
|
const deserializeAws_restJson1OrganizationStatus = (output, context) => {
|
|
7688
7647
|
return {
|
|
7689
|
-
AccountStatusList: output.AccountStatusList
|
|
7648
|
+
AccountStatusList: output.AccountStatusList != null
|
|
7690
7649
|
? deserializeAws_restJson1AccountStatusList(output.AccountStatusList, context)
|
|
7691
7650
|
: undefined,
|
|
7692
7651
|
OrganizationAwsServiceAccessStatus: (0, smithy_client_1.expectString)(output.OrganizationAwsServiceAccessStatus),
|
|
@@ -7697,9 +7656,7 @@ const deserializeAws_restJson1OrganizationStatus = (output, context) => {
|
|
|
7697
7656
|
const deserializeAws_restJson1PathComponent = (output, context) => {
|
|
7698
7657
|
return {
|
|
7699
7658
|
DestinationCidrBlock: (0, smithy_client_1.expectString)(output.DestinationCidrBlock),
|
|
7700
|
-
Resource: output.Resource
|
|
7701
|
-
? deserializeAws_restJson1NetworkResourceSummary(output.Resource, context)
|
|
7702
|
-
: undefined,
|
|
7659
|
+
Resource: output.Resource != null ? deserializeAws_restJson1NetworkResourceSummary(output.Resource, context) : undefined,
|
|
7703
7660
|
Sequence: (0, smithy_client_1.expectInt32)(output.Sequence),
|
|
7704
7661
|
};
|
|
7705
7662
|
};
|
|
@@ -7718,9 +7675,7 @@ const deserializeAws_restJson1ProposedSegmentChange = (output, context) => {
|
|
|
7718
7675
|
return {
|
|
7719
7676
|
AttachmentPolicyRuleNumber: (0, smithy_client_1.expectInt32)(output.AttachmentPolicyRuleNumber),
|
|
7720
7677
|
SegmentName: (0, smithy_client_1.expectString)(output.SegmentName),
|
|
7721
|
-
Tags: output.Tags
|
|
7722
|
-
? deserializeAws_restJson1TagList(output.Tags, context)
|
|
7723
|
-
: undefined,
|
|
7678
|
+
Tags: output.Tags != null ? deserializeAws_restJson1TagList(output.Tags, context) : undefined,
|
|
7724
7679
|
};
|
|
7725
7680
|
};
|
|
7726
7681
|
const deserializeAws_restJson1ReasonContextMap = (output, context) => {
|
|
@@ -7753,23 +7708,17 @@ const deserializeAws_restJson1RelationshipList = (output, context) => {
|
|
|
7753
7708
|
};
|
|
7754
7709
|
const deserializeAws_restJson1RouteAnalysis = (output, context) => {
|
|
7755
7710
|
return {
|
|
7756
|
-
Destination: output.Destination
|
|
7711
|
+
Destination: output.Destination != null
|
|
7757
7712
|
? deserializeAws_restJson1RouteAnalysisEndpointOptions(output.Destination, context)
|
|
7758
7713
|
: undefined,
|
|
7759
|
-
ForwardPath: output.ForwardPath
|
|
7760
|
-
? deserializeAws_restJson1RouteAnalysisPath(output.ForwardPath, context)
|
|
7761
|
-
: undefined,
|
|
7714
|
+
ForwardPath: output.ForwardPath != null ? deserializeAws_restJson1RouteAnalysisPath(output.ForwardPath, context) : undefined,
|
|
7762
7715
|
GlobalNetworkId: (0, smithy_client_1.expectString)(output.GlobalNetworkId),
|
|
7763
7716
|
IncludeReturnPath: (0, smithy_client_1.expectBoolean)(output.IncludeReturnPath),
|
|
7764
7717
|
OwnerAccountId: (0, smithy_client_1.expectString)(output.OwnerAccountId),
|
|
7765
|
-
ReturnPath: output.ReturnPath
|
|
7766
|
-
? deserializeAws_restJson1RouteAnalysisPath(output.ReturnPath, context)
|
|
7767
|
-
: undefined,
|
|
7718
|
+
ReturnPath: output.ReturnPath != null ? deserializeAws_restJson1RouteAnalysisPath(output.ReturnPath, context) : undefined,
|
|
7768
7719
|
RouteAnalysisId: (0, smithy_client_1.expectString)(output.RouteAnalysisId),
|
|
7769
|
-
Source: output.Source
|
|
7770
|
-
|
|
7771
|
-
: undefined,
|
|
7772
|
-
StartTimestamp: output.StartTimestamp !== undefined && output.StartTimestamp !== null
|
|
7720
|
+
Source: output.Source != null ? deserializeAws_restJson1RouteAnalysisEndpointOptions(output.Source, context) : undefined,
|
|
7721
|
+
StartTimestamp: output.StartTimestamp != null
|
|
7773
7722
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.StartTimestamp)))
|
|
7774
7723
|
: undefined,
|
|
7775
7724
|
Status: (0, smithy_client_1.expectString)(output.Status),
|
|
@@ -7779,7 +7728,7 @@ const deserializeAws_restJson1RouteAnalysis = (output, context) => {
|
|
|
7779
7728
|
const deserializeAws_restJson1RouteAnalysisCompletion = (output, context) => {
|
|
7780
7729
|
return {
|
|
7781
7730
|
ReasonCode: (0, smithy_client_1.expectString)(output.ReasonCode),
|
|
7782
|
-
ReasonContext: output.ReasonContext
|
|
7731
|
+
ReasonContext: output.ReasonContext != null
|
|
7783
7732
|
? deserializeAws_restJson1ReasonContextMap(output.ReasonContext, context)
|
|
7784
7733
|
: undefined,
|
|
7785
7734
|
ResultCode: (0, smithy_client_1.expectString)(output.ResultCode),
|
|
@@ -7794,30 +7743,22 @@ const deserializeAws_restJson1RouteAnalysisEndpointOptions = (output, context) =
|
|
|
7794
7743
|
};
|
|
7795
7744
|
const deserializeAws_restJson1RouteAnalysisPath = (output, context) => {
|
|
7796
7745
|
return {
|
|
7797
|
-
CompletionStatus: output.CompletionStatus
|
|
7746
|
+
CompletionStatus: output.CompletionStatus != null
|
|
7798
7747
|
? deserializeAws_restJson1RouteAnalysisCompletion(output.CompletionStatus, context)
|
|
7799
7748
|
: undefined,
|
|
7800
|
-
Path: output.Path
|
|
7801
|
-
? deserializeAws_restJson1PathComponentList(output.Path, context)
|
|
7802
|
-
: undefined,
|
|
7749
|
+
Path: output.Path != null ? deserializeAws_restJson1PathComponentList(output.Path, context) : undefined,
|
|
7803
7750
|
};
|
|
7804
7751
|
};
|
|
7805
7752
|
const deserializeAws_restJson1Site = (output, context) => {
|
|
7806
7753
|
return {
|
|
7807
|
-
CreatedAt: output.CreatedAt
|
|
7808
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedAt)))
|
|
7809
|
-
: undefined,
|
|
7754
|
+
CreatedAt: output.CreatedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedAt))) : undefined,
|
|
7810
7755
|
Description: (0, smithy_client_1.expectString)(output.Description),
|
|
7811
7756
|
GlobalNetworkId: (0, smithy_client_1.expectString)(output.GlobalNetworkId),
|
|
7812
|
-
Location: output.Location
|
|
7813
|
-
? deserializeAws_restJson1Location(output.Location, context)
|
|
7814
|
-
: undefined,
|
|
7757
|
+
Location: output.Location != null ? deserializeAws_restJson1Location(output.Location, context) : undefined,
|
|
7815
7758
|
SiteArn: (0, smithy_client_1.expectString)(output.SiteArn),
|
|
7816
7759
|
SiteId: (0, smithy_client_1.expectString)(output.SiteId),
|
|
7817
7760
|
State: (0, smithy_client_1.expectString)(output.State),
|
|
7818
|
-
Tags: output.Tags
|
|
7819
|
-
? deserializeAws_restJson1TagList(output.Tags, context)
|
|
7820
|
-
: undefined,
|
|
7761
|
+
Tags: output.Tags != null ? deserializeAws_restJson1TagList(output.Tags, context) : undefined,
|
|
7821
7762
|
};
|
|
7822
7763
|
};
|
|
7823
7764
|
const deserializeAws_restJson1SiteList = (output, context) => {
|
|
@@ -7833,9 +7774,7 @@ const deserializeAws_restJson1SiteList = (output, context) => {
|
|
|
7833
7774
|
};
|
|
7834
7775
|
const deserializeAws_restJson1SiteToSiteVpnAttachment = (output, context) => {
|
|
7835
7776
|
return {
|
|
7836
|
-
Attachment: output.Attachment
|
|
7837
|
-
? deserializeAws_restJson1Attachment(output.Attachment, context)
|
|
7838
|
-
: undefined,
|
|
7777
|
+
Attachment: output.Attachment != null ? deserializeAws_restJson1Attachment(output.Attachment, context) : undefined,
|
|
7839
7778
|
VpnConnectionArn: (0, smithy_client_1.expectString)(output.VpnConnectionArn),
|
|
7840
7779
|
};
|
|
7841
7780
|
};
|
|
@@ -7890,7 +7829,7 @@ const deserializeAws_restJson1TransitGatewayConnectPeerAssociationList = (output
|
|
|
7890
7829
|
const deserializeAws_restJson1TransitGatewayRegistration = (output, context) => {
|
|
7891
7830
|
return {
|
|
7892
7831
|
GlobalNetworkId: (0, smithy_client_1.expectString)(output.GlobalNetworkId),
|
|
7893
|
-
State: output.State
|
|
7832
|
+
State: output.State != null
|
|
7894
7833
|
? deserializeAws_restJson1TransitGatewayRegistrationStateReason(output.State, context)
|
|
7895
7834
|
: undefined,
|
|
7896
7835
|
TransitGatewayArn: (0, smithy_client_1.expectString)(output.TransitGatewayArn),
|
|
@@ -7932,15 +7871,9 @@ const deserializeAws_restJson1ValidationExceptionFieldList = (output, context) =
|
|
|
7932
7871
|
};
|
|
7933
7872
|
const deserializeAws_restJson1VpcAttachment = (output, context) => {
|
|
7934
7873
|
return {
|
|
7935
|
-
Attachment: output.Attachment
|
|
7936
|
-
|
|
7937
|
-
|
|
7938
|
-
Options: output.Options !== undefined && output.Options !== null
|
|
7939
|
-
? deserializeAws_restJson1VpcOptions(output.Options, context)
|
|
7940
|
-
: undefined,
|
|
7941
|
-
SubnetArns: output.SubnetArns !== undefined && output.SubnetArns !== null
|
|
7942
|
-
? deserializeAws_restJson1SubnetArnList(output.SubnetArns, context)
|
|
7943
|
-
: undefined,
|
|
7874
|
+
Attachment: output.Attachment != null ? deserializeAws_restJson1Attachment(output.Attachment, context) : undefined,
|
|
7875
|
+
Options: output.Options != null ? deserializeAws_restJson1VpcOptions(output.Options, context) : undefined,
|
|
7876
|
+
SubnetArns: output.SubnetArns != null ? deserializeAws_restJson1SubnetArnList(output.SubnetArns, context) : undefined,
|
|
7944
7877
|
};
|
|
7945
7878
|
};
|
|
7946
7879
|
const deserializeAws_restJson1VpcOptions = (output, context) => {
|
|
@@ -7997,5 +7930,4 @@ const loadRestJsonErrorCode = (output, data) => {
|
|
|
7997
7930
|
if (data["__type"] !== undefined) {
|
|
7998
7931
|
return sanitizeErrorCode(data["__type"]);
|
|
7999
7932
|
}
|
|
8000
|
-
return "";
|
|
8001
7933
|
};
|