@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.
@@ -57,7 +57,7 @@ export var serializeAws_restJson1AssociateConnectPeerCommand = function (input,
57
57
  else {
58
58
  throw new Error("No value provided for input HTTP label: GlobalNetworkId.");
59
59
  }
60
- body = JSON.stringify(__assign(__assign(__assign({}, (input.ConnectPeerId !== undefined && input.ConnectPeerId !== null && { ConnectPeerId: input.ConnectPeerId })), (input.DeviceId !== undefined && input.DeviceId !== null && { DeviceId: input.DeviceId })), (input.LinkId !== undefined && input.LinkId !== null && { LinkId: input.LinkId })));
60
+ body = JSON.stringify(__assign(__assign(__assign({}, (input.ConnectPeerId != null && { ConnectPeerId: input.ConnectPeerId })), (input.DeviceId != null && { DeviceId: input.DeviceId })), (input.LinkId != null && { LinkId: input.LinkId })));
61
61
  return [2, new __HttpRequest({
62
62
  protocol: protocol,
63
63
  hostname: hostname,
@@ -92,8 +92,7 @@ export var serializeAws_restJson1AssociateCustomerGatewayCommand = function (inp
92
92
  else {
93
93
  throw new Error("No value provided for input HTTP label: GlobalNetworkId.");
94
94
  }
95
- body = JSON.stringify(__assign(__assign(__assign({}, (input.CustomerGatewayArn !== undefined &&
96
- input.CustomerGatewayArn !== null && { CustomerGatewayArn: input.CustomerGatewayArn })), (input.DeviceId !== undefined && input.DeviceId !== null && { DeviceId: input.DeviceId })), (input.LinkId !== undefined && input.LinkId !== null && { LinkId: input.LinkId })));
95
+ body = JSON.stringify(__assign(__assign(__assign({}, (input.CustomerGatewayArn != null && { CustomerGatewayArn: input.CustomerGatewayArn })), (input.DeviceId != null && { DeviceId: input.DeviceId })), (input.LinkId != null && { LinkId: input.LinkId })));
97
96
  return [2, new __HttpRequest({
98
97
  protocol: protocol,
99
98
  hostname: hostname,
@@ -128,7 +127,7 @@ export var serializeAws_restJson1AssociateLinkCommand = function (input, context
128
127
  else {
129
128
  throw new Error("No value provided for input HTTP label: GlobalNetworkId.");
130
129
  }
131
- body = JSON.stringify(__assign(__assign({}, (input.DeviceId !== undefined && input.DeviceId !== null && { DeviceId: input.DeviceId })), (input.LinkId !== undefined && input.LinkId !== null && { LinkId: input.LinkId })));
130
+ body = JSON.stringify(__assign(__assign({}, (input.DeviceId != null && { DeviceId: input.DeviceId })), (input.LinkId != null && { LinkId: input.LinkId })));
132
131
  return [2, new __HttpRequest({
133
132
  protocol: protocol,
134
133
  hostname: hostname,
@@ -163,8 +162,7 @@ export var serializeAws_restJson1AssociateTransitGatewayConnectPeerCommand = fun
163
162
  else {
164
163
  throw new Error("No value provided for input HTTP label: GlobalNetworkId.");
165
164
  }
166
- body = JSON.stringify(__assign(__assign(__assign({}, (input.DeviceId !== undefined && input.DeviceId !== null && { DeviceId: input.DeviceId })), (input.LinkId !== undefined && input.LinkId !== null && { LinkId: input.LinkId })), (input.TransitGatewayConnectPeerArn !== undefined &&
167
- input.TransitGatewayConnectPeerArn !== null && {
165
+ body = JSON.stringify(__assign(__assign(__assign({}, (input.DeviceId != null && { DeviceId: input.DeviceId })), (input.LinkId != null && { LinkId: input.LinkId })), (input.TransitGatewayConnectPeerArn != null && {
168
166
  TransitGatewayConnectPeerArn: input.TransitGatewayConnectPeerArn,
169
167
  })));
170
168
  return [2, new __HttpRequest({
@@ -191,10 +189,7 @@ export var serializeAws_restJson1CreateConnectAttachmentCommand = function (inpu
191
189
  "content-type": "application/json",
192
190
  };
193
191
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/connect-attachments";
194
- body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({ ClientToken: (_c = input.ClientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.CoreNetworkId !== undefined && input.CoreNetworkId !== null && { CoreNetworkId: input.CoreNetworkId })), (input.EdgeLocation !== undefined && input.EdgeLocation !== null && { EdgeLocation: input.EdgeLocation })), (input.Options !== undefined &&
195
- input.Options !== null && { Options: serializeAws_restJson1ConnectAttachmentOptions(input.Options, context) })), (input.Tags !== undefined &&
196
- input.Tags !== null && { Tags: serializeAws_restJson1TagList(input.Tags, context) })), (input.TransportAttachmentId !== undefined &&
197
- input.TransportAttachmentId !== null && { TransportAttachmentId: input.TransportAttachmentId })));
192
+ body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({ ClientToken: (_c = input.ClientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.CoreNetworkId != null && { CoreNetworkId: input.CoreNetworkId })), (input.EdgeLocation != null && { EdgeLocation: input.EdgeLocation })), (input.Options != null && { Options: serializeAws_restJson1ConnectAttachmentOptions(input.Options, context) })), (input.Tags != null && { Tags: serializeAws_restJson1TagList(input.Tags, context) })), (input.TransportAttachmentId != null && { TransportAttachmentId: input.TransportAttachmentId })));
198
193
  return [2, new __HttpRequest({
199
194
  protocol: protocol,
200
195
  hostname: hostname,
@@ -229,10 +224,7 @@ export var serializeAws_restJson1CreateConnectionCommand = function (input, cont
229
224
  else {
230
225
  throw new Error("No value provided for input HTTP label: GlobalNetworkId.");
231
226
  }
232
- body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.ConnectedDeviceId !== undefined &&
233
- input.ConnectedDeviceId !== null && { ConnectedDeviceId: input.ConnectedDeviceId })), (input.ConnectedLinkId !== undefined &&
234
- input.ConnectedLinkId !== null && { ConnectedLinkId: input.ConnectedLinkId })), (input.Description !== undefined && input.Description !== null && { Description: input.Description })), (input.DeviceId !== undefined && input.DeviceId !== null && { DeviceId: input.DeviceId })), (input.LinkId !== undefined && input.LinkId !== null && { LinkId: input.LinkId })), (input.Tags !== undefined &&
235
- input.Tags !== null && { Tags: serializeAws_restJson1TagList(input.Tags, context) })));
227
+ body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.ConnectedDeviceId != null && { ConnectedDeviceId: input.ConnectedDeviceId })), (input.ConnectedLinkId != null && { ConnectedLinkId: input.ConnectedLinkId })), (input.Description != null && { Description: input.Description })), (input.DeviceId != null && { DeviceId: input.DeviceId })), (input.LinkId != null && { LinkId: input.LinkId })), (input.Tags != null && { Tags: serializeAws_restJson1TagList(input.Tags, context) })));
236
228
  return [2, new __HttpRequest({
237
229
  protocol: protocol,
238
230
  hostname: hostname,
@@ -257,14 +249,9 @@ export var serializeAws_restJson1CreateConnectPeerCommand = function (input, con
257
249
  "content-type": "application/json",
258
250
  };
259
251
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/connect-peers";
260
- body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.BgpOptions !== undefined &&
261
- input.BgpOptions !== null && { BgpOptions: serializeAws_restJson1BgpOptions(input.BgpOptions, context) })), { ClientToken: (_c = input.ClientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }), (input.ConnectAttachmentId !== undefined &&
262
- input.ConnectAttachmentId !== null && { ConnectAttachmentId: input.ConnectAttachmentId })), (input.CoreNetworkAddress !== undefined &&
263
- input.CoreNetworkAddress !== null && { CoreNetworkAddress: input.CoreNetworkAddress })), (input.InsideCidrBlocks !== undefined &&
264
- input.InsideCidrBlocks !== null && {
252
+ body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.BgpOptions != null && { BgpOptions: serializeAws_restJson1BgpOptions(input.BgpOptions, context) })), { ClientToken: (_c = input.ClientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }), (input.ConnectAttachmentId != null && { ConnectAttachmentId: input.ConnectAttachmentId })), (input.CoreNetworkAddress != null && { CoreNetworkAddress: input.CoreNetworkAddress })), (input.InsideCidrBlocks != null && {
265
253
  InsideCidrBlocks: serializeAws_restJson1ConstrainedStringList(input.InsideCidrBlocks, context),
266
- })), (input.PeerAddress !== undefined && input.PeerAddress !== null && { PeerAddress: input.PeerAddress })), (input.Tags !== undefined &&
267
- input.Tags !== null && { Tags: serializeAws_restJson1TagList(input.Tags, context) })));
254
+ })), (input.PeerAddress != null && { PeerAddress: input.PeerAddress })), (input.Tags != null && { Tags: serializeAws_restJson1TagList(input.Tags, context) })));
268
255
  return [2, new __HttpRequest({
269
256
  protocol: protocol,
270
257
  hostname: hostname,
@@ -289,10 +276,7 @@ export var serializeAws_restJson1CreateCoreNetworkCommand = function (input, con
289
276
  "content-type": "application/json",
290
277
  };
291
278
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/core-networks";
292
- body = JSON.stringify(__assign(__assign(__assign(__assign({ ClientToken: (_c = input.ClientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.Description !== undefined && input.Description !== null && { Description: input.Description })), (input.GlobalNetworkId !== undefined &&
293
- input.GlobalNetworkId !== null && { GlobalNetworkId: input.GlobalNetworkId })), (input.PolicyDocument !== undefined &&
294
- input.PolicyDocument !== null && { PolicyDocument: input.PolicyDocument })), (input.Tags !== undefined &&
295
- input.Tags !== null && { Tags: serializeAws_restJson1TagList(input.Tags, context) })));
279
+ body = JSON.stringify(__assign(__assign(__assign(__assign({ ClientToken: (_c = input.ClientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.Description != null && { Description: input.Description })), (input.GlobalNetworkId != null && { GlobalNetworkId: input.GlobalNetworkId })), (input.PolicyDocument != null && { PolicyDocument: input.PolicyDocument })), (input.Tags != null && { Tags: serializeAws_restJson1TagList(input.Tags, context) })));
296
280
  return [2, new __HttpRequest({
297
281
  protocol: protocol,
298
282
  hostname: hostname,
@@ -327,10 +311,7 @@ export var serializeAws_restJson1CreateDeviceCommand = function (input, context)
327
311
  else {
328
312
  throw new Error("No value provided for input HTTP label: GlobalNetworkId.");
329
313
  }
330
- body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.AWSLocation !== undefined &&
331
- input.AWSLocation !== null && { AWSLocation: serializeAws_restJson1AWSLocation(input.AWSLocation, context) })), (input.Description !== undefined && input.Description !== null && { Description: input.Description })), (input.Location !== undefined &&
332
- input.Location !== null && { Location: serializeAws_restJson1Location(input.Location, context) })), (input.Model !== undefined && input.Model !== null && { Model: input.Model })), (input.SerialNumber !== undefined && input.SerialNumber !== null && { SerialNumber: input.SerialNumber })), (input.SiteId !== undefined && input.SiteId !== null && { SiteId: input.SiteId })), (input.Tags !== undefined &&
333
- input.Tags !== null && { Tags: serializeAws_restJson1TagList(input.Tags, context) })), (input.Type !== undefined && input.Type !== null && { Type: input.Type })), (input.Vendor !== undefined && input.Vendor !== null && { Vendor: input.Vendor })));
314
+ body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.AWSLocation != null && { AWSLocation: serializeAws_restJson1AWSLocation(input.AWSLocation, context) })), (input.Description != null && { Description: input.Description })), (input.Location != null && { Location: serializeAws_restJson1Location(input.Location, context) })), (input.Model != null && { Model: input.Model })), (input.SerialNumber != null && { SerialNumber: input.SerialNumber })), (input.SiteId != null && { SiteId: input.SiteId })), (input.Tags != null && { Tags: serializeAws_restJson1TagList(input.Tags, context) })), (input.Type != null && { Type: input.Type })), (input.Vendor != null && { Vendor: input.Vendor })));
334
315
  return [2, new __HttpRequest({
335
316
  protocol: protocol,
336
317
  hostname: hostname,
@@ -354,8 +335,7 @@ export var serializeAws_restJson1CreateGlobalNetworkCommand = function (input, c
354
335
  "content-type": "application/json",
355
336
  };
356
337
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/global-networks";
357
- body = JSON.stringify(__assign(__assign({}, (input.Description !== undefined && input.Description !== null && { Description: input.Description })), (input.Tags !== undefined &&
358
- input.Tags !== null && { Tags: serializeAws_restJson1TagList(input.Tags, context) })));
338
+ body = JSON.stringify(__assign(__assign({}, (input.Description != null && { Description: input.Description })), (input.Tags != null && { Tags: serializeAws_restJson1TagList(input.Tags, context) })));
359
339
  return [2, new __HttpRequest({
360
340
  protocol: protocol,
361
341
  hostname: hostname,
@@ -389,9 +369,7 @@ export var serializeAws_restJson1CreateLinkCommand = function (input, context) {
389
369
  else {
390
370
  throw new Error("No value provided for input HTTP label: GlobalNetworkId.");
391
371
  }
392
- body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.Bandwidth !== undefined &&
393
- input.Bandwidth !== null && { Bandwidth: serializeAws_restJson1Bandwidth(input.Bandwidth, context) })), (input.Description !== undefined && input.Description !== null && { Description: input.Description })), (input.Provider !== undefined && input.Provider !== null && { Provider: input.Provider })), (input.SiteId !== undefined && input.SiteId !== null && { SiteId: input.SiteId })), (input.Tags !== undefined &&
394
- input.Tags !== null && { Tags: serializeAws_restJson1TagList(input.Tags, context) })), (input.Type !== undefined && input.Type !== null && { Type: input.Type })));
372
+ body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.Bandwidth != null && { Bandwidth: serializeAws_restJson1Bandwidth(input.Bandwidth, context) })), (input.Description != null && { Description: input.Description })), (input.Provider != null && { Provider: input.Provider })), (input.SiteId != null && { SiteId: input.SiteId })), (input.Tags != null && { Tags: serializeAws_restJson1TagList(input.Tags, context) })), (input.Type != null && { Type: input.Type })));
395
373
  return [2, new __HttpRequest({
396
374
  protocol: protocol,
397
375
  hostname: hostname,
@@ -425,9 +403,7 @@ export var serializeAws_restJson1CreateSiteCommand = function (input, context) {
425
403
  else {
426
404
  throw new Error("No value provided for input HTTP label: GlobalNetworkId.");
427
405
  }
428
- body = JSON.stringify(__assign(__assign(__assign({}, (input.Description !== undefined && input.Description !== null && { Description: input.Description })), (input.Location !== undefined &&
429
- input.Location !== null && { Location: serializeAws_restJson1Location(input.Location, context) })), (input.Tags !== undefined &&
430
- input.Tags !== null && { Tags: serializeAws_restJson1TagList(input.Tags, context) })));
406
+ body = JSON.stringify(__assign(__assign(__assign({}, (input.Description != null && { Description: input.Description })), (input.Location != null && { Location: serializeAws_restJson1Location(input.Location, context) })), (input.Tags != null && { Tags: serializeAws_restJson1TagList(input.Tags, context) })));
431
407
  return [2, new __HttpRequest({
432
408
  protocol: protocol,
433
409
  hostname: hostname,
@@ -452,9 +428,7 @@ export var serializeAws_restJson1CreateSiteToSiteVpnAttachmentCommand = function
452
428
  "content-type": "application/json",
453
429
  };
454
430
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/site-to-site-vpn-attachments";
455
- body = JSON.stringify(__assign(__assign(__assign({ ClientToken: (_c = input.ClientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.CoreNetworkId !== undefined && input.CoreNetworkId !== null && { CoreNetworkId: input.CoreNetworkId })), (input.Tags !== undefined &&
456
- input.Tags !== null && { Tags: serializeAws_restJson1TagList(input.Tags, context) })), (input.VpnConnectionArn !== undefined &&
457
- input.VpnConnectionArn !== null && { VpnConnectionArn: input.VpnConnectionArn })));
431
+ body = JSON.stringify(__assign(__assign(__assign({ ClientToken: (_c = input.ClientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.CoreNetworkId != null && { CoreNetworkId: input.CoreNetworkId })), (input.Tags != null && { Tags: serializeAws_restJson1TagList(input.Tags, context) })), (input.VpnConnectionArn != null && { VpnConnectionArn: input.VpnConnectionArn })));
458
432
  return [2, new __HttpRequest({
459
433
  protocol: protocol,
460
434
  hostname: hostname,
@@ -479,10 +453,7 @@ export var serializeAws_restJson1CreateVpcAttachmentCommand = function (input, c
479
453
  "content-type": "application/json",
480
454
  };
481
455
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/vpc-attachments";
482
- body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({ ClientToken: (_c = input.ClientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.CoreNetworkId !== undefined && input.CoreNetworkId !== null && { CoreNetworkId: input.CoreNetworkId })), (input.Options !== undefined &&
483
- input.Options !== null && { Options: serializeAws_restJson1VpcOptions(input.Options, context) })), (input.SubnetArns !== undefined &&
484
- input.SubnetArns !== null && { SubnetArns: serializeAws_restJson1SubnetArnList(input.SubnetArns, context) })), (input.Tags !== undefined &&
485
- input.Tags !== null && { Tags: serializeAws_restJson1TagList(input.Tags, context) })), (input.VpcArn !== undefined && input.VpcArn !== null && { VpcArn: input.VpcArn })));
456
+ body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({ ClientToken: (_c = input.ClientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.CoreNetworkId != null && { CoreNetworkId: input.CoreNetworkId })), (input.Options != null && { Options: serializeAws_restJson1VpcOptions(input.Options, context) })), (input.SubnetArns != null && { SubnetArns: serializeAws_restJson1SubnetArnList(input.SubnetArns, context) })), (input.Tags != null && { Tags: serializeAws_restJson1TagList(input.Tags, context) })), (input.VpcArn != null && { VpcArn: input.VpcArn })));
486
457
  return [2, new __HttpRequest({
487
458
  protocol: protocol,
488
459
  hostname: hostname,
@@ -1633,30 +1604,21 @@ export var serializeAws_restJson1GetNetworkRoutesCommand = function (input, cont
1633
1604
  else {
1634
1605
  throw new Error("No value provided for input HTTP label: GlobalNetworkId.");
1635
1606
  }
1636
- body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.DestinationFilters !== undefined &&
1637
- input.DestinationFilters !== null && {
1607
+ body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.DestinationFilters != null && {
1638
1608
  DestinationFilters: serializeAws_restJson1FilterMap(input.DestinationFilters, context),
1639
- })), (input.ExactCidrMatches !== undefined &&
1640
- input.ExactCidrMatches !== null && {
1609
+ })), (input.ExactCidrMatches != null && {
1641
1610
  ExactCidrMatches: serializeAws_restJson1ConstrainedStringList(input.ExactCidrMatches, context),
1642
- })), (input.LongestPrefixMatches !== undefined &&
1643
- input.LongestPrefixMatches !== null && {
1611
+ })), (input.LongestPrefixMatches != null && {
1644
1612
  LongestPrefixMatches: serializeAws_restJson1ConstrainedStringList(input.LongestPrefixMatches, context),
1645
- })), (input.PrefixListIds !== undefined &&
1646
- input.PrefixListIds !== null && {
1613
+ })), (input.PrefixListIds != null && {
1647
1614
  PrefixListIds: serializeAws_restJson1ConstrainedStringList(input.PrefixListIds, context),
1648
- })), (input.RouteTableIdentifier !== undefined &&
1649
- input.RouteTableIdentifier !== null && {
1615
+ })), (input.RouteTableIdentifier != null && {
1650
1616
  RouteTableIdentifier: serializeAws_restJson1RouteTableIdentifier(input.RouteTableIdentifier, context),
1651
- })), (input.States !== undefined &&
1652
- input.States !== null && { States: serializeAws_restJson1RouteStateList(input.States, context) })), (input.SubnetOfMatches !== undefined &&
1653
- input.SubnetOfMatches !== null && {
1617
+ })), (input.States != null && { States: serializeAws_restJson1RouteStateList(input.States, context) })), (input.SubnetOfMatches != null && {
1654
1618
  SubnetOfMatches: serializeAws_restJson1ConstrainedStringList(input.SubnetOfMatches, context),
1655
- })), (input.SupernetOfMatches !== undefined &&
1656
- input.SupernetOfMatches !== null && {
1619
+ })), (input.SupernetOfMatches != null && {
1657
1620
  SupernetOfMatches: serializeAws_restJson1ConstrainedStringList(input.SupernetOfMatches, context),
1658
- })), (input.Types !== undefined &&
1659
- input.Types !== null && { Types: serializeAws_restJson1RouteTypeList(input.Types, context) })));
1621
+ })), (input.Types != null && { Types: serializeAws_restJson1RouteTypeList(input.Types, context) })));
1660
1622
  return [2, new __HttpRequest({
1661
1623
  protocol: protocol,
1662
1624
  hostname: hostname,
@@ -2124,9 +2086,7 @@ export var serializeAws_restJson1PutCoreNetworkPolicyCommand = function (input,
2124
2086
  else {
2125
2087
  throw new Error("No value provided for input HTTP label: CoreNetworkId.");
2126
2088
  }
2127
- body = JSON.stringify(__assign(__assign(__assign({ ClientToken: (_c = input.ClientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.Description !== undefined && input.Description !== null && { Description: input.Description })), (input.LatestVersionId !== undefined &&
2128
- input.LatestVersionId !== null && { LatestVersionId: input.LatestVersionId })), (input.PolicyDocument !== undefined &&
2129
- input.PolicyDocument !== null && { PolicyDocument: __LazyJsonString.fromObject(input.PolicyDocument) })));
2089
+ body = JSON.stringify(__assign(__assign(__assign({ ClientToken: (_c = input.ClientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.Description != null && { Description: input.Description })), (input.LatestVersionId != null && { LatestVersionId: input.LatestVersionId })), (input.PolicyDocument != null && { PolicyDocument: __LazyJsonString.fromObject(input.PolicyDocument) })));
2130
2090
  return [2, new __HttpRequest({
2131
2091
  protocol: protocol,
2132
2092
  hostname: hostname,
@@ -2160,8 +2120,7 @@ export var serializeAws_restJson1PutResourcePolicyCommand = function (input, con
2160
2120
  else {
2161
2121
  throw new Error("No value provided for input HTTP label: ResourceArn.");
2162
2122
  }
2163
- body = JSON.stringify(__assign({}, (input.PolicyDocument !== undefined &&
2164
- input.PolicyDocument !== null && { PolicyDocument: __LazyJsonString.fromObject(input.PolicyDocument) })));
2123
+ body = JSON.stringify(__assign({}, (input.PolicyDocument != null && { PolicyDocument: __LazyJsonString.fromObject(input.PolicyDocument) })));
2165
2124
  return [2, new __HttpRequest({
2166
2125
  protocol: protocol,
2167
2126
  hostname: hostname,
@@ -2196,8 +2155,7 @@ export var serializeAws_restJson1RegisterTransitGatewayCommand = function (input
2196
2155
  else {
2197
2156
  throw new Error("No value provided for input HTTP label: GlobalNetworkId.");
2198
2157
  }
2199
- body = JSON.stringify(__assign({}, (input.TransitGatewayArn !== undefined &&
2200
- input.TransitGatewayArn !== null && { TransitGatewayArn: input.TransitGatewayArn })));
2158
+ body = JSON.stringify(__assign({}, (input.TransitGatewayArn != null && { TransitGatewayArn: input.TransitGatewayArn })));
2201
2159
  return [2, new __HttpRequest({
2202
2160
  protocol: protocol,
2203
2161
  hostname: hostname,
@@ -2294,7 +2252,7 @@ export var serializeAws_restJson1StartOrganizationServiceAccessUpdateCommand = f
2294
2252
  "content-type": "application/json",
2295
2253
  };
2296
2254
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/organizations/service-access";
2297
- body = JSON.stringify(__assign({}, (input.Action !== undefined && input.Action !== null && { Action: input.Action })));
2255
+ body = JSON.stringify(__assign({}, (input.Action != null && { Action: input.Action })));
2298
2256
  return [2, new __HttpRequest({
2299
2257
  protocol: protocol,
2300
2258
  hostname: hostname,
@@ -2329,15 +2287,11 @@ export var serializeAws_restJson1StartRouteAnalysisCommand = function (input, co
2329
2287
  else {
2330
2288
  throw new Error("No value provided for input HTTP label: GlobalNetworkId.");
2331
2289
  }
2332
- body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.Destination !== undefined &&
2333
- input.Destination !== null && {
2290
+ body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.Destination != null && {
2334
2291
  Destination: serializeAws_restJson1RouteAnalysisEndpointOptionsSpecification(input.Destination, context),
2335
- })), (input.IncludeReturnPath !== undefined &&
2336
- input.IncludeReturnPath !== null && { IncludeReturnPath: input.IncludeReturnPath })), (input.Source !== undefined &&
2337
- input.Source !== null && {
2292
+ })), (input.IncludeReturnPath != null && { IncludeReturnPath: input.IncludeReturnPath })), (input.Source != null && {
2338
2293
  Source: serializeAws_restJson1RouteAnalysisEndpointOptionsSpecification(input.Source, context),
2339
- })), (input.UseMiddleboxes !== undefined &&
2340
- input.UseMiddleboxes !== null && { UseMiddleboxes: input.UseMiddleboxes })));
2294
+ })), (input.UseMiddleboxes != null && { UseMiddleboxes: input.UseMiddleboxes })));
2341
2295
  return [2, new __HttpRequest({
2342
2296
  protocol: protocol,
2343
2297
  hostname: hostname,
@@ -2371,8 +2325,7 @@ export var serializeAws_restJson1TagResourceCommand = function (input, context)
2371
2325
  else {
2372
2326
  throw new Error("No value provided for input HTTP label: ResourceArn.");
2373
2327
  }
2374
- body = JSON.stringify(__assign({}, (input.Tags !== undefined &&
2375
- input.Tags !== null && { Tags: serializeAws_restJson1TagList(input.Tags, context) })));
2328
+ body = JSON.stringify(__assign({}, (input.Tags != null && { Tags: serializeAws_restJson1TagList(input.Tags, context) })));
2376
2329
  return [2, new __HttpRequest({
2377
2330
  protocol: protocol,
2378
2331
  hostname: hostname,
@@ -2450,8 +2403,7 @@ export var serializeAws_restJson1UpdateConnectionCommand = function (input, cont
2450
2403
  else {
2451
2404
  throw new Error("No value provided for input HTTP label: ConnectionId.");
2452
2405
  }
2453
- body = JSON.stringify(__assign(__assign(__assign({}, (input.ConnectedLinkId !== undefined &&
2454
- input.ConnectedLinkId !== null && { ConnectedLinkId: input.ConnectedLinkId })), (input.Description !== undefined && input.Description !== null && { Description: input.Description })), (input.LinkId !== undefined && input.LinkId !== null && { LinkId: input.LinkId })));
2406
+ body = JSON.stringify(__assign(__assign(__assign({}, (input.ConnectedLinkId != null && { ConnectedLinkId: input.ConnectedLinkId })), (input.Description != null && { Description: input.Description })), (input.LinkId != null && { LinkId: input.LinkId })));
2455
2407
  return [2, new __HttpRequest({
2456
2408
  protocol: protocol,
2457
2409
  hostname: hostname,
@@ -2485,7 +2437,7 @@ export var serializeAws_restJson1UpdateCoreNetworkCommand = function (input, con
2485
2437
  else {
2486
2438
  throw new Error("No value provided for input HTTP label: CoreNetworkId.");
2487
2439
  }
2488
- body = JSON.stringify(__assign({}, (input.Description !== undefined && input.Description !== null && { Description: input.Description })));
2440
+ body = JSON.stringify(__assign({}, (input.Description != null && { Description: input.Description })));
2489
2441
  return [2, new __HttpRequest({
2490
2442
  protocol: protocol,
2491
2443
  hostname: hostname,
@@ -2530,9 +2482,7 @@ export var serializeAws_restJson1UpdateDeviceCommand = function (input, context)
2530
2482
  else {
2531
2483
  throw new Error("No value provided for input HTTP label: DeviceId.");
2532
2484
  }
2533
- body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.AWSLocation !== undefined &&
2534
- input.AWSLocation !== null && { AWSLocation: serializeAws_restJson1AWSLocation(input.AWSLocation, context) })), (input.Description !== undefined && input.Description !== null && { Description: input.Description })), (input.Location !== undefined &&
2535
- input.Location !== null && { Location: serializeAws_restJson1Location(input.Location, context) })), (input.Model !== undefined && input.Model !== null && { Model: input.Model })), (input.SerialNumber !== undefined && input.SerialNumber !== null && { SerialNumber: input.SerialNumber })), (input.SiteId !== undefined && input.SiteId !== null && { SiteId: input.SiteId })), (input.Type !== undefined && input.Type !== null && { Type: input.Type })), (input.Vendor !== undefined && input.Vendor !== null && { Vendor: input.Vendor })));
2485
+ body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.AWSLocation != null && { AWSLocation: serializeAws_restJson1AWSLocation(input.AWSLocation, context) })), (input.Description != null && { Description: input.Description })), (input.Location != null && { Location: serializeAws_restJson1Location(input.Location, context) })), (input.Model != null && { Model: input.Model })), (input.SerialNumber != null && { SerialNumber: input.SerialNumber })), (input.SiteId != null && { SiteId: input.SiteId })), (input.Type != null && { Type: input.Type })), (input.Vendor != null && { Vendor: input.Vendor })));
2536
2486
  return [2, new __HttpRequest({
2537
2487
  protocol: protocol,
2538
2488
  hostname: hostname,
@@ -2566,7 +2516,7 @@ export var serializeAws_restJson1UpdateGlobalNetworkCommand = function (input, c
2566
2516
  else {
2567
2517
  throw new Error("No value provided for input HTTP label: GlobalNetworkId.");
2568
2518
  }
2569
- body = JSON.stringify(__assign({}, (input.Description !== undefined && input.Description !== null && { Description: input.Description })));
2519
+ body = JSON.stringify(__assign({}, (input.Description != null && { Description: input.Description })));
2570
2520
  return [2, new __HttpRequest({
2571
2521
  protocol: protocol,
2572
2522
  hostname: hostname,
@@ -2611,8 +2561,7 @@ export var serializeAws_restJson1UpdateLinkCommand = function (input, context) {
2611
2561
  else {
2612
2562
  throw new Error("No value provided for input HTTP label: LinkId.");
2613
2563
  }
2614
- body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.Bandwidth !== undefined &&
2615
- input.Bandwidth !== null && { Bandwidth: serializeAws_restJson1Bandwidth(input.Bandwidth, context) })), (input.Description !== undefined && input.Description !== null && { Description: input.Description })), (input.Provider !== undefined && input.Provider !== null && { Provider: input.Provider })), (input.Type !== undefined && input.Type !== null && { Type: input.Type })));
2564
+ body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.Bandwidth != null && { Bandwidth: serializeAws_restJson1Bandwidth(input.Bandwidth, context) })), (input.Description != null && { Description: input.Description })), (input.Provider != null && { Provider: input.Provider })), (input.Type != null && { Type: input.Type })));
2616
2565
  return [2, new __HttpRequest({
2617
2566
  protocol: protocol,
2618
2567
  hostname: hostname,
@@ -2657,8 +2606,7 @@ export var serializeAws_restJson1UpdateNetworkResourceMetadataCommand = function
2657
2606
  else {
2658
2607
  throw new Error("No value provided for input HTTP label: ResourceArn.");
2659
2608
  }
2660
- body = JSON.stringify(__assign({}, (input.Metadata !== undefined &&
2661
- input.Metadata !== null && {
2609
+ body = JSON.stringify(__assign({}, (input.Metadata != null && {
2662
2610
  Metadata: serializeAws_restJson1NetworkResourceMetadataMap(input.Metadata, context),
2663
2611
  })));
2664
2612
  return [2, new __HttpRequest({
@@ -2705,8 +2653,7 @@ export var serializeAws_restJson1UpdateSiteCommand = function (input, context) {
2705
2653
  else {
2706
2654
  throw new Error("No value provided for input HTTP label: SiteId.");
2707
2655
  }
2708
- body = JSON.stringify(__assign(__assign({}, (input.Description !== undefined && input.Description !== null && { Description: input.Description })), (input.Location !== undefined &&
2709
- input.Location !== null && { Location: serializeAws_restJson1Location(input.Location, context) })));
2656
+ body = JSON.stringify(__assign(__assign({}, (input.Description != null && { Description: input.Description })), (input.Location != null && { Location: serializeAws_restJson1Location(input.Location, context) })));
2710
2657
  return [2, new __HttpRequest({
2711
2658
  protocol: protocol,
2712
2659
  hostname: hostname,
@@ -2740,12 +2687,9 @@ export var serializeAws_restJson1UpdateVpcAttachmentCommand = function (input, c
2740
2687
  else {
2741
2688
  throw new Error("No value provided for input HTTP label: AttachmentId.");
2742
2689
  }
2743
- body = JSON.stringify(__assign(__assign(__assign({}, (input.AddSubnetArns !== undefined &&
2744
- input.AddSubnetArns !== null && {
2690
+ body = JSON.stringify(__assign(__assign(__assign({}, (input.AddSubnetArns != null && {
2745
2691
  AddSubnetArns: serializeAws_restJson1SubnetArnList(input.AddSubnetArns, context),
2746
- })), (input.Options !== undefined &&
2747
- input.Options !== null && { Options: serializeAws_restJson1VpcOptions(input.Options, context) })), (input.RemoveSubnetArns !== undefined &&
2748
- input.RemoveSubnetArns !== null && {
2692
+ })), (input.Options != null && { Options: serializeAws_restJson1VpcOptions(input.Options, context) })), (input.RemoveSubnetArns != null && {
2749
2693
  RemoveSubnetArns: serializeAws_restJson1SubnetArnList(input.RemoveSubnetArns, context),
2750
2694
  })));
2751
2695
  return [2, new __HttpRequest({
@@ -8866,16 +8810,16 @@ var deserializeAws_restJson1ValidationExceptionResponse = function (parsedOutput
8866
8810
  });
8867
8811
  }); };
8868
8812
  var serializeAws_restJson1AWSLocation = function (input, context) {
8869
- return __assign(__assign({}, (input.SubnetArn !== undefined && input.SubnetArn !== null && { SubnetArn: input.SubnetArn })), (input.Zone !== undefined && input.Zone !== null && { Zone: input.Zone }));
8813
+ return __assign(__assign({}, (input.SubnetArn != null && { SubnetArn: input.SubnetArn })), (input.Zone != null && { Zone: input.Zone }));
8870
8814
  };
8871
8815
  var serializeAws_restJson1Bandwidth = function (input, context) {
8872
- return __assign(__assign({}, (input.DownloadSpeed !== undefined && input.DownloadSpeed !== null && { DownloadSpeed: input.DownloadSpeed })), (input.UploadSpeed !== undefined && input.UploadSpeed !== null && { UploadSpeed: input.UploadSpeed }));
8816
+ return __assign(__assign({}, (input.DownloadSpeed != null && { DownloadSpeed: input.DownloadSpeed })), (input.UploadSpeed != null && { UploadSpeed: input.UploadSpeed }));
8873
8817
  };
8874
8818
  var serializeAws_restJson1BgpOptions = function (input, context) {
8875
- return __assign({}, (input.PeerAsn !== undefined && input.PeerAsn !== null && { PeerAsn: input.PeerAsn }));
8819
+ return __assign({}, (input.PeerAsn != null && { PeerAsn: input.PeerAsn }));
8876
8820
  };
8877
8821
  var serializeAws_restJson1ConnectAttachmentOptions = function (input, context) {
8878
- return __assign({}, (input.Protocol !== undefined && input.Protocol !== null && { Protocol: input.Protocol }));
8822
+ return __assign({}, (input.Protocol != null && { Protocol: input.Protocol }));
8879
8823
  };
8880
8824
  var serializeAws_restJson1ConstrainedStringList = function (input, context) {
8881
8825
  return input
@@ -8888,7 +8832,7 @@ var serializeAws_restJson1ConstrainedStringList = function (input, context) {
8888
8832
  });
8889
8833
  };
8890
8834
  var serializeAws_restJson1CoreNetworkSegmentEdgeIdentifier = function (input, context) {
8891
- return __assign(__assign(__assign({}, (input.CoreNetworkId !== undefined && input.CoreNetworkId !== null && { CoreNetworkId: input.CoreNetworkId })), (input.EdgeLocation !== undefined && input.EdgeLocation !== null && { EdgeLocation: input.EdgeLocation })), (input.SegmentName !== undefined && input.SegmentName !== null && { SegmentName: input.SegmentName }));
8835
+ return __assign(__assign(__assign({}, (input.CoreNetworkId != null && { CoreNetworkId: input.CoreNetworkId })), (input.EdgeLocation != null && { EdgeLocation: input.EdgeLocation })), (input.SegmentName != null && { SegmentName: input.SegmentName }));
8892
8836
  };
8893
8837
  var serializeAws_restJson1FilterMap = function (input, context) {
8894
8838
  return Object.entries(input).reduce(function (acc, _a) {
@@ -8911,7 +8855,7 @@ var serializeAws_restJson1FilterValues = function (input, context) {
8911
8855
  });
8912
8856
  };
8913
8857
  var serializeAws_restJson1Location = function (input, context) {
8914
- return __assign(__assign(__assign({}, (input.Address !== undefined && input.Address !== null && { Address: input.Address })), (input.Latitude !== undefined && input.Latitude !== null && { Latitude: input.Latitude })), (input.Longitude !== undefined && input.Longitude !== null && { Longitude: input.Longitude }));
8858
+ return __assign(__assign(__assign({}, (input.Address != null && { Address: input.Address })), (input.Latitude != null && { Latitude: input.Latitude })), (input.Longitude != null && { Longitude: input.Longitude }));
8915
8859
  };
8916
8860
  var serializeAws_restJson1NetworkResourceMetadataMap = function (input, context) {
8917
8861
  return Object.entries(input).reduce(function (acc, _a) {
@@ -8924,8 +8868,9 @@ var serializeAws_restJson1NetworkResourceMetadataMap = function (input, context)
8924
8868
  }, {});
8925
8869
  };
8926
8870
  var serializeAws_restJson1RouteAnalysisEndpointOptionsSpecification = function (input, context) {
8927
- return __assign(__assign({}, (input.IpAddress !== undefined && input.IpAddress !== null && { IpAddress: input.IpAddress })), (input.TransitGatewayAttachmentArn !== undefined &&
8928
- input.TransitGatewayAttachmentArn !== null && { TransitGatewayAttachmentArn: input.TransitGatewayAttachmentArn }));
8871
+ return __assign(__assign({}, (input.IpAddress != null && { IpAddress: input.IpAddress })), (input.TransitGatewayAttachmentArn != null && {
8872
+ TransitGatewayAttachmentArn: input.TransitGatewayAttachmentArn,
8873
+ }));
8929
8874
  };
8930
8875
  var serializeAws_restJson1RouteStateList = function (input, context) {
8931
8876
  return input
@@ -8938,11 +8883,11 @@ var serializeAws_restJson1RouteStateList = function (input, context) {
8938
8883
  });
8939
8884
  };
8940
8885
  var serializeAws_restJson1RouteTableIdentifier = function (input, context) {
8941
- return __assign(__assign({}, (input.CoreNetworkSegmentEdge !== undefined &&
8942
- input.CoreNetworkSegmentEdge !== null && {
8886
+ return __assign(__assign({}, (input.CoreNetworkSegmentEdge != null && {
8943
8887
  CoreNetworkSegmentEdge: serializeAws_restJson1CoreNetworkSegmentEdgeIdentifier(input.CoreNetworkSegmentEdge, context),
8944
- })), (input.TransitGatewayRouteTableArn !== undefined &&
8945
- input.TransitGatewayRouteTableArn !== null && { TransitGatewayRouteTableArn: input.TransitGatewayRouteTableArn }));
8888
+ })), (input.TransitGatewayRouteTableArn != null && {
8889
+ TransitGatewayRouteTableArn: input.TransitGatewayRouteTableArn,
8890
+ }));
8946
8891
  };
8947
8892
  var serializeAws_restJson1RouteTypeList = function (input, context) {
8948
8893
  return input
@@ -8965,7 +8910,7 @@ var serializeAws_restJson1SubnetArnList = function (input, context) {
8965
8910
  });
8966
8911
  };
8967
8912
  var serializeAws_restJson1Tag = function (input, context) {
8968
- return __assign(__assign({}, (input.Key !== undefined && input.Key !== null && { Key: input.Key })), (input.Value !== undefined && input.Value !== null && { Value: input.Value }));
8913
+ return __assign(__assign({}, (input.Key != null && { Key: input.Key })), (input.Value != null && { Value: input.Value }));
8969
8914
  };
8970
8915
  var serializeAws_restJson1TagList = function (input, context) {
8971
8916
  return input
@@ -8978,7 +8923,7 @@ var serializeAws_restJson1TagList = function (input, context) {
8978
8923
  });
8979
8924
  };
8980
8925
  var serializeAws_restJson1VpcOptions = function (input, context) {
8981
- return __assign({}, (input.Ipv6Support !== undefined && input.Ipv6Support !== null && { Ipv6Support: input.Ipv6Support }));
8926
+ return __assign({}, (input.Ipv6Support != null && { Ipv6Support: input.Ipv6Support }));
8982
8927
  };
8983
8928
  var deserializeAws_restJson1AccountStatus = function (output, context) {
8984
8929
  return {
@@ -9004,23 +8949,17 @@ var deserializeAws_restJson1Attachment = function (output, context) {
9004
8949
  AttachmentType: __expectString(output.AttachmentType),
9005
8950
  CoreNetworkArn: __expectString(output.CoreNetworkArn),
9006
8951
  CoreNetworkId: __expectString(output.CoreNetworkId),
9007
- CreatedAt: output.CreatedAt !== undefined && output.CreatedAt !== null
9008
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedAt)))
9009
- : undefined,
8952
+ CreatedAt: output.CreatedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedAt))) : undefined,
9010
8953
  EdgeLocation: __expectString(output.EdgeLocation),
9011
8954
  OwnerAccountId: __expectString(output.OwnerAccountId),
9012
- ProposedSegmentChange: output.ProposedSegmentChange !== undefined && output.ProposedSegmentChange !== null
8955
+ ProposedSegmentChange: output.ProposedSegmentChange != null
9013
8956
  ? deserializeAws_restJson1ProposedSegmentChange(output.ProposedSegmentChange, context)
9014
8957
  : undefined,
9015
8958
  ResourceArn: __expectString(output.ResourceArn),
9016
8959
  SegmentName: __expectString(output.SegmentName),
9017
8960
  State: __expectString(output.State),
9018
- Tags: output.Tags !== undefined && output.Tags !== null
9019
- ? deserializeAws_restJson1TagList(output.Tags, context)
9020
- : undefined,
9021
- UpdatedAt: output.UpdatedAt !== undefined && output.UpdatedAt !== null
9022
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.UpdatedAt)))
9023
- : undefined,
8961
+ Tags: output.Tags != null ? deserializeAws_restJson1TagList(output.Tags, context) : undefined,
8962
+ UpdatedAt: output.UpdatedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.UpdatedAt))) : undefined,
9024
8963
  };
9025
8964
  };
9026
8965
  var deserializeAws_restJson1AttachmentList = function (output, context) {
@@ -9048,12 +8987,8 @@ var deserializeAws_restJson1Bandwidth = function (output, context) {
9048
8987
  };
9049
8988
  var deserializeAws_restJson1ConnectAttachment = function (output, context) {
9050
8989
  return {
9051
- Attachment: output.Attachment !== undefined && output.Attachment !== null
9052
- ? deserializeAws_restJson1Attachment(output.Attachment, context)
9053
- : undefined,
9054
- Options: output.Options !== undefined && output.Options !== null
9055
- ? deserializeAws_restJson1ConnectAttachmentOptions(output.Options, context)
9056
- : undefined,
8990
+ Attachment: output.Attachment != null ? deserializeAws_restJson1Attachment(output.Attachment, context) : undefined,
8991
+ Options: output.Options != null ? deserializeAws_restJson1ConnectAttachmentOptions(output.Options, context) : undefined,
9057
8992
  TransportAttachmentId: __expectString(output.TransportAttachmentId),
9058
8993
  };
9059
8994
  };
@@ -9068,25 +9003,19 @@ var deserializeAws_restJson1Connection = function (output, context) {
9068
9003
  ConnectedLinkId: __expectString(output.ConnectedLinkId),
9069
9004
  ConnectionArn: __expectString(output.ConnectionArn),
9070
9005
  ConnectionId: __expectString(output.ConnectionId),
9071
- CreatedAt: output.CreatedAt !== undefined && output.CreatedAt !== null
9072
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedAt)))
9073
- : undefined,
9006
+ CreatedAt: output.CreatedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedAt))) : undefined,
9074
9007
  Description: __expectString(output.Description),
