@aws-sdk/client-networkmanager 3.121.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 +8 -0
- package/dist-cjs/protocols/Aws_restJson1.js +192 -337
- package/dist-es/protocols/Aws_restJson1.js +121 -266
- 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
|
});
|
|
@@ -6895,24 +6839,24 @@ const deserializeAws_restJson1ValidationExceptionResponse = async (parsedOutput,
|
|
|
6895
6839
|
};
|
|
6896
6840
|
const serializeAws_restJson1AWSLocation = (input, context) => {
|
|
6897
6841
|
return {
|
|
6898
|
-
...(input.SubnetArn
|
|
6899
|
-
...(input.Zone
|
|
6842
|
+
...(input.SubnetArn != null && { SubnetArn: input.SubnetArn }),
|
|
6843
|
+
...(input.Zone != null && { Zone: input.Zone }),
|
|
6900
6844
|
};
|
|
6901
6845
|
};
|
|
6902
6846
|
const serializeAws_restJson1Bandwidth = (input, context) => {
|
|
6903
6847
|
return {
|
|
6904
|
-
...(input.DownloadSpeed
|
|
6905
|
-
...(input.UploadSpeed
|
|
6848
|
+
...(input.DownloadSpeed != null && { DownloadSpeed: input.DownloadSpeed }),
|
|
6849
|
+
...(input.UploadSpeed != null && { UploadSpeed: input.UploadSpeed }),
|
|
6906
6850
|
};
|
|
6907
6851
|
};
|
|
6908
6852
|
const serializeAws_restJson1BgpOptions = (input, context) => {
|
|
6909
6853
|
return {
|
|
6910
|
-
...(input.PeerAsn
|
|
6854
|
+
...(input.PeerAsn != null && { PeerAsn: input.PeerAsn }),
|
|
6911
6855
|
};
|
|
6912
6856
|
};
|
|
6913
6857
|
const serializeAws_restJson1ConnectAttachmentOptions = (input, context) => {
|
|
6914
6858
|
return {
|
|
6915
|
-
...(input.Protocol
|
|
6859
|
+
...(input.Protocol != null && { Protocol: input.Protocol }),
|
|
6916
6860
|
};
|
|
6917
6861
|
};
|
|
6918
6862
|
const serializeAws_restJson1ConstrainedStringList = (input, context) => {
|
|
@@ -6927,9 +6871,9 @@ const serializeAws_restJson1ConstrainedStringList = (input, context) => {
|
|
|
6927
6871
|
};
|
|
6928
6872
|
const serializeAws_restJson1CoreNetworkSegmentEdgeIdentifier = (input, context) => {
|
|
6929
6873
|
return {
|
|
6930
|
-
...(input.CoreNetworkId
|
|
6931
|
-
...(input.EdgeLocation
|
|
6932
|
-
...(input.SegmentName
|
|
6874
|
+
...(input.CoreNetworkId != null && { CoreNetworkId: input.CoreNetworkId }),
|
|
6875
|
+
...(input.EdgeLocation != null && { EdgeLocation: input.EdgeLocation }),
|
|
6876
|
+
...(input.SegmentName != null && { SegmentName: input.SegmentName }),
|
|
6933
6877
|
};
|
|
6934
6878
|
};
|
|
6935
6879
|
const serializeAws_restJson1FilterMap = (input, context) => {
|
|
@@ -6955,9 +6899,9 @@ const serializeAws_restJson1FilterValues = (input, context) => {
|
|
|
6955
6899
|
};
|
|
6956
6900
|
const serializeAws_restJson1Location = (input, context) => {
|
|
6957
6901
|
return {
|
|
6958
|
-
...(input.Address
|
|
6959
|
-
...(input.Latitude
|
|
6960
|
-
...(input.Longitude
|
|
6902
|
+
...(input.Address != null && { Address: input.Address }),
|
|
6903
|
+
...(input.Latitude != null && { Latitude: input.Latitude }),
|
|
6904
|
+
...(input.Longitude != null && { Longitude: input.Longitude }),
|
|
6961
6905
|
};
|
|
6962
6906
|
};
|
|
6963
6907
|
const serializeAws_restJson1NetworkResourceMetadataMap = (input, context) => {
|
|
@@ -6973,9 +6917,10 @@ const serializeAws_restJson1NetworkResourceMetadataMap = (input, context) => {
|
|
|
6973
6917
|
};
|
|
6974
6918
|
const serializeAws_restJson1RouteAnalysisEndpointOptionsSpecification = (input, context) => {
|
|
6975
6919
|
return {
|
|
6976
|
-
...(input.IpAddress
|
|
6977
|
-
...(input.TransitGatewayAttachmentArn
|
|
6978
|
-
|
|
6920
|
+
...(input.IpAddress != null && { IpAddress: input.IpAddress }),
|
|
6921
|
+
...(input.TransitGatewayAttachmentArn != null && {
|
|
6922
|
+
TransitGatewayAttachmentArn: input.TransitGatewayAttachmentArn,
|
|
6923
|
+
}),
|
|
6979
6924
|
};
|
|
6980
6925
|
};
|
|
6981
6926
|
const serializeAws_restJson1RouteStateList = (input, context) => {
|
|
@@ -6990,12 +6935,12 @@ const serializeAws_restJson1RouteStateList = (input, context) => {
|
|
|
6990
6935
|
};
|
|
6991
6936
|
const serializeAws_restJson1RouteTableIdentifier = (input, context) => {
|
|
6992
6937
|
return {
|
|
6993
|
-
...(input.CoreNetworkSegmentEdge
|
|
6994
|
-
input.CoreNetworkSegmentEdge !== null && {
|
|
6938
|
+
...(input.CoreNetworkSegmentEdge != null && {
|
|
6995
6939
|
CoreNetworkSegmentEdge: serializeAws_restJson1CoreNetworkSegmentEdgeIdentifier(input.CoreNetworkSegmentEdge, context),
|
|
6996
6940
|
}),
|
|
6997
|
-
...(input.TransitGatewayRouteTableArn
|
|
6998
|
-
|
|
6941
|
+
...(input.TransitGatewayRouteTableArn != null && {
|
|
6942
|
+
TransitGatewayRouteTableArn: input.TransitGatewayRouteTableArn,
|
|
6943
|
+
}),
|
|
6999
6944
|
};
|
|
7000
6945
|
};
|
|
7001
6946
|
const serializeAws_restJson1RouteTypeList = (input, context) => {
|
|
@@ -7020,8 +6965,8 @@ const serializeAws_restJson1SubnetArnList = (input, context) => {
|
|
|
7020
6965
|
};
|
|
7021
6966
|
const serializeAws_restJson1Tag = (input, context) => {
|
|
7022
6967
|
return {
|
|
7023
|
-
...(input.Key
|
|
7024
|
-
...(input.Value
|
|
6968
|
+
...(input.Key != null && { Key: input.Key }),
|
|
6969
|
+
...(input.Value != null && { Value: input.Value }),
|
|
7025
6970
|
};
|
|
7026
6971
|
};
|
|
7027
6972
|
const serializeAws_restJson1TagList = (input, context) => {
|
|
@@ -7036,7 +6981,7 @@ const serializeAws_restJson1TagList = (input, context) => {
|
|
|
7036
6981
|
};
|
|
7037
6982
|
const serializeAws_restJson1VpcOptions = (input, context) => {
|
|
7038
6983
|
return {
|
|
7039
|
-
...(input.Ipv6Support
|
|
6984
|
+
...(input.Ipv6Support != null && { Ipv6Support: input.Ipv6Support }),
|
|
7040
6985
|
};
|
|
7041
6986
|
};
|
|
7042
6987
|
const deserializeAws_restJson1AccountStatus = (output, context) => {
|
|
@@ -7063,23 +7008,17 @@ const deserializeAws_restJson1Attachment = (output, context) => {
|
|
|
7063
7008
|
AttachmentType: (0, smithy_client_1.expectString)(output.AttachmentType),
|
|
7064
7009
|
CoreNetworkArn: (0, smithy_client_1.expectString)(output.CoreNetworkArn),
|
|
7065
7010
|
CoreNetworkId: (0, smithy_client_1.expectString)(output.CoreNetworkId),
|
|
7066
|
-
CreatedAt: output.CreatedAt
|
|
7067
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedAt)))
|
|
7068
|
-
: undefined,
|
|
7011
|
+
CreatedAt: output.CreatedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedAt))) : undefined,
|
|
7069
7012
|
EdgeLocation: (0, smithy_client_1.expectString)(output.EdgeLocation),
|
|
7070
7013
|
OwnerAccountId: (0, smithy_client_1.expectString)(output.OwnerAccountId),
|
|
7071
|
-
ProposedSegmentChange: output.ProposedSegmentChange
|
|
7014
|
+
ProposedSegmentChange: output.ProposedSegmentChange != null
|
|
7072
7015
|
? deserializeAws_restJson1ProposedSegmentChange(output.ProposedSegmentChange, context)
|
|
7073
7016
|
: undefined,
|
|
7074
7017
|
ResourceArn: (0, smithy_client_1.expectString)(output.ResourceArn),
|
|
7075
7018
|
SegmentName: (0, smithy_client_1.expectString)(output.SegmentName),
|
|
7076
7019
|
State: (0, smithy_client_1.expectString)(output.State),
|
|
7077
|
-
Tags: output.Tags
|
|
7078
|
-
|
|
7079
|
-
: undefined,
|
|
7080
|
-
UpdatedAt: output.UpdatedAt !== undefined && output.UpdatedAt !== null
|
|
7081
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.UpdatedAt)))
|
|
7082
|
-
: 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,
|
|
7083
7022
|
};
|
|
7084
7023
|
};
|
|
7085
7024
|
const deserializeAws_restJson1AttachmentList = (output, context) => {
|
|
@@ -7107,12 +7046,8 @@ const deserializeAws_restJson1Bandwidth = (output, context) => {
|
|
|
7107
7046
|
};
|
|
7108
7047
|
const deserializeAws_restJson1ConnectAttachment = (output, context) => {
|
|
7109
7048
|
return {
|
|
7110
|
-
Attachment: output.Attachment
|
|
7111
|
-
|
|
7112
|
-
: undefined,
|
|
7113
|
-
Options: output.Options !== undefined && output.Options !== null
|
|
7114
|
-
? deserializeAws_restJson1ConnectAttachmentOptions(output.Options, context)
|
|
7115
|
-
: undefined,
|
|
7049
|
+
Attachment: output.Attachment != null ? deserializeAws_restJson1Attachment(output.Attachment, context) : undefined,
|
|
7050
|
+
Options: output.Options != null ? deserializeAws_restJson1ConnectAttachmentOptions(output.Options, context) : undefined,
|
|
7116
7051
|
TransportAttachmentId: (0, smithy_client_1.expectString)(output.TransportAttachmentId),
|
|
7117
7052
|
};
|
|
7118
7053
|
};
|
|
@@ -7127,25 +7062,19 @@ const deserializeAws_restJson1Connection = (output, context) => {
|
|
|
7127
7062
|
ConnectedLinkId: (0, smithy_client_1.expectString)(output.ConnectedLinkId),
|
|
7128
7063
|
ConnectionArn: (0, smithy_client_1.expectString)(output.ConnectionArn),
|
|
7129
7064
|
ConnectionId: (0, smithy_client_1.expectString)(output.ConnectionId),
|
|
7130
|
-
CreatedAt: output.CreatedAt
|
|
7131
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedAt)))
|
|
7132
|
-
: undefined,
|
|
7065
|
+
CreatedAt: output.CreatedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedAt))) : undefined,
|
|
7133
7066
|
Description: (0, smithy_client_1.expectString)(output.Description),
|
|
7134
7067
|
DeviceId: (0, smithy_client_1.expectString)(output.DeviceId),
|
|
7135
7068
|
GlobalNetworkId: (0, smithy_client_1.expectString)(output.GlobalNetworkId),
|
|
7136
7069
|
LinkId: (0, smithy_client_1.expectString)(output.LinkId),
|
|
7137
7070
|
State: (0, smithy_client_1.expectString)(output.State),
|
|
7138
|
-
Tags: output.Tags
|
|
7139
|
-
? deserializeAws_restJson1TagList(output.Tags, context)
|
|
7140
|
-
: undefined,
|
|
7071
|
+
Tags: output.Tags != null ? deserializeAws_restJson1TagList(output.Tags, context) : undefined,
|
|
7141
7072
|
};
|
|
7142
7073
|
};
|
|
7143
7074
|
const deserializeAws_restJson1ConnectionHealth = (output, context) => {
|
|
7144
7075
|
return {
|
|
7145
7076
|
Status: (0, smithy_client_1.expectString)(output.Status),
|
|
7146
|
-
Timestamp: output.Timestamp
|
|
7147
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.Timestamp)))
|
|
7148
|
-
: undefined,
|
|
7077
|
+
Timestamp: output.Timestamp != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.Timestamp))) : undefined,
|
|
7149
7078
|
Type: (0, smithy_client_1.expectString)(output.Type),
|
|
7150
7079
|
};
|
|
7151
7080
|
};
|
|
@@ -7162,20 +7091,16 @@ const deserializeAws_restJson1ConnectionList = (output, context) => {
|
|
|
7162
7091
|
};
|
|
7163
7092
|
const deserializeAws_restJson1ConnectPeer = (output, context) => {
|
|
7164
7093
|
return {
|
|
7165
|
-
Configuration: output.Configuration
|
|
7094
|
+
Configuration: output.Configuration != null
|
|
7166
7095
|
? deserializeAws_restJson1ConnectPeerConfiguration(output.Configuration, context)
|
|
7167
7096
|
: undefined,
|
|
7168
7097
|
ConnectAttachmentId: (0, smithy_client_1.expectString)(output.ConnectAttachmentId),
|
|
7169
7098
|
ConnectPeerId: (0, smithy_client_1.expectString)(output.ConnectPeerId),
|
|
7170
7099
|
CoreNetworkId: (0, smithy_client_1.expectString)(output.CoreNetworkId),
|
|
7171
|
-
CreatedAt: output.CreatedAt
|
|
7172
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedAt)))
|
|
7173
|
-
: undefined,
|
|
7100
|
+
CreatedAt: output.CreatedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedAt))) : undefined,
|
|
7174
7101
|
EdgeLocation: (0, smithy_client_1.expectString)(output.EdgeLocation),
|
|
7175
7102
|
State: (0, smithy_client_1.expectString)(output.State),
|
|
7176
|
-
Tags: output.Tags
|
|
7177
|
-
? deserializeAws_restJson1TagList(output.Tags, context)
|
|
7178
|
-
: undefined,
|
|
7103
|
+
Tags: output.Tags != null ? deserializeAws_restJson1TagList(output.Tags, context) : undefined,
|
|
7179
7104
|
};
|
|
7180
7105
|
};
|
|
7181
7106
|
const deserializeAws_restJson1ConnectPeerAssociation = (output, context) => {
|
|
@@ -7219,11 +7144,11 @@ const deserializeAws_restJson1ConnectPeerBgpConfigurationList = (output, context
|
|
|
7219
7144
|
};
|
|
7220
7145
|
const deserializeAws_restJson1ConnectPeerConfiguration = (output, context) => {
|
|
7221
7146
|
return {
|
|
7222
|
-
BgpConfigurations: output.BgpConfigurations
|
|
7147
|
+
BgpConfigurations: output.BgpConfigurations != null
|
|
7223
7148
|
? deserializeAws_restJson1ConnectPeerBgpConfigurationList(output.BgpConfigurations, context)
|
|
7224
7149
|
: undefined,
|
|
7225
7150
|
CoreNetworkAddress: (0, smithy_client_1.expectString)(output.CoreNetworkAddress),
|
|
7226
|
-
InsideCidrBlocks: output.InsideCidrBlocks
|
|
7151
|
+
InsideCidrBlocks: output.InsideCidrBlocks != null
|
|
7227
7152
|
? deserializeAws_restJson1ConstrainedStringList(output.InsideCidrBlocks, context)
|
|
7228
7153
|
: undefined,
|
|
7229
7154
|
PeerAddress: (0, smithy_client_1.expectString)(output.PeerAddress),
|
|
@@ -7236,13 +7161,9 @@ const deserializeAws_restJson1ConnectPeerSummary = (output, context) => {
|
|
|
7236
7161
|
ConnectPeerId: (0, smithy_client_1.expectString)(output.ConnectPeerId),
|
|
7237
7162
|
ConnectPeerState: (0, smithy_client_1.expectString)(output.ConnectPeerState),
|
|
7238
7163
|
CoreNetworkId: (0, smithy_client_1.expectString)(output.CoreNetworkId),
|
|
7239
|
-
CreatedAt: output.CreatedAt
|
|
7240
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedAt)))
|
|
7241
|
-
: undefined,
|
|
7164
|
+
CreatedAt: output.CreatedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedAt))) : undefined,
|
|
7242
7165
|
EdgeLocation: (0, smithy_client_1.expectString)(output.EdgeLocation),
|
|
7243
|
-
Tags: output.Tags
|
|
7244
|
-
? deserializeAws_restJson1TagList(output.Tags, context)
|
|
7245
|
-
: undefined,
|
|
7166
|
+
Tags: output.Tags != null ? deserializeAws_restJson1TagList(output.Tags, context) : undefined,
|
|
7246
7167
|
};
|
|
7247
7168
|
};
|
|
7248
7169
|
const deserializeAws_restJson1ConnectPeerSummaryList = (output, context) => {
|
|
@@ -7271,31 +7192,21 @@ const deserializeAws_restJson1CoreNetwork = (output, context) => {
|
|
|
7271
7192
|
return {
|
|
7272
7193
|
CoreNetworkArn: (0, smithy_client_1.expectString)(output.CoreNetworkArn),
|
|
7273
7194
|
CoreNetworkId: (0, smithy_client_1.expectString)(output.CoreNetworkId),
|
|
7274
|
-
CreatedAt: output.CreatedAt
|
|
7275
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedAt)))
|
|
7276
|
-
: undefined,
|
|
7195
|
+
CreatedAt: output.CreatedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedAt))) : undefined,
|
|
7277
7196
|
Description: (0, smithy_client_1.expectString)(output.Description),
|
|
7278
|
-
Edges: output.Edges
|
|
7279
|
-
? deserializeAws_restJson1CoreNetworkEdgeList(output.Edges, context)
|
|
7280
|
-
: undefined,
|
|
7197
|
+
Edges: output.Edges != null ? deserializeAws_restJson1CoreNetworkEdgeList(output.Edges, context) : undefined,
|
|
7281
7198
|
GlobalNetworkId: (0, smithy_client_1.expectString)(output.GlobalNetworkId),
|
|
7282
|
-
Segments: output.Segments
|
|
7283
|
-
? deserializeAws_restJson1CoreNetworkSegmentList(output.Segments, context)
|
|
7284
|
-
: undefined,
|
|
7199
|
+
Segments: output.Segments != null ? deserializeAws_restJson1CoreNetworkSegmentList(output.Segments, context) : undefined,
|
|
7285
7200
|
State: (0, smithy_client_1.expectString)(output.State),
|
|
7286
|
-
Tags: output.Tags
|
|
7287
|
-
? deserializeAws_restJson1TagList(output.Tags, context)
|
|
7288
|
-
: undefined,
|
|
7201
|
+
Tags: output.Tags != null ? deserializeAws_restJson1TagList(output.Tags, context) : undefined,
|
|
7289
7202
|
};
|
|
7290
7203
|
};
|
|
7291
7204
|
const deserializeAws_restJson1CoreNetworkChange = (output, context) => {
|
|
7292
7205
|
return {
|
|
7293
7206
|
Action: (0, smithy_client_1.expectString)(output.Action),
|
|
7294
7207
|
Identifier: (0, smithy_client_1.expectString)(output.Identifier),
|
|
7295
|
-
NewValues: output.NewValues
|
|
7296
|
-
|
|
7297
|
-
: undefined,
|
|
7298
|
-
PreviousValues: output.PreviousValues !== undefined && output.PreviousValues !== null
|
|
7208
|
+
NewValues: output.NewValues != null ? deserializeAws_restJson1CoreNetworkChangeValues(output.NewValues, context) : undefined,
|
|
7209
|
+
PreviousValues: output.PreviousValues != null
|
|
7299
7210
|
? deserializeAws_restJson1CoreNetworkChangeValues(output.PreviousValues, context)
|
|
7300
7211
|
: undefined,
|
|
7301
7212
|
Type: (0, smithy_client_1.expectString)(output.Type),
|
|
@@ -7317,14 +7228,14 @@ const deserializeAws_restJson1CoreNetworkChangeValues = (output, context) => {
|
|
|
7317
7228
|
Asn: (0, smithy_client_1.expectLong)(output.Asn),
|
|
7318
7229
|
Cidr: (0, smithy_client_1.expectString)(output.Cidr),
|
|
7319
7230
|
DestinationIdentifier: (0, smithy_client_1.expectString)(output.DestinationIdentifier),
|
|
7320
|
-
EdgeLocations: output.EdgeLocations
|
|
7231
|
+
EdgeLocations: output.EdgeLocations != null
|
|
7321
7232
|
? deserializeAws_restJson1ExternalRegionCodeList(output.EdgeLocations, context)
|
|
7322
7233
|
: undefined,
|
|
7323
|
-
InsideCidrBlocks: output.InsideCidrBlocks
|
|
7234
|
+
InsideCidrBlocks: output.InsideCidrBlocks != null
|
|
7324
7235
|
? deserializeAws_restJson1ConstrainedStringList(output.InsideCidrBlocks, context)
|
|
7325
7236
|
: undefined,
|
|
7326
7237
|
SegmentName: (0, smithy_client_1.expectString)(output.SegmentName),
|
|
7327
|
-
SharedSegments: output.SharedSegments
|
|
7238
|
+
SharedSegments: output.SharedSegments != null
|
|
7328
7239
|
? deserializeAws_restJson1ConstrainedStringList(output.SharedSegments, context)
|
|
7329
7240
|
: undefined,
|
|
7330
7241
|
};
|
|
@@ -7333,7 +7244,7 @@ const deserializeAws_restJson1CoreNetworkEdge = (output, context) => {
|
|
|
7333
7244
|
return {
|
|
7334
7245
|
Asn: (0, smithy_client_1.expectLong)(output.Asn),
|
|
7335
7246
|
EdgeLocation: (0, smithy_client_1.expectString)(output.EdgeLocation),
|
|
7336
|
-
InsideCidrBlocks: output.InsideCidrBlocks
|
|
7247
|
+
InsideCidrBlocks: output.InsideCidrBlocks != null
|
|
7337
7248
|
? deserializeAws_restJson1ConstrainedStringList(output.InsideCidrBlocks, context)
|
|
7338
7249
|
: undefined,
|
|
7339
7250
|
};
|
|
@@ -7354,14 +7265,10 @@ const deserializeAws_restJson1CoreNetworkPolicy = (output, context) => {
|
|
|
7354
7265
|
Alias: (0, smithy_client_1.expectString)(output.Alias),
|
|
7355
7266
|
ChangeSetState: (0, smithy_client_1.expectString)(output.ChangeSetState),
|
|
7356
7267
|
CoreNetworkId: (0, smithy_client_1.expectString)(output.CoreNetworkId),
|
|
7357
|
-
CreatedAt: output.CreatedAt
|
|
7358
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedAt)))
|
|
7359
|
-
: undefined,
|
|
7268
|
+
CreatedAt: output.CreatedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedAt))) : undefined,
|
|
7360
7269
|
Description: (0, smithy_client_1.expectString)(output.Description),
|
|
7361
|
-
PolicyDocument: output.PolicyDocument
|
|
7362
|
-
|
|
7363
|
-
: undefined,
|
|
7364
|
-
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
|
|
7365
7272
|
? deserializeAws_restJson1CoreNetworkPolicyErrorList(output.PolicyErrors, context)
|
|
7366
7273
|
: undefined,
|
|
7367
7274
|
PolicyVersionId: (0, smithy_client_1.expectInt32)(output.PolicyVersionId),
|
|
@@ -7390,9 +7297,7 @@ const deserializeAws_restJson1CoreNetworkPolicyVersion = (output, context) => {
|
|
|
7390
7297
|
Alias: (0, smithy_client_1.expectString)(output.Alias),
|
|
7391
7298
|
ChangeSetState: (0, smithy_client_1.expectString)(output.ChangeSetState),
|
|
7392
7299
|
CoreNetworkId: (0, smithy_client_1.expectString)(output.CoreNetworkId),
|
|
7393
|
-
CreatedAt: output.CreatedAt
|
|
7394
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedAt)))
|
|
7395
|
-
: undefined,
|
|
7300
|
+
CreatedAt: output.CreatedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedAt))) : undefined,
|
|
7396
7301
|
Description: (0, smithy_client_1.expectString)(output.Description),
|
|
7397
7302
|
PolicyVersionId: (0, smithy_client_1.expectInt32)(output.PolicyVersionId),
|
|
7398
7303
|
};
|
|
@@ -7410,11 +7315,11 @@ const deserializeAws_restJson1CoreNetworkPolicyVersionList = (output, context) =
|
|
|
7410
7315
|
};
|
|
7411
7316
|
const deserializeAws_restJson1CoreNetworkSegment = (output, context) => {
|
|
7412
7317
|
return {
|
|
7413
|
-
EdgeLocations: output.EdgeLocations
|
|
7318
|
+
EdgeLocations: output.EdgeLocations != null
|
|
7414
7319
|
? deserializeAws_restJson1ExternalRegionCodeList(output.EdgeLocations, context)
|
|
7415
7320
|
: undefined,
|
|
7416
7321
|
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
7417
|
-
SharedSegments: output.SharedSegments
|
|
7322
|
+
SharedSegments: output.SharedSegments != null
|
|
7418
7323
|
? deserializeAws_restJson1ConstrainedStringList(output.SharedSegments, context)
|
|
7419
7324
|
: undefined,
|
|
7420
7325
|
};
|
|
@@ -7445,9 +7350,7 @@ const deserializeAws_restJson1CoreNetworkSummary = (output, context) => {
|
|
|
7445
7350
|
GlobalNetworkId: (0, smithy_client_1.expectString)(output.GlobalNetworkId),
|
|
7446
7351
|
OwnerAccountId: (0, smithy_client_1.expectString)(output.OwnerAccountId),
|
|
7447
7352
|
State: (0, smithy_client_1.expectString)(output.State),
|
|
7448
|
-
Tags: output.Tags
|
|
7449
|
-
? deserializeAws_restJson1TagList(output.Tags, context)
|
|
7450
|
-
: undefined,
|
|
7353
|
+
Tags: output.Tags != null ? deserializeAws_restJson1TagList(output.Tags, context) : undefined,
|
|
7451
7354
|
};
|
|
7452
7355
|
};
|
|
7453
7356
|
const deserializeAws_restJson1CoreNetworkSummaryList = (output, context) => {
|
|
@@ -7483,26 +7386,18 @@ const deserializeAws_restJson1CustomerGatewayAssociationList = (output, context)
|
|
|
7483
7386
|
};
|
|
7484
7387
|
const deserializeAws_restJson1Device = (output, context) => {
|
|
7485
7388
|
return {
|
|
7486
|
-
AWSLocation: output.AWSLocation
|
|
7487
|
-
|
|
7488
|
-
: undefined,
|
|
7489
|
-
CreatedAt: output.CreatedAt !== undefined && output.CreatedAt !== null
|
|
7490
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedAt)))
|
|
7491
|
-
: 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,
|
|
7492
7391
|
Description: (0, smithy_client_1.expectString)(output.Description),
|
|
7493
7392
|
DeviceArn: (0, smithy_client_1.expectString)(output.DeviceArn),
|
|
7494
7393
|
DeviceId: (0, smithy_client_1.expectString)(output.DeviceId),
|
|
7495
7394
|
GlobalNetworkId: (0, smithy_client_1.expectString)(output.GlobalNetworkId),
|
|
7496
|
-
Location: output.Location
|
|
7497
|
-
? deserializeAws_restJson1Location(output.Location, context)
|
|
7498
|
-
: undefined,
|
|
7395
|
+
Location: output.Location != null ? deserializeAws_restJson1Location(output.Location, context) : undefined,
|
|
7499
7396
|
Model: (0, smithy_client_1.expectString)(output.Model),
|
|
7500
7397
|
SerialNumber: (0, smithy_client_1.expectString)(output.SerialNumber),
|
|
7501
7398
|
SiteId: (0, smithy_client_1.expectString)(output.SiteId),
|
|
7502
7399
|
State: (0, smithy_client_1.expectString)(output.State),
|
|
7503
|
-
Tags: output.Tags
|
|
7504
|
-
? deserializeAws_restJson1TagList(output.Tags, context)
|
|
7505
|
-
: undefined,
|
|
7400
|
+
Tags: output.Tags != null ? deserializeAws_restJson1TagList(output.Tags, context) : undefined,
|
|
7506
7401
|
Type: (0, smithy_client_1.expectString)(output.Type),
|
|
7507
7402
|
Vendor: (0, smithy_client_1.expectString)(output.Vendor),
|
|
7508
7403
|
};
|
|
@@ -7542,16 +7437,12 @@ const deserializeAws_restJson1ExternalRegionCodeList = (output, context) => {
|
|
|
7542
7437
|
};
|
|
7543
7438
|
const deserializeAws_restJson1GlobalNetwork = (output, context) => {
|
|
7544
7439
|
return {
|
|
7545
|
-
CreatedAt: output.CreatedAt
|
|
7546
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedAt)))
|
|
7547
|
-
: undefined,
|
|
7440
|
+
CreatedAt: output.CreatedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedAt))) : undefined,
|
|
7548
7441
|
Description: (0, smithy_client_1.expectString)(output.Description),
|
|
7549
7442
|
GlobalNetworkArn: (0, smithy_client_1.expectString)(output.GlobalNetworkArn),
|
|
7550
7443
|
GlobalNetworkId: (0, smithy_client_1.expectString)(output.GlobalNetworkId),
|
|
7551
7444
|
State: (0, smithy_client_1.expectString)(output.State),
|
|
7552
|
-
Tags: output.Tags
|
|
7553
|
-
? deserializeAws_restJson1TagList(output.Tags, context)
|
|
7554
|
-
: undefined,
|
|
7445
|
+
Tags: output.Tags != null ? deserializeAws_restJson1TagList(output.Tags, context) : undefined,
|
|
7555
7446
|
};
|
|
7556
7447
|
};
|
|
7557
7448
|
const deserializeAws_restJson1GlobalNetworkList = (output, context) => {
|
|
@@ -7567,12 +7458,8 @@ const deserializeAws_restJson1GlobalNetworkList = (output, context) => {
|
|
|
7567
7458
|
};
|
|
7568
7459
|
const deserializeAws_restJson1Link = (output, context) => {
|
|
7569
7460
|
return {
|
|
7570
|
-
Bandwidth: output.Bandwidth
|
|
7571
|
-
|
|
7572
|
-
: undefined,
|
|
7573
|
-
CreatedAt: output.CreatedAt !== undefined && output.CreatedAt !== null
|
|
7574
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedAt)))
|
|
7575
|
-
: 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,
|
|
7576
7463
|
Description: (0, smithy_client_1.expectString)(output.Description),
|
|
7577
7464
|
GlobalNetworkId: (0, smithy_client_1.expectString)(output.GlobalNetworkId),
|
|
7578
7465
|
LinkArn: (0, smithy_client_1.expectString)(output.LinkArn),
|
|
@@ -7580,9 +7467,7 @@ const deserializeAws_restJson1Link = (output, context) => {
|
|
|
7580
7467
|
Provider: (0, smithy_client_1.expectString)(output.Provider),
|
|
7581
7468
|
SiteId: (0, smithy_client_1.expectString)(output.SiteId),
|
|
7582
7469
|
State: (0, smithy_client_1.expectString)(output.State),
|
|
7583
|
-
Tags: output.Tags
|
|
7584
|
-
? deserializeAws_restJson1TagList(output.Tags, context)
|
|
7585
|
-
: undefined,
|
|
7470
|
+
Tags: output.Tags != null ? deserializeAws_restJson1TagList(output.Tags, context) : undefined,
|
|
7586
7471
|
Type: (0, smithy_client_1.expectString)(output.Type),
|
|
7587
7472
|
};
|
|
7588
7473
|
};
|
|
@@ -7629,19 +7514,17 @@ const deserializeAws_restJson1NetworkResource = (output, context) => {
|
|
|
7629
7514
|
AwsRegion: (0, smithy_client_1.expectString)(output.AwsRegion),
|
|
7630
7515
|
CoreNetworkId: (0, smithy_client_1.expectString)(output.CoreNetworkId),
|
|
7631
7516
|
Definition: (0, smithy_client_1.expectString)(output.Definition),
|
|
7632
|
-
DefinitionTimestamp: output.DefinitionTimestamp
|
|
7517
|
+
DefinitionTimestamp: output.DefinitionTimestamp != null
|
|
7633
7518
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.DefinitionTimestamp)))
|
|
7634
7519
|
: undefined,
|
|
7635
|
-
Metadata: output.Metadata
|
|
7520
|
+
Metadata: output.Metadata != null
|
|
7636
7521
|
? deserializeAws_restJson1NetworkResourceMetadataMap(output.Metadata, context)
|
|
7637
7522
|
: undefined,
|
|
7638
7523
|
RegisteredGatewayArn: (0, smithy_client_1.expectString)(output.RegisteredGatewayArn),
|
|
7639
7524
|
ResourceArn: (0, smithy_client_1.expectString)(output.ResourceArn),
|
|
7640
7525
|
ResourceId: (0, smithy_client_1.expectString)(output.ResourceId),
|
|
7641
7526
|
ResourceType: (0, smithy_client_1.expectString)(output.ResourceType),
|
|
7642
|
-
Tags: output.Tags
|
|
7643
|
-
? deserializeAws_restJson1TagList(output.Tags, context)
|
|
7644
|
-
: undefined,
|
|
7527
|
+
Tags: output.Tags != null ? deserializeAws_restJson1TagList(output.Tags, context) : undefined,
|
|
7645
7528
|
};
|
|
7646
7529
|
};
|
|
7647
7530
|
const deserializeAws_restJson1NetworkResourceCount = (output, context) => {
|
|
@@ -7696,7 +7579,7 @@ const deserializeAws_restJson1NetworkResourceSummary = (output, context) => {
|
|
|
7696
7579
|
const deserializeAws_restJson1NetworkRoute = (output, context) => {
|
|
7697
7580
|
return {
|
|
7698
7581
|
DestinationCidrBlock: (0, smithy_client_1.expectString)(output.DestinationCidrBlock),
|
|
7699
|
-
Destinations: output.Destinations
|
|
7582
|
+
Destinations: output.Destinations != null
|
|
7700
7583
|
? deserializeAws_restJson1NetworkRouteDestinationList(output.Destinations, context)
|
|
7701
7584
|
: undefined,
|
|
7702
7585
|
PrefixListId: (0, smithy_client_1.expectString)(output.PrefixListId),
|
|
@@ -7742,9 +7625,7 @@ const deserializeAws_restJson1NetworkTelemetry = (output, context) => {
|
|
|
7742
7625
|
Address: (0, smithy_client_1.expectString)(output.Address),
|
|
7743
7626
|
AwsRegion: (0, smithy_client_1.expectString)(output.AwsRegion),
|
|
7744
7627
|
CoreNetworkId: (0, smithy_client_1.expectString)(output.CoreNetworkId),
|
|
7745
|
-
Health: output.Health
|
|
7746
|
-
? deserializeAws_restJson1ConnectionHealth(output.Health, context)
|
|
7747
|
-
: undefined,
|
|
7628
|
+
Health: output.Health != null ? deserializeAws_restJson1ConnectionHealth(output.Health, context) : undefined,
|
|
7748
7629
|
RegisteredGatewayArn: (0, smithy_client_1.expectString)(output.RegisteredGatewayArn),
|
|
7749
7630
|
ResourceArn: (0, smithy_client_1.expectString)(output.ResourceArn),
|
|
7750
7631
|
ResourceId: (0, smithy_client_1.expectString)(output.ResourceId),
|
|
@@ -7764,7 +7645,7 @@ const deserializeAws_restJson1NetworkTelemetryList = (output, context) => {
|
|
|
7764
7645
|
};
|
|
7765
7646
|
const deserializeAws_restJson1OrganizationStatus = (output, context) => {
|
|
7766
7647
|
return {
|
|
7767
|
-
AccountStatusList: output.AccountStatusList
|
|
7648
|
+
AccountStatusList: output.AccountStatusList != null
|
|
7768
7649
|
? deserializeAws_restJson1AccountStatusList(output.AccountStatusList, context)
|
|
7769
7650
|
: undefined,
|
|
7770
7651
|
OrganizationAwsServiceAccessStatus: (0, smithy_client_1.expectString)(output.OrganizationAwsServiceAccessStatus),
|
|
@@ -7775,9 +7656,7 @@ const deserializeAws_restJson1OrganizationStatus = (output, context) => {
|
|
|
7775
7656
|
const deserializeAws_restJson1PathComponent = (output, context) => {
|
|
7776
7657
|
return {
|
|
7777
7658
|
DestinationCidrBlock: (0, smithy_client_1.expectString)(output.DestinationCidrBlock),
|
|
7778
|
-
Resource: output.Resource
|
|
7779
|
-
? deserializeAws_restJson1NetworkResourceSummary(output.Resource, context)
|
|
7780
|
-
: undefined,
|
|
7659
|
+
Resource: output.Resource != null ? deserializeAws_restJson1NetworkResourceSummary(output.Resource, context) : undefined,
|
|
7781
7660
|
Sequence: (0, smithy_client_1.expectInt32)(output.Sequence),
|
|
7782
7661
|
};
|
|
7783
7662
|
};
|
|
@@ -7796,9 +7675,7 @@ const deserializeAws_restJson1ProposedSegmentChange = (output, context) => {
|
|
|
7796
7675
|
return {
|
|
7797
7676
|
AttachmentPolicyRuleNumber: (0, smithy_client_1.expectInt32)(output.AttachmentPolicyRuleNumber),
|
|
7798
7677
|
SegmentName: (0, smithy_client_1.expectString)(output.SegmentName),
|
|
7799
|
-
Tags: output.Tags
|
|
7800
|
-
? deserializeAws_restJson1TagList(output.Tags, context)
|
|
7801
|
-
: undefined,
|
|
7678
|
+
Tags: output.Tags != null ? deserializeAws_restJson1TagList(output.Tags, context) : undefined,
|
|
7802
7679
|
};
|
|
7803
7680
|
};
|
|
7804
7681
|
const deserializeAws_restJson1ReasonContextMap = (output, context) => {
|
|
@@ -7831,23 +7708,17 @@ const deserializeAws_restJson1RelationshipList = (output, context) => {
|
|
|
7831
7708
|
};
|
|
7832
7709
|
const deserializeAws_restJson1RouteAnalysis = (output, context) => {
|
|
7833
7710
|
return {
|
|
7834
|
-
Destination: output.Destination
|
|
7711
|
+
Destination: output.Destination != null
|
|
7835
7712
|
? deserializeAws_restJson1RouteAnalysisEndpointOptions(output.Destination, context)
|
|
7836
7713
|
: undefined,
|
|
7837
|
-
ForwardPath: output.ForwardPath
|
|
7838
|
-
? deserializeAws_restJson1RouteAnalysisPath(output.ForwardPath, context)
|
|
7839
|
-
: undefined,
|
|
7714
|
+
ForwardPath: output.ForwardPath != null ? deserializeAws_restJson1RouteAnalysisPath(output.ForwardPath, context) : undefined,
|
|
7840
7715
|
GlobalNetworkId: (0, smithy_client_1.expectString)(output.GlobalNetworkId),
|
|
7841
7716
|
IncludeReturnPath: (0, smithy_client_1.expectBoolean)(output.IncludeReturnPath),
|
|
7842
7717
|
OwnerAccountId: (0, smithy_client_1.expectString)(output.OwnerAccountId),
|
|
7843
|
-
ReturnPath: output.ReturnPath
|
|
7844
|
-
? deserializeAws_restJson1RouteAnalysisPath(output.ReturnPath, context)
|
|
7845
|
-
: undefined,
|
|
7718
|
+
ReturnPath: output.ReturnPath != null ? deserializeAws_restJson1RouteAnalysisPath(output.ReturnPath, context) : undefined,
|
|
7846
7719
|
RouteAnalysisId: (0, smithy_client_1.expectString)(output.RouteAnalysisId),
|
|
7847
|
-
Source: output.Source
|
|
7848
|
-
|
|
7849
|
-
: undefined,
|
|
7850
|
-
StartTimestamp: output.StartTimestamp !== undefined && output.StartTimestamp !== null
|
|
7720
|
+
Source: output.Source != null ? deserializeAws_restJson1RouteAnalysisEndpointOptions(output.Source, context) : undefined,
|
|
7721
|
+
StartTimestamp: output.StartTimestamp != null
|
|
7851
7722
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.StartTimestamp)))
|
|
7852
7723
|
: undefined,
|
|
7853
7724
|
Status: (0, smithy_client_1.expectString)(output.Status),
|
|
@@ -7857,7 +7728,7 @@ const deserializeAws_restJson1RouteAnalysis = (output, context) => {
|
|
|
7857
7728
|
const deserializeAws_restJson1RouteAnalysisCompletion = (output, context) => {
|
|
7858
7729
|
return {
|
|
7859
7730
|
ReasonCode: (0, smithy_client_1.expectString)(output.ReasonCode),
|
|
7860
|
-
ReasonContext: output.ReasonContext
|
|
7731
|
+
ReasonContext: output.ReasonContext != null
|
|
7861
7732
|
? deserializeAws_restJson1ReasonContextMap(output.ReasonContext, context)
|
|
7862
7733
|
: undefined,
|
|
7863
7734
|
ResultCode: (0, smithy_client_1.expectString)(output.ResultCode),
|
|
@@ -7872,30 +7743,22 @@ const deserializeAws_restJson1RouteAnalysisEndpointOptions = (output, context) =
|
|
|
7872
7743
|
};
|
|
7873
7744
|
const deserializeAws_restJson1RouteAnalysisPath = (output, context) => {
|
|
7874
7745
|
return {
|
|
7875
|
-
CompletionStatus: output.CompletionStatus
|
|
7746
|
+
CompletionStatus: output.CompletionStatus != null
|
|
7876
7747
|
? deserializeAws_restJson1RouteAnalysisCompletion(output.CompletionStatus, context)
|
|
7877
7748
|
: undefined,
|
|
7878
|
-
Path: output.Path
|
|
7879
|
-
? deserializeAws_restJson1PathComponentList(output.Path, context)
|
|
7880
|
-
: undefined,
|
|
7749
|
+
Path: output.Path != null ? deserializeAws_restJson1PathComponentList(output.Path, context) : undefined,
|
|
7881
7750
|
};
|
|
7882
7751
|
};
|
|
7883
7752
|
const deserializeAws_restJson1Site = (output, context) => {
|
|
7884
7753
|
return {
|
|
7885
|
-
CreatedAt: output.CreatedAt
|
|
7886
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedAt)))
|
|
7887
|
-
: undefined,
|
|
7754
|
+
CreatedAt: output.CreatedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedAt))) : undefined,
|
|
7888
7755
|
Description: (0, smithy_client_1.expectString)(output.Description),
|
|
7889
7756
|
GlobalNetworkId: (0, smithy_client_1.expectString)(output.GlobalNetworkId),
|
|
7890
|
-
Location: output.Location
|
|
7891
|
-
? deserializeAws_restJson1Location(output.Location, context)
|
|
7892
|
-
: undefined,
|
|
7757
|
+
Location: output.Location != null ? deserializeAws_restJson1Location(output.Location, context) : undefined,
|
|
7893
7758
|
SiteArn: (0, smithy_client_1.expectString)(output.SiteArn),
|
|
7894
7759
|
SiteId: (0, smithy_client_1.expectString)(output.SiteId),
|
|
7895
7760
|
State: (0, smithy_client_1.expectString)(output.State),
|
|
7896
|
-
Tags: output.Tags
|
|
7897
|
-
? deserializeAws_restJson1TagList(output.Tags, context)
|
|
7898
|
-
: undefined,
|
|
7761
|
+
Tags: output.Tags != null ? deserializeAws_restJson1TagList(output.Tags, context) : undefined,
|
|
7899
7762
|
};
|
|
7900
7763
|
};
|
|
7901
7764
|
const deserializeAws_restJson1SiteList = (output, context) => {
|
|
@@ -7911,9 +7774,7 @@ const deserializeAws_restJson1SiteList = (output, context) => {
|
|
|
7911
7774
|
};
|
|
7912
7775
|
const deserializeAws_restJson1SiteToSiteVpnAttachment = (output, context) => {
|
|
7913
7776
|
return {
|
|
7914
|
-
Attachment: output.Attachment
|
|
7915
|
-
? deserializeAws_restJson1Attachment(output.Attachment, context)
|
|
7916
|
-
: undefined,
|
|
7777
|
+
Attachment: output.Attachment != null ? deserializeAws_restJson1Attachment(output.Attachment, context) : undefined,
|
|
7917
7778
|
VpnConnectionArn: (0, smithy_client_1.expectString)(output.VpnConnectionArn),
|
|
7918
7779
|
};
|
|
7919
7780
|
};
|
|
@@ -7968,7 +7829,7 @@ const deserializeAws_restJson1TransitGatewayConnectPeerAssociationList = (output
|
|
|
7968
7829
|
const deserializeAws_restJson1TransitGatewayRegistration = (output, context) => {
|
|
7969
7830
|
return {
|
|
7970
7831
|
GlobalNetworkId: (0, smithy_client_1.expectString)(output.GlobalNetworkId),
|
|
7971
|
-
State: output.State
|
|
7832
|
+
State: output.State != null
|
|
7972
7833
|
? deserializeAws_restJson1TransitGatewayRegistrationStateReason(output.State, context)
|
|
7973
7834
|
: undefined,
|
|
7974
7835
|
TransitGatewayArn: (0, smithy_client_1.expectString)(output.TransitGatewayArn),
|
|
@@ -8010,15 +7871,9 @@ const deserializeAws_restJson1ValidationExceptionFieldList = (output, context) =
|
|
|
8010
7871
|
};
|
|
8011
7872
|
const deserializeAws_restJson1VpcAttachment = (output, context) => {
|
|
8012
7873
|
return {
|
|
8013
|
-
Attachment: output.Attachment
|
|
8014
|
-
|
|
8015
|
-
|
|
8016
|
-
Options: output.Options !== undefined && output.Options !== null
|
|
8017
|
-
? deserializeAws_restJson1VpcOptions(output.Options, context)
|
|
8018
|
-
: undefined,
|
|
8019
|
-
SubnetArns: output.SubnetArns !== undefined && output.SubnetArns !== null
|
|
8020
|
-
? deserializeAws_restJson1SubnetArnList(output.SubnetArns, context)
|
|
8021
|
-
: 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,
|
|
8022
7877
|
};
|
|
8023
7878
|
};
|
|
8024
7879
|
const deserializeAws_restJson1VpcOptions = (output, context) => {
|