9075
9008
  DeviceId: __expectString(output.DeviceId),
9076
9009
  GlobalNetworkId: __expectString(output.GlobalNetworkId),
9077
9010
  LinkId: __expectString(output.LinkId),
9078
9011
  State: __expectString(output.State),
9079
- Tags: output.Tags !== undefined && output.Tags !== null
9080
- ? deserializeAws_restJson1TagList(output.Tags, context)
9081
- : undefined,
9012
+ Tags: output.Tags != null ? deserializeAws_restJson1TagList(output.Tags, context) : undefined,
9082
9013
  };
9083
9014
  };
9084
9015
  var deserializeAws_restJson1ConnectionHealth = function (output, context) {
9085
9016
  return {
9086
9017
  Status: __expectString(output.Status),
9087
- Timestamp: output.Timestamp !== undefined && output.Timestamp !== null
9088
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.Timestamp)))
9089
- : undefined,
9018
+ Timestamp: output.Timestamp != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.Timestamp))) : undefined,
9090
9019
  Type: __expectString(output.Type),
9091
9020
  };
9092
9021
  };
@@ -9103,20 +9032,16 @@ var deserializeAws_restJson1ConnectionList = function (output, context) {
9103
9032
  };
9104
9033
  var deserializeAws_restJson1ConnectPeer = function (output, context) {
9105
9034
  return {
9106
- Configuration: output.Configuration !== undefined && output.Configuration !== null
9035
+ Configuration: output.Configuration != null
9107
9036
  ? deserializeAws_restJson1ConnectPeerConfiguration(output.Configuration, context)
9108
9037
  : undefined,
9109
9038
  ConnectAttachmentId: __expectString(output.ConnectAttachmentId),
9110
9039
  ConnectPeerId: __expectString(output.ConnectPeerId),
9111
9040
  CoreNetworkId: __expectString(output.CoreNetworkId),
9112
- CreatedAt: output.CreatedAt !== undefined && output.CreatedAt !== null
9113
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedAt)))
9114
- : undefined,
9041
+ CreatedAt: output.CreatedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedAt))) : undefined,
9115
9042
  EdgeLocation: __expectString(output.EdgeLocation),
9116
9043
  State: __expectString(output.State),
9117
- Tags: output.Tags !== undefined && output.Tags !== null
9118
- ? deserializeAws_restJson1TagList(output.Tags, context)
9119
- : undefined,
9044
+ Tags: output.Tags != null ? deserializeAws_restJson1TagList(output.Tags, context) : undefined,
9120
9045
  };
9121
9046
  };
9122
9047
  var deserializeAws_restJson1ConnectPeerAssociation = function (output, context) {
@@ -9160,11 +9085,11 @@ var deserializeAws_restJson1ConnectPeerBgpConfigurationList = function (output,
9160
9085
  };
9161
9086
  var deserializeAws_restJson1ConnectPeerConfiguration = function (output, context) {
9162
9087
  return {
9163
- BgpConfigurations: output.BgpConfigurations !== undefined && output.BgpConfigurations !== null
9088
+ BgpConfigurations: output.BgpConfigurations != null
9164
9089
  ? deserializeAws_restJson1ConnectPeerBgpConfigurationList(output.BgpConfigurations, context)
9165
9090
  : undefined,
9166
9091
  CoreNetworkAddress: __expectString(output.CoreNetworkAddress),
9167
- InsideCidrBlocks: output.InsideCidrBlocks !== undefined && output.InsideCidrBlocks !== null
9092
+ InsideCidrBlocks: output.InsideCidrBlocks != null
9168
9093
  ? deserializeAws_restJson1ConstrainedStringList(output.InsideCidrBlocks, context)
9169
9094
  : undefined,
9170
9095
  PeerAddress: __expectString(output.PeerAddress),
@@ -9177,13 +9102,9 @@ var deserializeAws_restJson1ConnectPeerSummary = function (output, context) {
9177
9102
  ConnectPeerId: __expectString(output.ConnectPeerId),
9178
9103
  ConnectPeerState: __expectString(output.ConnectPeerState),
9179
9104
  CoreNetworkId: __expectString(output.CoreNetworkId),
9180
- CreatedAt: output.CreatedAt !== undefined && output.CreatedAt !== null
9181
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedAt)))
9182
- : undefined,
9105
+ CreatedAt: output.CreatedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedAt))) : undefined,
9183
9106
  EdgeLocation: __expectString(output.EdgeLocation),
9184
- Tags: output.Tags !== undefined && output.Tags !== null
9185
- ? deserializeAws_restJson1TagList(output.Tags, context)
9186
- : undefined,
9107
+ Tags: output.Tags != null ? deserializeAws_restJson1TagList(output.Tags, context) : undefined,
9187
9108
  };
9188
9109
  };
9189
9110
  var deserializeAws_restJson1ConnectPeerSummaryList = function (output, context) {
@@ -9212,31 +9133,21 @@ var deserializeAws_restJson1CoreNetwork = function (output, context) {
9212
9133
  return {
9213
9134
  CoreNetworkArn: __expectString(output.CoreNetworkArn),
9214
9135
  CoreNetworkId: __expectString(output.CoreNetworkId),
9215
- CreatedAt: output.CreatedAt !== undefined && output.CreatedAt !== null
9216
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedAt)))
9217
- : undefined,
9136
+ CreatedAt: output.CreatedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedAt))) : undefined,
9218
9137
  Description: __expectString(output.Description),
9219
- Edges: output.Edges !== undefined && output.Edges !== null
9220
- ? deserializeAws_restJson1CoreNetworkEdgeList(output.Edges, context)
9221
- : undefined,
9138
+ Edges: output.Edges != null ? deserializeAws_restJson1CoreNetworkEdgeList(output.Edges, context) : undefined,
9222
9139
  GlobalNetworkId: __expectString(output.GlobalNetworkId),
9223
- Segments: output.Segments !== undefined && output.Segments !== null
9224
- ? deserializeAws_restJson1CoreNetworkSegmentList(output.Segments, context)
9225
- : undefined,
9140
+ Segments: output.Segments != null ? deserializeAws_restJson1CoreNetworkSegmentList(output.Segments, context) : undefined,
9226
9141
  State: __expectString(output.State),
9227
- Tags: output.Tags !== undefined && output.Tags !== null
9228
- ? deserializeAws_restJson1TagList(output.Tags, context)
9229
- : undefined,
9142
+ Tags: output.Tags != null ? deserializeAws_restJson1TagList(output.Tags, context) : undefined,
9230
9143
  };
9231
9144
  };
9232
9145
  var deserializeAws_restJson1CoreNetworkChange = function (output, context) {
9233
9146
  return {
9234
9147
  Action: __expectString(output.Action),
9235
9148
  Identifier: __expectString(output.Identifier),
9236
- NewValues: output.NewValues !== undefined && output.NewValues !== null
9237
- ? deserializeAws_restJson1CoreNetworkChangeValues(output.NewValues, context)
9238
- : undefined,
9239
- PreviousValues: output.PreviousValues !== undefined && output.PreviousValues !== null
9149
+ NewValues: output.NewValues != null ? deserializeAws_restJson1CoreNetworkChangeValues(output.NewValues, context) : undefined,
9150
+ PreviousValues: output.PreviousValues != null
9240
9151
  ? deserializeAws_restJson1CoreNetworkChangeValues(output.PreviousValues, context)
9241
9152
  : undefined,
9242
9153
  Type: __expectString(output.Type),
@@ -9258,14 +9169,14 @@ var deserializeAws_restJson1CoreNetworkChangeValues = function (output, context)
9258
9169
  Asn: __expectLong(output.Asn),
9259
9170
  Cidr: __expectString(output.Cidr),
9260
9171
  DestinationIdentifier: __expectString(output.DestinationIdentifier),
9261
- EdgeLocations: output.EdgeLocations !== undefined && output.EdgeLocations !== null
9172
+ EdgeLocations: output.EdgeLocations != null
9262
9173
  ? deserializeAws_restJson1ExternalRegionCodeList(output.EdgeLocations, context)
9263
9174
  : undefined,
9264
- InsideCidrBlocks: output.InsideCidrBlocks !== undefined && output.InsideCidrBlocks !== null
9175
+ InsideCidrBlocks: output.InsideCidrBlocks != null
9265
9176
  ? deserializeAws_restJson1ConstrainedStringList(output.InsideCidrBlocks, context)
9266
9177
  : undefined,
9267
9178
  SegmentName: __expectString(output.SegmentName),
9268
- SharedSegments: output.SharedSegments !== undefined && output.SharedSegments !== null
9179
+ SharedSegments: output.SharedSegments != null
9269
9180
  ? deserializeAws_restJson1ConstrainedStringList(output.SharedSegments, context)
9270
9181
  : undefined,
9271
9182
  };
@@ -9274,7 +9185,7 @@ var deserializeAws_restJson1CoreNetworkEdge = function (output, context) {
9274
9185
  return {
9275
9186
  Asn: __expectLong(output.Asn),
9276
9187
  EdgeLocation: __expectString(output.EdgeLocation),
9277
- InsideCidrBlocks: output.InsideCidrBlocks !== undefined && output.InsideCidrBlocks !== null
9188
+ InsideCidrBlocks: output.InsideCidrBlocks != null
9278
9189
  ? deserializeAws_restJson1ConstrainedStringList(output.InsideCidrBlocks, context)
9279
9190
  : undefined,
9280
9191
  };
@@ -9295,14 +9206,10 @@ var deserializeAws_restJson1CoreNetworkPolicy = function (output, context) {
9295
9206
  Alias: __expectString(output.Alias),
9296
9207
  ChangeSetState: __expectString(output.ChangeSetState),
9297
9208
  CoreNetworkId: __expectString(output.CoreNetworkId),
9298
- CreatedAt: output.CreatedAt !== undefined && output.CreatedAt !== null
9299
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedAt)))
9300
- : undefined,
9209
+ CreatedAt: output.CreatedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedAt))) : undefined,
9301
9210
  Description: __expectString(output.Description),
9302
- PolicyDocument: output.PolicyDocument !== undefined && output.PolicyDocument !== null
9303
- ? new __LazyJsonString(output.PolicyDocument)
9304
- : undefined,
9305
- PolicyErrors: output.PolicyErrors !== undefined && output.PolicyErrors !== null
9211
+ PolicyDocument: output.PolicyDocument != null ? new __LazyJsonString(output.PolicyDocument) : undefined,
9212
+ PolicyErrors: output.PolicyErrors != null
9306
9213
  ? deserializeAws_restJson1CoreNetworkPolicyErrorList(output.PolicyErrors, context)
9307
9214
  : undefined,
9308
9215
  PolicyVersionId: __expectInt32(output.PolicyVersionId),
@@ -9331,9 +9238,7 @@ var deserializeAws_restJson1CoreNetworkPolicyVersion = function (output, context
9331
9238
  Alias: __expectString(output.Alias),
9332
9239
  ChangeSetState: __expectString(output.ChangeSetState),
9333
9240
  CoreNetworkId: __expectString(output.CoreNetworkId),
9334
- CreatedAt: output.CreatedAt !== undefined && output.CreatedAt !== null
9335
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedAt)))
9336
- : undefined,
9241
+ CreatedAt: output.CreatedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedAt))) : undefined,
9337
9242
  Description: __expectString(output.Description),
9338
9243
  PolicyVersionId: __expectInt32(output.PolicyVersionId),
9339
9244
  };
@@ -9351,11 +9256,11 @@ var deserializeAws_restJson1CoreNetworkPolicyVersionList = function (output, con
9351
9256
  };
9352
9257
  var deserializeAws_restJson1CoreNetworkSegment = function (output, context) {
9353
9258
  return {
9354
- EdgeLocations: output.EdgeLocations !== undefined && output.EdgeLocations !== null
9259
+ EdgeLocations: output.EdgeLocations != null
9355
9260
  ? deserializeAws_restJson1ExternalRegionCodeList(output.EdgeLocations, context)
9356
9261
  : undefined,
9357
9262
  Name: __expectString(output.Name),
9358
- SharedSegments: output.SharedSegments !== undefined && output.SharedSegments !== null
9263
+ SharedSegments: output.SharedSegments != null
9359
9264
  ? deserializeAws_restJson1ConstrainedStringList(output.SharedSegments, context)
9360
9265
  : undefined,
9361
9266
  };
@@ -9386,9 +9291,7 @@ var deserializeAws_restJson1CoreNetworkSummary = function (output, context) {
9386
9291
  GlobalNetworkId: __expectString(output.GlobalNetworkId),
9387
9292
  OwnerAccountId: __expectString(output.OwnerAccountId),
9388
9293
  State: __expectString(output.State),
9389
- Tags: output.Tags !== undefined && output.Tags !== null
9390
- ? deserializeAws_restJson1TagList(output.Tags, context)
9391
- : undefined,
9294
+ Tags: output.Tags != null ? deserializeAws_restJson1TagList(output.Tags, context) : undefined,
9392
9295
  };
9393
9296
  };
9394
9297
  var deserializeAws_restJson1CoreNetworkSummaryList = function (output, context) {
@@ -9424,26 +9327,18 @@ var deserializeAws_restJson1CustomerGatewayAssociationList = function (output, c
9424
9327
  };
9425
9328
  var deserializeAws_restJson1Device = function (output, context) {
9426
9329
  return {
9427
- AWSLocation: output.AWSLocation !== undefined && output.AWSLocation !== null
9428
- ? deserializeAws_restJson1AWSLocation(output.AWSLocation, context)
9429
- : undefined,
9430
- CreatedAt: output.CreatedAt !== undefined && output.CreatedAt !== null
9431
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedAt)))
9432
- : undefined,
9330
+ AWSLocation: output.AWSLocation != null ? deserializeAws_restJson1AWSLocation(output.AWSLocation, context) : undefined,
9331
+ CreatedAt: output.CreatedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedAt))) : undefined,
9433
9332
  Description: __expectString(output.Description),
9434
9333
  DeviceArn: __expectString(output.DeviceArn),
9435
9334
  DeviceId: __expectString(output.DeviceId),
9436
9335
  GlobalNetworkId: __expectString(output.GlobalNetworkId),
9437
- Location: output.Location !== undefined && output.Location !== null
9438
- ? deserializeAws_restJson1Location(output.Location, context)
9439
- : undefined,
9336
+ Location: output.Location != null ? deserializeAws_restJson1Location(output.Location, context) : undefined,
9440
9337
  Model: __expectString(output.Model),
9441
9338
  SerialNumber: __expectString(output.SerialNumber),
9442
9339
  SiteId: __expectString(output.SiteId),
9443
9340
  State: __expectString(output.State),
9444
- Tags: output.Tags !== undefined && output.Tags !== null
9445
- ? deserializeAws_restJson1TagList(output.Tags, context)
9446
- : undefined,
9341
+ Tags: output.Tags != null ? deserializeAws_restJson1TagList(output.Tags, context) : undefined,
9447
9342
  Type: __expectString(output.Type),
9448
9343
  Vendor: __expectString(output.Vendor),
9449
9344
  };
@@ -9482,16 +9377,12 @@ var deserializeAws_restJson1ExternalRegionCodeList = function (output, context)
9482
9377
  };
9483
9378
  var deserializeAws_restJson1GlobalNetwork = function (output, context) {
9484
9379
  return {
9485
- CreatedAt: output.CreatedAt !== undefined && output.CreatedAt !== null
9486
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedAt)))
9487
- : undefined,
9380
+ CreatedAt: output.CreatedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedAt))) : undefined,
9488
9381
  Description: __expectString(output.Description),
9489
9382
  GlobalNetworkArn: __expectString(output.GlobalNetworkArn),
9490
9383
  GlobalNetworkId: __expectString(output.GlobalNetworkId),
9491
9384
  State: __expectString(output.State),
9492
- Tags: output.Tags !== undefined && output.Tags !== null
9493
- ? deserializeAws_restJson1TagList(output.Tags, context)
9494
- : undefined,
9385
+ Tags: output.Tags != null ? deserializeAws_restJson1TagList(output.Tags, context) : undefined,
9495
9386
  };
9496
9387
  };
9497
9388
  var deserializeAws_restJson1GlobalNetworkList = function (output, context) {
@@ -9507,12 +9398,8 @@ var deserializeAws_restJson1GlobalNetworkList = function (output, context) {
9507
9398
  };
9508
9399
  var deserializeAws_restJson1Link = function (output, context) {
9509
9400
  return {
9510
- Bandwidth: output.Bandwidth !== undefined && output.Bandwidth !== null
9511
- ? deserializeAws_restJson1Bandwidth(output.Bandwidth, context)
9512
- : undefined,
9513
- CreatedAt: output.CreatedAt !== undefined && output.CreatedAt !== null
9514
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedAt)))
9515
- : undefined,
9401
+ Bandwidth: output.Bandwidth != null ? deserializeAws_restJson1Bandwidth(output.Bandwidth, context) : undefined,
9402
+ CreatedAt: output.CreatedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedAt))) : undefined,
9516
9403
  Description: __expectString(output.Description),
9517
9404
  GlobalNetworkId: __expectString(output.GlobalNetworkId),
9518
9405
  LinkArn: __expectString(output.LinkArn),
@@ -9520,9 +9407,7 @@ var deserializeAws_restJson1Link = function (output, context) {
9520
9407
  Provider: __expectString(output.Provider),
9521
9408
  SiteId: __expectString(output.SiteId),
9522
9409
  State: __expectString(output.State),
9523
- Tags: output.Tags !== undefined && output.Tags !== null
9524
- ? deserializeAws_restJson1TagList(output.Tags, context)
9525
- : undefined,
9410
+ Tags: output.Tags != null ? deserializeAws_restJson1TagList(output.Tags, context) : undefined,
9526
9411
  Type: __expectString(output.Type),
9527
9412
  };
9528
9413
  };
@@ -9569,19 +9454,17 @@ var deserializeAws_restJson1NetworkResource = function (output, context) {
9569
9454
  AwsRegion: __expectString(output.AwsRegion),
9570
9455
  CoreNetworkId: __expectString(output.CoreNetworkId),
9571
9456
  Definition: __expectString(output.Definition),
9572
- DefinitionTimestamp: output.DefinitionTimestamp !== undefined && output.DefinitionTimestamp !== null
9457
+ DefinitionTimestamp: output.DefinitionTimestamp != null
9573
9458
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.DefinitionTimestamp)))
9574
9459
  : undefined,
9575
- Metadata: output.Metadata !== undefined && output.Metadata !== null
9460
+ Metadata: output.Metadata != null
9576
9461
  ? deserializeAws_restJson1NetworkResourceMetadataMap(output.Metadata, context)
9577
9462
  : undefined,
9578
9463
  RegisteredGatewayArn: __expectString(output.RegisteredGatewayArn),
9579
9464
  ResourceArn: __expectString(output.ResourceArn),
9580
9465
  ResourceId: __expectString(output.ResourceId),
9581
9466
  ResourceType: __expectString(output.ResourceType),
9582
- Tags: output.Tags !== undefined && output.Tags !== null
9583
- ? deserializeAws_restJson1TagList(output.Tags, context)
9584
- : undefined,
9467
+ Tags: output.Tags != null ? deserializeAws_restJson1TagList(output.Tags, context) : undefined,
9585
9468
  };
9586
9469
  };
9587
9470
  var deserializeAws_restJson1NetworkResourceCount = function (output, context) {
@@ -9635,7 +9518,7 @@ var deserializeAws_restJson1NetworkResourceSummary = function (output, context)
9635
9518
  var deserializeAws_restJson1NetworkRoute = function (output, context) {
9636
9519
  return {
9637
9520
  DestinationCidrBlock: __expectString(output.DestinationCidrBlock),
9638
- Destinations: output.Destinations !== undefined && output.Destinations !== null
9521
+ Destinations: output.Destinations != null
9639
9522
  ? deserializeAws_restJson1NetworkRouteDestinationList(output.Destinations, context)
9640
9523
  : undefined,
9641
9524
  PrefixListId: __expectString(output.PrefixListId),
@@ -9681,9 +9564,7 @@ var deserializeAws_restJson1NetworkTelemetry = function (output, context) {
9681
9564
  Address: __expectString(output.Address),
9682
9565
  AwsRegion: __expectString(output.AwsRegion),
9683
9566
  CoreNetworkId: __expectString(output.CoreNetworkId),
9684
- Health: output.Health !== undefined && output.Health !== null
9685
- ? deserializeAws_restJson1ConnectionHealth(output.Health, context)
9686
- : undefined,
9567
+ Health: output.Health != null ? deserializeAws_restJson1ConnectionHealth(output.Health, context) : undefined,
9687
9568
  RegisteredGatewayArn: __expectString(output.RegisteredGatewayArn),
9688
9569
  ResourceArn: __expectString(output.ResourceArn),
9689
9570
  ResourceId: __expectString(output.ResourceId),
@@ -9703,7 +9584,7 @@ var deserializeAws_restJson1NetworkTelemetryList = function (output, context) {
9703
9584
  };
9704
9585
  var deserializeAws_restJson1OrganizationStatus = function (output, context) {
9705
9586
  return {
9706
- AccountStatusList: output.AccountStatusList !== undefined && output.AccountStatusList !== null
9587
+ AccountStatusList: output.AccountStatusList != null
9707
9588
  ? deserializeAws_restJson1AccountStatusList(output.AccountStatusList, context)
9708
9589
  : undefined,
9709
9590
  OrganizationAwsServiceAccessStatus: __expectString(output.OrganizationAwsServiceAccessStatus),
@@ -9714,9 +9595,7 @@ var deserializeAws_restJson1OrganizationStatus = function (output, context) {
9714
9595
  var deserializeAws_restJson1PathComponent = function (output, context) {
9715
9596
  return {
9716
9597
  DestinationCidrBlock: __expectString(output.DestinationCidrBlock),
9717
- Resource: output.Resource !== undefined && output.Resource !== null
9718
- ? deserializeAws_restJson1NetworkResourceSummary(output.Resource, context)
9719
- : undefined,
9598
+ Resource: output.Resource != null ? deserializeAws_restJson1NetworkResourceSummary(output.Resource, context) : undefined,
9720
9599
  Sequence: __expectInt32(output.Sequence),
9721
9600
  };
9722
9601
  };
@@ -9735,9 +9614,7 @@ var deserializeAws_restJson1ProposedSegmentChange = function (output, context) {
9735
9614
  return {
9736
9615
  AttachmentPolicyRuleNumber: __expectInt32(output.AttachmentPolicyRuleNumber),
9737
9616
  SegmentName: __expectString(output.SegmentName),
9738
- Tags: output.Tags !== undefined && output.Tags !== null
9739
- ? deserializeAws_restJson1TagList(output.Tags, context)
9740
- : undefined,
9617
+ Tags: output.Tags != null ? deserializeAws_restJson1TagList(output.Tags, context) : undefined,
9741
9618
  };
9742
9619
  };
9743
9620
  var deserializeAws_restJson1ReasonContextMap = function (output, context) {
@@ -9769,23 +9646,17 @@ var deserializeAws_restJson1RelationshipList = function (output, context) {
9769
9646
  };
9770
9647
  var deserializeAws_restJson1RouteAnalysis = function (output, context) {
9771
9648
  return {
9772
- Destination: output.Destination !== undefined && output.Destination !== null
9649
+ Destination: output.Destination != null
9773
9650
  ? deserializeAws_restJson1RouteAnalysisEndpointOptions(output.Destination, context)
9774
9651
  : undefined,
9775
- ForwardPath: output.ForwardPath !== undefined && output.ForwardPath !== null
9776
- ? deserializeAws_restJson1RouteAnalysisPath(output.ForwardPath, context)
9777
- : undefined,
9652
+ ForwardPath: output.ForwardPath != null ? deserializeAws_restJson1RouteAnalysisPath(output.ForwardPath, context) : undefined,
9778
9653
  GlobalNetworkId: __expectString(output.GlobalNetworkId),
9779
9654
  IncludeReturnPath: __expectBoolean(output.IncludeReturnPath),
9780
9655
  OwnerAccountId: __expectString(output.OwnerAccountId),
9781
- ReturnPath: output.ReturnPath !== undefined && output.ReturnPath !== null
9782
- ? deserializeAws_restJson1RouteAnalysisPath(output.ReturnPath, context)
9783
- : undefined,
9656
+ ReturnPath: output.ReturnPath != null ? deserializeAws_restJson1RouteAnalysisPath(output.ReturnPath, context) : undefined,
9784
9657
  RouteAnalysisId: __expectString(output.RouteAnalysisId),
9785
- Source: output.Source !== undefined && output.Source !== null
9786
- ? deserializeAws_restJson1RouteAnalysisEndpointOptions(output.Source, context)
9787
- : undefined,
9788
- StartTimestamp: output.StartTimestamp !== undefined && output.StartTimestamp !== null
9658
+ Source: output.Source != null ? deserializeAws_restJson1RouteAnalysisEndpointOptions(output.Source, context) : undefined,
9659
+ StartTimestamp: output.StartTimestamp != null
9789
9660
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.StartTimestamp)))
9790
9661
  : undefined,
9791
9662
  Status: __expectString(output.Status),
@@ -9795,7 +9666,7 @@ var deserializeAws_restJson1RouteAnalysis = function (output, context) {
9795
9666
  var deserializeAws_restJson1RouteAnalysisCompletion = function (output, context) {
9796
9667
  return {
9797
9668
  ReasonCode: __expectString(output.ReasonCode),
9798
- ReasonContext: output.ReasonContext !== undefined && output.ReasonContext !== null
9669
+ ReasonContext: output.ReasonContext != null
9799
9670
  ? deserializeAws_restJson1ReasonContextMap(output.ReasonContext, context)
9800
9671
  : undefined,
9801
9672
  ResultCode: __expectString(output.ResultCode),
@@ -9810,30 +9681,22 @@ var deserializeAws_restJson1RouteAnalysisEndpointOptions = function (output, con
9810
9681
  };
9811
9682
  var deserializeAws_restJson1RouteAnalysisPath = function (output, context) {
9812
9683
  return {
9813
- CompletionStatus: output.CompletionStatus !== undefined && output.CompletionStatus !== null
9684
+ CompletionStatus: output.CompletionStatus != null
9814
9685
  ? deserializeAws_restJson1RouteAnalysisCompletion(output.CompletionStatus, context)
9815
9686
  : undefined,
9816
- Path: output.Path !== undefined && output.Path !== null
9817
- ? deserializeAws_restJson1PathComponentList(output.Path, context)
9818
- : undefined,
9687
+ Path: output.Path != null ? deserializeAws_restJson1PathComponentList(output.Path, context) : undefined,
9819
9688
  };
9820
9689
  };
9821
9690
  var deserializeAws_restJson1Site = function (output, context) {
9822
9691
  return {
9823
- CreatedAt: output.CreatedAt !== undefined && output.CreatedAt !== null
9824
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedAt)))
9825
- : undefined,
9692
+ CreatedAt: output.CreatedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedAt))) : undefined,
9826
9693
  Description: __expectString(output.Description),
9827
9694
  GlobalNetworkId: __expectString(output.GlobalNetworkId),
9828
- Location: output.Location !== undefined && output.Location !== null
9829
- ? deserializeAws_restJson1Location(output.Location, context)
9830
- : undefined,
9695
+ Location: output.Location != null ? deserializeAws_restJson1Location(output.Location, context) : undefined,
9831
9696
  SiteArn: __expectString(output.SiteArn),
9832
9697
  SiteId: __expectString(output.SiteId),
9833
9698
  State: __expectString(output.State),
9834
- Tags: output.Tags !== undefined && output.Tags !== null
9835
- ? deserializeAws_restJson1TagList(output.Tags, context)
9836
- : undefined,
9699
+ Tags: output.Tags != null ? deserializeAws_restJson1TagList(output.Tags, context) : undefined,
9837
9700
  };
9838
9701
  };
9839
9702
  var deserializeAws_restJson1SiteList = function (output, context) {
@@ -9849,9 +9712,7 @@ var deserializeAws_restJson1SiteList = function (output, context) {
9849
9712
  };
9850
9713
  var deserializeAws_restJson1SiteToSiteVpnAttachment = function (output, context) {
9851
9714
  return {
9852
- Attachment: output.Attachment !== undefined && output.Attachment !== null
9853
- ? deserializeAws_restJson1Attachment(output.Attachment, context)
9854
- : undefined,
9715
+ Attachment: output.Attachment != null ? deserializeAws_restJson1Attachment(output.Attachment, context) : undefined,
9855
9716
  VpnConnectionArn: __expectString(output.VpnConnectionArn),
9856
9717
  };
9857
9718
  };
@@ -9906,7 +9767,7 @@ var deserializeAws_restJson1TransitGatewayConnectPeerAssociationList = function
9906
9767
  var deserializeAws_restJson1TransitGatewayRegistration = function (output, context) {
9907
9768
  return {
9908
9769
  GlobalNetworkId: __expectString(output.GlobalNetworkId),
9909
- State: output.State !== undefined && output.State !== null
9770
+ State: output.State != null
9910
9771
  ? deserializeAws_restJson1TransitGatewayRegistrationStateReason(output.State, context)
9911
9772
  : undefined,
9912
9773
  TransitGatewayArn: __expectString(output.TransitGatewayArn),
@@ -9948,15 +9809,9 @@ var deserializeAws_restJson1ValidationExceptionFieldList = function (output, con
9948
9809
  };
9949
9810
  var deserializeAws_restJson1VpcAttachment = function (output, context) {
9950
9811
  return {
9951
- Attachment: output.Attachment !== undefined && output.Attachment !== null
9952
- ? deserializeAws_restJson1Attachment(output.Attachment, context)
9953
- : undefined,
9954
- Options: output.Options !== undefined && output.Options !== null
9955
- ? deserializeAws_restJson1VpcOptions(output.Options, context)
9956
- : undefined,
9957
- SubnetArns: output.SubnetArns !== undefined && output.SubnetArns !== null
9958
- ? deserializeAws_restJson1SubnetArnList(output.SubnetArns, context)
9959
- : undefined,
9812
+ Attachment: output.Attachment != null ? deserializeAws_restJson1Attachment(output.Attachment, context) : undefined,
9813
+ Options: output.Options != null ? deserializeAws_restJson1VpcOptions(output.Options, context) : undefined,
9814
+ SubnetArns: output.SubnetArns != null ? deserializeAws_restJson1SubnetArnList(output.SubnetArns, context) : undefined,
9960
9815
  };
9961
9816
  };
9962
9817
  var deserializeAws_restJson1VpcOptions = function (output, context) {