@aws-sdk/client-networkmanager 3.121.0 → 3.130.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.
Files changed (65) hide show
  1. package/CHANGELOG.md +30 -0
  2. package/dist-cjs/NetworkManager.js +105 -0
  3. package/dist-cjs/commands/CreateTransitGatewayPeeringCommand.js +36 -0
  4. package/dist-cjs/commands/CreateTransitGatewayRouteTableAttachmentCommand.js +36 -0
  5. package/dist-cjs/commands/DeletePeeringCommand.js +36 -0
  6. package/dist-cjs/commands/GetCoreNetworkChangeEventsCommand.js +36 -0
  7. package/dist-cjs/commands/GetTransitGatewayPeeringCommand.js +36 -0
  8. package/dist-cjs/commands/GetTransitGatewayRouteTableAttachmentCommand.js +36 -0
  9. package/dist-cjs/commands/ListPeeringsCommand.js +36 -0
  10. package/dist-cjs/commands/index.js +7 -0
  11. package/dist-cjs/models/models_0.js +143 -5
  12. package/dist-cjs/pagination/GetCoreNetworkChangeEventsPaginator.js +36 -0
  13. package/dist-cjs/pagination/ListPeeringsPaginator.js +36 -0
  14. package/dist-cjs/pagination/index.js +3 -1
  15. package/dist-cjs/protocols/Aws_restJson1.js +849 -361
  16. package/dist-es/NetworkManager.js +105 -0
  17. package/dist-es/commands/CreateTransitGatewayPeeringCommand.js +39 -0
  18. package/dist-es/commands/CreateTransitGatewayRouteTableAttachmentCommand.js +39 -0
  19. package/dist-es/commands/DeletePeeringCommand.js +39 -0
  20. package/dist-es/commands/GetCoreNetworkChangeEventsCommand.js +39 -0
  21. package/dist-es/commands/GetTransitGatewayPeeringCommand.js +39 -0
  22. package/dist-es/commands/GetTransitGatewayRouteTableAttachmentCommand.js +39 -0
  23. package/dist-es/commands/ListPeeringsCommand.js +39 -0
  24. package/dist-es/commands/index.js +7 -0
  25. package/dist-es/models/models_0.js +99 -0
  26. package/dist-es/pagination/GetCoreNetworkChangeEventsPaginator.js +75 -0
  27. package/dist-es/pagination/ListPeeringsPaginator.js +75 -0
  28. package/dist-es/pagination/index.js +3 -1
  29. package/dist-es/protocols/Aws_restJson1.js +1029 -363
  30. package/dist-types/NetworkManager.d.ts +56 -1
  31. package/dist-types/NetworkManagerClient.d.ts +9 -2
  32. package/dist-types/commands/CreateTransitGatewayPeeringCommand.d.ts +35 -0
  33. package/dist-types/commands/CreateTransitGatewayRouteTableAttachmentCommand.d.ts +35 -0
  34. package/dist-types/commands/DeletePeeringCommand.d.ts +35 -0
  35. package/dist-types/commands/GetCoreNetworkChangeEventsCommand.d.ts +35 -0
  36. package/dist-types/commands/GetCoreNetworkPolicyCommand.d.ts +1 -1
  37. package/dist-types/commands/GetTransitGatewayPeeringCommand.d.ts +35 -0
  38. package/dist-types/commands/GetTransitGatewayRouteTableAttachmentCommand.d.ts +35 -0
  39. package/dist-types/commands/ListOrganizationServiceAccessStatusCommand.d.ts +17 -0
  40. package/dist-types/commands/ListPeeringsCommand.d.ts +35 -0
  41. package/dist-types/commands/StartOrganizationServiceAccessUpdateCommand.d.ts +17 -0
  42. package/dist-types/commands/index.d.ts +7 -0
  43. package/dist-types/models/models_0.d.ts +460 -7
  44. package/dist-types/pagination/GetCoreNetworkChangeEventsPaginator.d.ts +4 -0
  45. package/dist-types/pagination/ListPeeringsPaginator.d.ts +4 -0
  46. package/dist-types/pagination/index.d.ts +3 -1
  47. package/dist-types/protocols/Aws_restJson1.d.ts +21 -0
  48. package/dist-types/ts3.4/NetworkManager.d.ts +37 -0
  49. package/dist-types/ts3.4/NetworkManagerClient.d.ts +9 -2
  50. package/dist-types/ts3.4/commands/CreateTransitGatewayPeeringCommand.d.ts +17 -0
  51. package/dist-types/ts3.4/commands/CreateTransitGatewayRouteTableAttachmentCommand.d.ts +17 -0
  52. package/dist-types/ts3.4/commands/DeletePeeringCommand.d.ts +17 -0
  53. package/dist-types/ts3.4/commands/GetCoreNetworkChangeEventsCommand.d.ts +17 -0
  54. package/dist-types/ts3.4/commands/GetTransitGatewayPeeringCommand.d.ts +17 -0
  55. package/dist-types/ts3.4/commands/GetTransitGatewayRouteTableAttachmentCommand.d.ts +17 -0
  56. package/dist-types/ts3.4/commands/ListOrganizationServiceAccessStatusCommand.d.ts +1 -0
  57. package/dist-types/ts3.4/commands/ListPeeringsCommand.d.ts +17 -0
  58. package/dist-types/ts3.4/commands/StartOrganizationServiceAccessUpdateCommand.d.ts +1 -0
  59. package/dist-types/ts3.4/commands/index.d.ts +7 -0
  60. package/dist-types/ts3.4/models/models_0.d.ts +266 -1
  61. package/dist-types/ts3.4/pagination/GetCoreNetworkChangeEventsPaginator.d.ts +4 -0
  62. package/dist-types/ts3.4/pagination/ListPeeringsPaginator.d.ts +4 -0
  63. package/dist-types/ts3.4/pagination/index.d.ts +3 -1
  64. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +21 -0
  65. package/package.json +26 -26
@@ -1,9 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.serializeAws_restJson1GetRouteAnalysisCommand = exports.serializeAws_restJson1GetResourcePolicyCommand = exports.serializeAws_restJson1GetNetworkTelemetryCommand = exports.serializeAws_restJson1GetNetworkRoutesCommand = exports.serializeAws_restJson1GetNetworkResourcesCommand = exports.serializeAws_restJson1GetNetworkResourceRelationshipsCommand = exports.serializeAws_restJson1GetNetworkResourceCountsCommand = exports.serializeAws_restJson1GetLinksCommand = exports.serializeAws_restJson1GetLinkAssociationsCommand = exports.serializeAws_restJson1GetDevicesCommand = exports.serializeAws_restJson1GetCustomerGatewayAssociationsCommand = exports.serializeAws_restJson1GetCoreNetworkPolicyCommand = exports.serializeAws_restJson1GetCoreNetworkChangeSetCommand = exports.serializeAws_restJson1GetCoreNetworkCommand = exports.serializeAws_restJson1GetConnectPeerAssociationsCommand = exports.serializeAws_restJson1GetConnectPeerCommand = exports.serializeAws_restJson1GetConnectionsCommand = exports.serializeAws_restJson1GetConnectAttachmentCommand = exports.serializeAws_restJson1ExecuteCoreNetworkChangeSetCommand = exports.serializeAws_restJson1DisassociateTransitGatewayConnectPeerCommand = exports.serializeAws_restJson1DisassociateLinkCommand = exports.serializeAws_restJson1DisassociateCustomerGatewayCommand = exports.serializeAws_restJson1DisassociateConnectPeerCommand = exports.serializeAws_restJson1DescribeGlobalNetworksCommand = exports.serializeAws_restJson1DeregisterTransitGatewayCommand = exports.serializeAws_restJson1DeleteSiteCommand = exports.serializeAws_restJson1DeleteResourcePolicyCommand = exports.serializeAws_restJson1DeleteLinkCommand = exports.serializeAws_restJson1DeleteGlobalNetworkCommand = exports.serializeAws_restJson1DeleteDeviceCommand = exports.serializeAws_restJson1DeleteCoreNetworkPolicyVersionCommand = exports.serializeAws_restJson1DeleteCoreNetworkCommand = exports.serializeAws_restJson1DeleteConnectPeerCommand = exports.serializeAws_restJson1DeleteConnectionCommand = exports.serializeAws_restJson1DeleteAttachmentCommand = exports.serializeAws_restJson1CreateVpcAttachmentCommand = exports.serializeAws_restJson1CreateSiteToSiteVpnAttachmentCommand = exports.serializeAws_restJson1CreateSiteCommand = exports.serializeAws_restJson1CreateLinkCommand = exports.serializeAws_restJson1CreateGlobalNetworkCommand = exports.serializeAws_restJson1CreateDeviceCommand = exports.serializeAws_restJson1CreateCoreNetworkCommand = exports.serializeAws_restJson1CreateConnectPeerCommand = exports.serializeAws_restJson1CreateConnectionCommand = exports.serializeAws_restJson1CreateConnectAttachmentCommand = exports.serializeAws_restJson1AssociateTransitGatewayConnectPeerCommand = exports.serializeAws_restJson1AssociateLinkCommand = exports.serializeAws_restJson1AssociateCustomerGatewayCommand = exports.serializeAws_restJson1AssociateConnectPeerCommand = exports.serializeAws_restJson1AcceptAttachmentCommand = void 0;
4
- exports.deserializeAws_restJson1DeleteGlobalNetworkCommand = exports.deserializeAws_restJson1DeleteDeviceCommand = exports.deserializeAws_restJson1DeleteCoreNetworkPolicyVersionCommand = exports.deserializeAws_restJson1DeleteCoreNetworkCommand = exports.deserializeAws_restJson1DeleteConnectPeerCommand = exports.deserializeAws_restJson1DeleteConnectionCommand = exports.deserializeAws_restJson1DeleteAttachmentCommand = exports.deserializeAws_restJson1CreateVpcAttachmentCommand = exports.deserializeAws_restJson1CreateSiteToSiteVpnAttachmentCommand = exports.deserializeAws_restJson1CreateSiteCommand = exports.deserializeAws_restJson1CreateLinkCommand = exports.deserializeAws_restJson1CreateGlobalNetworkCommand = exports.deserializeAws_restJson1CreateDeviceCommand = exports.deserializeAws_restJson1CreateCoreNetworkCommand = exports.deserializeAws_restJson1CreateConnectPeerCommand = exports.deserializeAws_restJson1CreateConnectionCommand = exports.deserializeAws_restJson1CreateConnectAttachmentCommand = exports.deserializeAws_restJson1AssociateTransitGatewayConnectPeerCommand = exports.deserializeAws_restJson1AssociateLinkCommand = exports.deserializeAws_restJson1AssociateCustomerGatewayCommand = exports.deserializeAws_restJson1AssociateConnectPeerCommand = exports.deserializeAws_restJson1AcceptAttachmentCommand = exports.serializeAws_restJson1UpdateVpcAttachmentCommand = exports.serializeAws_restJson1UpdateSiteCommand = exports.serializeAws_restJson1UpdateNetworkResourceMetadataCommand = exports.serializeAws_restJson1UpdateLinkCommand = exports.serializeAws_restJson1UpdateGlobalNetworkCommand = exports.serializeAws_restJson1UpdateDeviceCommand = exports.serializeAws_restJson1UpdateCoreNetworkCommand = exports.serializeAws_restJson1UpdateConnectionCommand = exports.serializeAws_restJson1UntagResourceCommand = exports.serializeAws_restJson1TagResourceCommand = exports.serializeAws_restJson1StartRouteAnalysisCommand = exports.serializeAws_restJson1StartOrganizationServiceAccessUpdateCommand = exports.serializeAws_restJson1RestoreCoreNetworkPolicyVersionCommand = exports.serializeAws_restJson1RejectAttachmentCommand = exports.serializeAws_restJson1RegisterTransitGatewayCommand = exports.serializeAws_restJson1PutResourcePolicyCommand = exports.serializeAws_restJson1PutCoreNetworkPolicyCommand = exports.serializeAws_restJson1ListTagsForResourceCommand = exports.serializeAws_restJson1ListOrganizationServiceAccessStatusCommand = exports.serializeAws_restJson1ListCoreNetworksCommand = exports.serializeAws_restJson1ListCoreNetworkPolicyVersionsCommand = exports.serializeAws_restJson1ListConnectPeersCommand = exports.serializeAws_restJson1ListAttachmentsCommand = exports.serializeAws_restJson1GetVpcAttachmentCommand = exports.serializeAws_restJson1GetTransitGatewayRegistrationsCommand = exports.serializeAws_restJson1GetTransitGatewayConnectPeerAssociationsCommand = exports.serializeAws_restJson1GetSiteToSiteVpnAttachmentCommand = exports.serializeAws_restJson1GetSitesCommand = void 0;
5
- exports.deserializeAws_restJson1UpdateCoreNetworkCommand = exports.deserializeAws_restJson1UpdateConnectionCommand = exports.deserializeAws_restJson1UntagResourceCommand = exports.deserializeAws_restJson1TagResourceCommand = exports.deserializeAws_restJson1StartRouteAnalysisCommand = exports.deserializeAws_restJson1StartOrganizationServiceAccessUpdateCommand = exports.deserializeAws_restJson1RestoreCoreNetworkPolicyVersionCommand = exports.deserializeAws_restJson1RejectAttachmentCommand = exports.deserializeAws_restJson1RegisterTransitGatewayCommand = exports.deserializeAws_restJson1PutResourcePolicyCommand = exports.deserializeAws_restJson1PutCoreNetworkPolicyCommand = exports.deserializeAws_restJson1ListTagsForResourceCommand = exports.deserializeAws_restJson1ListOrganizationServiceAccessStatusCommand = exports.deserializeAws_restJson1ListCoreNetworksCommand = exports.deserializeAws_restJson1ListCoreNetworkPolicyVersionsCommand = exports.deserializeAws_restJson1ListConnectPeersCommand = exports.deserializeAws_restJson1ListAttachmentsCommand = exports.deserializeAws_restJson1GetVpcAttachmentCommand = exports.deserializeAws_restJson1GetTransitGatewayRegistrationsCommand = exports.deserializeAws_restJson1GetTransitGatewayConnectPeerAssociationsCommand = exports.deserializeAws_restJson1GetSiteToSiteVpnAttachmentCommand = exports.deserializeAws_restJson1GetSitesCommand = exports.deserializeAws_restJson1GetRouteAnalysisCommand = exports.deserializeAws_restJson1GetResourcePolicyCommand = exports.deserializeAws_restJson1GetNetworkTelemetryCommand = exports.deserializeAws_restJson1GetNetworkRoutesCommand = exports.deserializeAws_restJson1GetNetworkResourcesCommand = exports.deserializeAws_restJson1GetNetworkResourceRelationshipsCommand = exports.deserializeAws_restJson1GetNetworkResourceCountsCommand = exports.deserializeAws_restJson1GetLinksCommand = exports.deserializeAws_restJson1GetLinkAssociationsCommand = exports.deserializeAws_restJson1GetDevicesCommand = exports.deserializeAws_restJson1GetCustomerGatewayAssociationsCommand = exports.deserializeAws_restJson1GetCoreNetworkPolicyCommand = exports.deserializeAws_restJson1GetCoreNetworkChangeSetCommand = exports.deserializeAws_restJson1GetCoreNetworkCommand = exports.deserializeAws_restJson1GetConnectPeerAssociationsCommand = exports.deserializeAws_restJson1GetConnectPeerCommand = exports.deserializeAws_restJson1GetConnectionsCommand = exports.deserializeAws_restJson1GetConnectAttachmentCommand = exports.deserializeAws_restJson1ExecuteCoreNetworkChangeSetCommand = exports.deserializeAws_restJson1DisassociateTransitGatewayConnectPeerCommand = exports.deserializeAws_restJson1DisassociateLinkCommand = exports.deserializeAws_restJson1DisassociateCustomerGatewayCommand = exports.deserializeAws_restJson1DisassociateConnectPeerCommand = exports.deserializeAws_restJson1DescribeGlobalNetworksCommand = exports.deserializeAws_restJson1DeregisterTransitGatewayCommand = exports.deserializeAws_restJson1DeleteSiteCommand = exports.deserializeAws_restJson1DeleteResourcePolicyCommand = exports.deserializeAws_restJson1DeleteLinkCommand = void 0;
6
- exports.deserializeAws_restJson1UpdateVpcAttachmentCommand = exports.deserializeAws_restJson1UpdateSiteCommand = exports.deserializeAws_restJson1UpdateNetworkResourceMetadataCommand = exports.deserializeAws_restJson1UpdateLinkCommand = exports.deserializeAws_restJson1UpdateGlobalNetworkCommand = exports.deserializeAws_restJson1UpdateDeviceCommand = void 0;
3
+ exports.serializeAws_restJson1GetNetworkResourcesCommand = exports.serializeAws_restJson1GetNetworkResourceRelationshipsCommand = exports.serializeAws_restJson1GetNetworkResourceCountsCommand = exports.serializeAws_restJson1GetLinksCommand = exports.serializeAws_restJson1GetLinkAssociationsCommand = exports.serializeAws_restJson1GetDevicesCommand = exports.serializeAws_restJson1GetCustomerGatewayAssociationsCommand = exports.serializeAws_restJson1GetCoreNetworkPolicyCommand = exports.serializeAws_restJson1GetCoreNetworkChangeSetCommand = exports.serializeAws_restJson1GetCoreNetworkChangeEventsCommand = exports.serializeAws_restJson1GetCoreNetworkCommand = exports.serializeAws_restJson1GetConnectPeerAssociationsCommand = exports.serializeAws_restJson1GetConnectPeerCommand = exports.serializeAws_restJson1GetConnectionsCommand = exports.serializeAws_restJson1GetConnectAttachmentCommand = exports.serializeAws_restJson1ExecuteCoreNetworkChangeSetCommand = exports.serializeAws_restJson1DisassociateTransitGatewayConnectPeerCommand = exports.serializeAws_restJson1DisassociateLinkCommand = exports.serializeAws_restJson1DisassociateCustomerGatewayCommand = exports.serializeAws_restJson1DisassociateConnectPeerCommand = exports.serializeAws_restJson1DescribeGlobalNetworksCommand = exports.serializeAws_restJson1DeregisterTransitGatewayCommand = exports.serializeAws_restJson1DeleteSiteCommand = exports.serializeAws_restJson1DeleteResourcePolicyCommand = exports.serializeAws_restJson1DeletePeeringCommand = exports.serializeAws_restJson1DeleteLinkCommand = exports.serializeAws_restJson1DeleteGlobalNetworkCommand = exports.serializeAws_restJson1DeleteDeviceCommand = exports.serializeAws_restJson1DeleteCoreNetworkPolicyVersionCommand = exports.serializeAws_restJson1DeleteCoreNetworkCommand = exports.serializeAws_restJson1DeleteConnectPeerCommand = exports.serializeAws_restJson1DeleteConnectionCommand = exports.serializeAws_restJson1DeleteAttachmentCommand = exports.serializeAws_restJson1CreateVpcAttachmentCommand = exports.serializeAws_restJson1CreateTransitGatewayRouteTableAttachmentCommand = exports.serializeAws_restJson1CreateTransitGatewayPeeringCommand = exports.serializeAws_restJson1CreateSiteToSiteVpnAttachmentCommand = exports.serializeAws_restJson1CreateSiteCommand = exports.serializeAws_restJson1CreateLinkCommand = exports.serializeAws_restJson1CreateGlobalNetworkCommand = exports.serializeAws_restJson1CreateDeviceCommand = exports.serializeAws_restJson1CreateCoreNetworkCommand = exports.serializeAws_restJson1CreateConnectPeerCommand = exports.serializeAws_restJson1CreateConnectionCommand = exports.serializeAws_restJson1CreateConnectAttachmentCommand = exports.serializeAws_restJson1AssociateTransitGatewayConnectPeerCommand = exports.serializeAws_restJson1AssociateLinkCommand = exports.serializeAws_restJson1AssociateCustomerGatewayCommand = exports.serializeAws_restJson1AssociateConnectPeerCommand = exports.serializeAws_restJson1AcceptAttachmentCommand = void 0;
4
+ exports.deserializeAws_restJson1CreateTransitGatewayPeeringCommand = exports.deserializeAws_restJson1CreateSiteToSiteVpnAttachmentCommand = exports.deserializeAws_restJson1CreateSiteCommand = exports.deserializeAws_restJson1CreateLinkCommand = exports.deserializeAws_restJson1CreateGlobalNetworkCommand = exports.deserializeAws_restJson1CreateDeviceCommand = exports.deserializeAws_restJson1CreateCoreNetworkCommand = exports.deserializeAws_restJson1CreateConnectPeerCommand = exports.deserializeAws_restJson1CreateConnectionCommand = exports.deserializeAws_restJson1CreateConnectAttachmentCommand = exports.deserializeAws_restJson1AssociateTransitGatewayConnectPeerCommand = exports.deserializeAws_restJson1AssociateLinkCommand = exports.deserializeAws_restJson1AssociateCustomerGatewayCommand = exports.deserializeAws_restJson1AssociateConnectPeerCommand = exports.deserializeAws_restJson1AcceptAttachmentCommand = exports.serializeAws_restJson1UpdateVpcAttachmentCommand = exports.serializeAws_restJson1UpdateSiteCommand = exports.serializeAws_restJson1UpdateNetworkResourceMetadataCommand = exports.serializeAws_restJson1UpdateLinkCommand = exports.serializeAws_restJson1UpdateGlobalNetworkCommand = exports.serializeAws_restJson1UpdateDeviceCommand = exports.serializeAws_restJson1UpdateCoreNetworkCommand = exports.serializeAws_restJson1UpdateConnectionCommand = exports.serializeAws_restJson1UntagResourceCommand = exports.serializeAws_restJson1TagResourceCommand = exports.serializeAws_restJson1StartRouteAnalysisCommand = exports.serializeAws_restJson1StartOrganizationServiceAccessUpdateCommand = exports.serializeAws_restJson1RestoreCoreNetworkPolicyVersionCommand = exports.serializeAws_restJson1RejectAttachmentCommand = exports.serializeAws_restJson1RegisterTransitGatewayCommand = exports.serializeAws_restJson1PutResourcePolicyCommand = exports.serializeAws_restJson1PutCoreNetworkPolicyCommand = exports.serializeAws_restJson1ListTagsForResourceCommand = exports.serializeAws_restJson1ListPeeringsCommand = exports.serializeAws_restJson1ListOrganizationServiceAccessStatusCommand = exports.serializeAws_restJson1ListCoreNetworksCommand = exports.serializeAws_restJson1ListCoreNetworkPolicyVersionsCommand = exports.serializeAws_restJson1ListConnectPeersCommand = exports.serializeAws_restJson1ListAttachmentsCommand = exports.serializeAws_restJson1GetVpcAttachmentCommand = exports.serializeAws_restJson1GetTransitGatewayRouteTableAttachmentCommand = exports.serializeAws_restJson1GetTransitGatewayRegistrationsCommand = exports.serializeAws_restJson1GetTransitGatewayPeeringCommand = exports.serializeAws_restJson1GetTransitGatewayConnectPeerAssociationsCommand = exports.serializeAws_restJson1GetSiteToSiteVpnAttachmentCommand = exports.serializeAws_restJson1GetSitesCommand = exports.serializeAws_restJson1GetRouteAnalysisCommand = exports.serializeAws_restJson1GetResourcePolicyCommand = exports.serializeAws_restJson1GetNetworkTelemetryCommand = exports.serializeAws_restJson1GetNetworkRoutesCommand = void 0;
5
+ exports.deserializeAws_restJson1ListCoreNetworksCommand = exports.deserializeAws_restJson1ListCoreNetworkPolicyVersionsCommand = exports.deserializeAws_restJson1ListConnectPeersCommand = exports.deserializeAws_restJson1ListAttachmentsCommand = exports.deserializeAws_restJson1GetVpcAttachmentCommand = exports.deserializeAws_restJson1GetTransitGatewayRouteTableAttachmentCommand = exports.deserializeAws_restJson1GetTransitGatewayRegistrationsCommand = exports.deserializeAws_restJson1GetTransitGatewayPeeringCommand = exports.deserializeAws_restJson1GetTransitGatewayConnectPeerAssociationsCommand = exports.deserializeAws_restJson1GetSiteToSiteVpnAttachmentCommand = exports.deserializeAws_restJson1GetSitesCommand = exports.deserializeAws_restJson1GetRouteAnalysisCommand = exports.deserializeAws_restJson1GetResourcePolicyCommand = exports.deserializeAws_restJson1GetNetworkTelemetryCommand = exports.deserializeAws_restJson1GetNetworkRoutesCommand = exports.deserializeAws_restJson1GetNetworkResourcesCommand = exports.deserializeAws_restJson1GetNetworkResourceRelationshipsCommand = exports.deserializeAws_restJson1GetNetworkResourceCountsCommand = exports.deserializeAws_restJson1GetLinksCommand = exports.deserializeAws_restJson1GetLinkAssociationsCommand = exports.deserializeAws_restJson1GetDevicesCommand = exports.deserializeAws_restJson1GetCustomerGatewayAssociationsCommand = exports.deserializeAws_restJson1GetCoreNetworkPolicyCommand = exports.deserializeAws_restJson1GetCoreNetworkChangeSetCommand = exports.deserializeAws_restJson1GetCoreNetworkChangeEventsCommand = exports.deserializeAws_restJson1GetCoreNetworkCommand = exports.deserializeAws_restJson1GetConnectPeerAssociationsCommand = exports.deserializeAws_restJson1GetConnectPeerCommand = exports.deserializeAws_restJson1GetConnectionsCommand = exports.deserializeAws_restJson1GetConnectAttachmentCommand = exports.deserializeAws_restJson1ExecuteCoreNetworkChangeSetCommand = exports.deserializeAws_restJson1DisassociateTransitGatewayConnectPeerCommand = exports.deserializeAws_restJson1DisassociateLinkCommand = exports.deserializeAws_restJson1DisassociateCustomerGatewayCommand = exports.deserializeAws_restJson1DisassociateConnectPeerCommand = exports.deserializeAws_restJson1DescribeGlobalNetworksCommand = exports.deserializeAws_restJson1DeregisterTransitGatewayCommand = exports.deserializeAws_restJson1DeleteSiteCommand = exports.deserializeAws_restJson1DeleteResourcePolicyCommand = exports.deserializeAws_restJson1DeletePeeringCommand = exports.deserializeAws_restJson1DeleteLinkCommand = exports.deserializeAws_restJson1DeleteGlobalNetworkCommand = exports.deserializeAws_restJson1DeleteDeviceCommand = exports.deserializeAws_restJson1DeleteCoreNetworkPolicyVersionCommand = exports.deserializeAws_restJson1DeleteCoreNetworkCommand = exports.deserializeAws_restJson1DeleteConnectPeerCommand = exports.deserializeAws_restJson1DeleteConnectionCommand = exports.deserializeAws_restJson1DeleteAttachmentCommand = exports.deserializeAws_restJson1CreateVpcAttachmentCommand = exports.deserializeAws_restJson1CreateTransitGatewayRouteTableAttachmentCommand = void 0;
6
+ exports.deserializeAws_restJson1UpdateVpcAttachmentCommand = exports.deserializeAws_restJson1UpdateSiteCommand = exports.deserializeAws_restJson1UpdateNetworkResourceMetadataCommand = exports.deserializeAws_restJson1UpdateLinkCommand = exports.deserializeAws_restJson1UpdateGlobalNetworkCommand = exports.deserializeAws_restJson1UpdateDeviceCommand = exports.deserializeAws_restJson1UpdateCoreNetworkCommand = exports.deserializeAws_restJson1UpdateConnectionCommand = exports.deserializeAws_restJson1UntagResourceCommand = exports.deserializeAws_restJson1TagResourceCommand = exports.deserializeAws_restJson1StartRouteAnalysisCommand = exports.deserializeAws_restJson1StartOrganizationServiceAccessUpdateCommand = exports.deserializeAws_restJson1RestoreCoreNetworkPolicyVersionCommand = exports.deserializeAws_restJson1RejectAttachmentCommand = exports.deserializeAws_restJson1RegisterTransitGatewayCommand = exports.deserializeAws_restJson1PutResourcePolicyCommand = exports.deserializeAws_restJson1PutCoreNetworkPolicyCommand = exports.deserializeAws_restJson1ListTagsForResourceCommand = exports.deserializeAws_restJson1ListPeeringsCommand = exports.deserializeAws_restJson1ListOrganizationServiceAccessStatusCommand = void 0;
7
7
  const protocol_http_1 = require("@aws-sdk/protocol-http");
8
8
  const smithy_client_1 = require("@aws-sdk/smithy-client");
9
9
  const uuid_1 = require("uuid");
@@ -54,9 +54,9 @@ const serializeAws_restJson1AssociateConnectPeerCommand = async (input, context)
54
54
  }
55
55
  let body;
56
56
  body = JSON.stringify({
57
- ...(input.ConnectPeerId !== undefined && input.ConnectPeerId !== null && { ConnectPeerId: input.ConnectPeerId }),
58
- ...(input.DeviceId !== undefined && input.DeviceId !== null && { DeviceId: input.DeviceId }),
59
- ...(input.LinkId !== undefined && input.LinkId !== null && { LinkId: 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 !== undefined &&
92
- input.CustomerGatewayArn !== null && { CustomerGatewayArn: input.CustomerGatewayArn }),
93
- ...(input.DeviceId !== undefined && input.DeviceId !== null && { DeviceId: input.DeviceId }),
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 !== undefined && input.DeviceId !== null && { DeviceId: input.DeviceId }),
127
- ...(input.LinkId !== undefined && input.LinkId !== null && { LinkId: 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 !== undefined && input.DeviceId !== null && { DeviceId: input.DeviceId }),
160
- ...(input.LinkId !== undefined && input.LinkId !== null && { LinkId: input.LinkId }),
161
- ...(input.TransitGatewayConnectPeerArn !== undefined &&
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 !== undefined && input.CoreNetworkId !== null && { CoreNetworkId: input.CoreNetworkId }),
188
- ...(input.EdgeLocation !== undefined && input.EdgeLocation !== null && { EdgeLocation: input.EdgeLocation }),
189
- ...(input.Options !== undefined &&
190
- input.Options !== null && { Options: serializeAws_restJson1ConnectAttachmentOptions(input.Options, context) }),
191
- ...(input.Tags !== undefined &&
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 !== undefined &&
227
- input.ConnectedDeviceId !== null && { ConnectedDeviceId: input.ConnectedDeviceId }),
228
- ...(input.ConnectedLinkId !== undefined &&
229
- input.ConnectedLinkId !== null && { ConnectedLinkId: input.ConnectedLinkId }),
230
- ...(input.Description !== undefined && input.Description !== null && { Description: input.Description }),
231
- ...(input.DeviceId !== undefined && input.DeviceId !== null && { DeviceId: input.DeviceId }),
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 !== undefined &&
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 !== undefined &&
260
- input.ConnectAttachmentId !== null && { ConnectAttachmentId: input.ConnectAttachmentId }),
261
- ...(input.CoreNetworkAddress !== undefined &&
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 !== undefined && input.PeerAddress !== null && { PeerAddress: input.PeerAddress }),
268
- ...(input.Tags !== undefined &&
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 !== undefined && input.Description !== null && { Description: input.Description }),
293
- ...(input.GlobalNetworkId !== undefined &&
294
- input.GlobalNetworkId !== null && { GlobalNetworkId: input.GlobalNetworkId }),
295
- ...(input.PolicyDocument !== undefined &&
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 !== undefined &&
331
- input.AWSLocation !== null && { AWSLocation: serializeAws_restJson1AWSLocation(input.AWSLocation, context) }),
332
- ...(input.Description !== undefined && input.Description !== null && { Description: input.Description }),
333
- ...(input.Location !== undefined &&
334
- input.Location !== null && { Location: serializeAws_restJson1Location(input.Location, context) }),
335
- ...(input.Model !== undefined && input.Model !== null && { Model: input.Model }),
336
- ...(input.SerialNumber !== undefined && input.SerialNumber !== null && { SerialNumber: input.SerialNumber }),
337
- ...(input.SiteId !== undefined && input.SiteId !== null && { SiteId: input.SiteId }),
338
- ...(input.Tags !== undefined &&
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 !== undefined && input.Description !== null && { Description: input.Description }),
363
- ...(input.Tags !== undefined &&
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 !== undefined &&
396
- input.Bandwidth !== null && { Bandwidth: serializeAws_restJson1Bandwidth(input.Bandwidth, context) }),
397
- ...(input.Description !== undefined && input.Description !== null && { Description: input.Description }),
398
- ...(input.Provider !== undefined && input.Provider !== null && { Provider: input.Provider }),
399
- ...(input.SiteId !== undefined && input.SiteId !== null && { SiteId: input.SiteId }),
400
- ...(input.Tags !== undefined &&
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 !== undefined && input.Description !== null && { Description: input.Description }),
434
- ...(input.Location !== undefined &&
435
- input.Location !== null && { Location: serializeAws_restJson1Location(input.Location, context) }),
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 !== undefined && input.CoreNetworkId !== null && { CoreNetworkId: input.CoreNetworkId }),
461
- ...(input.Tags !== undefined &&
462
- input.Tags !== null && { Tags: serializeAws_restJson1TagList(input.Tags, context) }),
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,
@@ -474,6 +448,58 @@ const serializeAws_restJson1CreateSiteToSiteVpnAttachmentCommand = async (input,
474
448
  });
475
449
  };
476
450
  exports.serializeAws_restJson1CreateSiteToSiteVpnAttachmentCommand = serializeAws_restJson1CreateSiteToSiteVpnAttachmentCommand;
451
+ const serializeAws_restJson1CreateTransitGatewayPeeringCommand = async (input, context) => {
452
+ var _a;
453
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
454
+ const headers = {
455
+ "content-type": "application/json",
456
+ };
457
+ const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/transit-gateway-peerings";
458
+ let body;
459
+ body = JSON.stringify({
460
+ ClientToken: (_a = input.ClientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
461
+ ...(input.CoreNetworkId != null && { CoreNetworkId: input.CoreNetworkId }),
462
+ ...(input.Tags != null && { Tags: serializeAws_restJson1TagList(input.Tags, context) }),
463
+ ...(input.TransitGatewayArn != null && { TransitGatewayArn: input.TransitGatewayArn }),
464
+ });
465
+ return new protocol_http_1.HttpRequest({
466
+ protocol,
467
+ hostname,
468
+ port,
469
+ method: "POST",
470
+ headers,
471
+ path: resolvedPath,
472
+ body,
473
+ });
474
+ };
475
+ exports.serializeAws_restJson1CreateTransitGatewayPeeringCommand = serializeAws_restJson1CreateTransitGatewayPeeringCommand;
476
+ const serializeAws_restJson1CreateTransitGatewayRouteTableAttachmentCommand = async (input, context) => {
477
+ var _a;
478
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
479
+ const headers = {
480
+ "content-type": "application/json",
481
+ };
482
+ const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/transit-gateway-route-table-attachments";
483
+ let body;
484
+ body = JSON.stringify({
485
+ ClientToken: (_a = input.ClientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
486
+ ...(input.PeeringId != null && { PeeringId: input.PeeringId }),
487
+ ...(input.Tags != null && { Tags: serializeAws_restJson1TagList(input.Tags, context) }),
488
+ ...(input.TransitGatewayRouteTableArn != null && {
489
+ TransitGatewayRouteTableArn: input.TransitGatewayRouteTableArn,
490
+ }),
491
+ });
492
+ return new protocol_http_1.HttpRequest({
493
+ protocol,
494
+ hostname,
495
+ port,
496
+ method: "POST",
497
+ headers,
498
+ path: resolvedPath,
499
+ body,
500
+ });
501
+ };
502
+ exports.serializeAws_restJson1CreateTransitGatewayRouteTableAttachmentCommand = serializeAws_restJson1CreateTransitGatewayRouteTableAttachmentCommand;
477
503
  const serializeAws_restJson1CreateVpcAttachmentCommand = async (input, context) => {
478
504
  var _a;
479
505
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
@@ -484,14 +510,11 @@ const serializeAws_restJson1CreateVpcAttachmentCommand = async (input, context)
484
510
  let body;
485
511
  body = JSON.stringify({
486
512
  ClientToken: (_a = input.ClientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
487
- ...(input.CoreNetworkId !== undefined && input.CoreNetworkId !== null && { CoreNetworkId: input.CoreNetworkId }),
488
- ...(input.Options !== undefined &&
489
- input.Options !== null && { Options: serializeAws_restJson1VpcOptions(input.Options, context) }),
490
- ...(input.SubnetArns !== undefined &&
491
- input.SubnetArns !== null && { SubnetArns: serializeAws_restJson1SubnetArnList(input.SubnetArns, context) }),
492
- ...(input.Tags !== undefined &&
493
- input.Tags !== null && { Tags: serializeAws_restJson1TagList(input.Tags, context) }),
494
- ...(input.VpcArn !== undefined && input.VpcArn !== null && { VpcArn: input.VpcArn }),
513
+ ...(input.CoreNetworkId != null && { CoreNetworkId: input.CoreNetworkId }),
514
+ ...(input.Options != null && { Options: serializeAws_restJson1VpcOptions(input.Options, context) }),
515
+ ...(input.SubnetArns != null && { SubnetArns: serializeAws_restJson1SubnetArnList(input.SubnetArns, context) }),
516
+ ...(input.Tags != null && { Tags: serializeAws_restJson1TagList(input.Tags, context) }),
517
+ ...(input.VpcArn != null && { VpcArn: input.VpcArn }),
495
518
  });
496
519
  return new protocol_http_1.HttpRequest({
497
520
  protocol,
@@ -756,6 +779,32 @@ const serializeAws_restJson1DeleteLinkCommand = async (input, context) => {
756
779
  });
757
780
  };
758
781
  exports.serializeAws_restJson1DeleteLinkCommand = serializeAws_restJson1DeleteLinkCommand;
782
+ const serializeAws_restJson1DeletePeeringCommand = async (input, context) => {
783
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
784
+ const headers = {};
785
+ let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/peerings/{PeeringId}";
786
+ if (input.PeeringId !== undefined) {
787
+ const labelValue = input.PeeringId;
788
+ if (labelValue.length <= 0) {
789
+ throw new Error("Empty value provided for input HTTP label: PeeringId.");
790
+ }
791
+ resolvedPath = resolvedPath.replace("{PeeringId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
792
+ }
793
+ else {
794
+ throw new Error("No value provided for input HTTP label: PeeringId.");
795
+ }
796
+ let body;
797
+ return new protocol_http_1.HttpRequest({
798
+ protocol,
799
+ hostname,
800
+ port,
801
+ method: "DELETE",
802
+ headers,
803
+ path: resolvedPath,
804
+ body,
805
+ });
806
+ };
807
+ exports.serializeAws_restJson1DeletePeeringCommand = serializeAws_restJson1DeletePeeringCommand;
759
808
  const serializeAws_restJson1DeleteResourcePolicyCommand = async (input, context) => {
760
809
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
761
810
  const headers = {};
@@ -1209,6 +1258,48 @@ const serializeAws_restJson1GetCoreNetworkCommand = async (input, context) => {
1209
1258
  });
1210
1259
  };
1211
1260
  exports.serializeAws_restJson1GetCoreNetworkCommand = serializeAws_restJson1GetCoreNetworkCommand;
1261
+ const serializeAws_restJson1GetCoreNetworkChangeEventsCommand = async (input, context) => {
1262
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1263
+ const headers = {};
1264
+ let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
1265
+ "/core-networks/{CoreNetworkId}/core-network-change-events/{PolicyVersionId}";
1266
+ if (input.CoreNetworkId !== undefined) {
1267
+ const labelValue = input.CoreNetworkId;
1268
+ if (labelValue.length <= 0) {
1269
+ throw new Error("Empty value provided for input HTTP label: CoreNetworkId.");
1270
+ }
1271
+ resolvedPath = resolvedPath.replace("{CoreNetworkId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
1272
+ }
1273
+ else {
1274
+ throw new Error("No value provided for input HTTP label: CoreNetworkId.");
1275
+ }
1276
+ if (input.PolicyVersionId !== undefined) {
1277
+ const labelValue = input.PolicyVersionId.toString();
1278
+ if (labelValue.length <= 0) {
1279
+ throw new Error("Empty value provided for input HTTP label: PolicyVersionId.");
1280
+ }
1281
+ resolvedPath = resolvedPath.replace("{PolicyVersionId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
1282
+ }
1283
+ else {
1284
+ throw new Error("No value provided for input HTTP label: PolicyVersionId.");
1285
+ }
1286
+ const query = {
1287
+ ...(input.MaxResults !== undefined && { maxResults: input.MaxResults.toString() }),
1288
+ ...(input.NextToken !== undefined && { nextToken: input.NextToken }),
1289
+ };
1290
+ let body;
1291
+ return new protocol_http_1.HttpRequest({
1292
+ protocol,
1293
+ hostname,
1294
+ port,
1295
+ method: "GET",
1296
+ headers,
1297
+ path: resolvedPath,
1298
+ query,
1299
+ body,
1300
+ });
1301
+ };
1302
+ exports.serializeAws_restJson1GetCoreNetworkChangeEventsCommand = serializeAws_restJson1GetCoreNetworkChangeEventsCommand;
1212
1303
  const serializeAws_restJson1GetCoreNetworkChangeSetCommand = async (input, context) => {
1213
1304
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1214
1305
  const headers = {};
@@ -1549,38 +1640,29 @@ const serializeAws_restJson1GetNetworkRoutesCommand = async (input, context) =>
1549
1640
  }
1550
1641
  let body;
1551
1642
  body = JSON.stringify({
1552
- ...(input.DestinationFilters !== undefined &&
1553
- input.DestinationFilters !== null && {
1643
+ ...(input.DestinationFilters != null && {
1554
1644
  DestinationFilters: serializeAws_restJson1FilterMap(input.DestinationFilters, context),
1555
1645
  }),
1556
- ...(input.ExactCidrMatches !== undefined &&
1557
- input.ExactCidrMatches !== null && {
1646
+ ...(input.ExactCidrMatches != null && {
1558
1647
  ExactCidrMatches: serializeAws_restJson1ConstrainedStringList(input.ExactCidrMatches, context),
1559
1648
  }),
1560
- ...(input.LongestPrefixMatches !== undefined &&
1561
- input.LongestPrefixMatches !== null && {
1649
+ ...(input.LongestPrefixMatches != null && {
1562
1650
  LongestPrefixMatches: serializeAws_restJson1ConstrainedStringList(input.LongestPrefixMatches, context),
1563
1651
  }),
1564
- ...(input.PrefixListIds !== undefined &&
1565
- input.PrefixListIds !== null && {
1652
+ ...(input.PrefixListIds != null && {
1566
1653
  PrefixListIds: serializeAws_restJson1ConstrainedStringList(input.PrefixListIds, context),
1567
1654
  }),
1568
- ...(input.RouteTableIdentifier !== undefined &&
1569
- input.RouteTableIdentifier !== null && {
1655
+ ...(input.RouteTableIdentifier != null && {
1570
1656
  RouteTableIdentifier: serializeAws_restJson1RouteTableIdentifier(input.RouteTableIdentifier, context),
1571
1657
  }),
1572
- ...(input.States !== undefined &&
1573
- input.States !== null && { States: serializeAws_restJson1RouteStateList(input.States, context) }),
1574
- ...(input.SubnetOfMatches !== undefined &&
1575
- input.SubnetOfMatches !== null && {
1658
+ ...(input.States != null && { States: serializeAws_restJson1RouteStateList(input.States, context) }),
1659
+ ...(input.SubnetOfMatches != null && {
1576
1660
  SubnetOfMatches: serializeAws_restJson1ConstrainedStringList(input.SubnetOfMatches, context),
1577
1661
  }),
1578
- ...(input.SupernetOfMatches !== undefined &&
1579
- input.SupernetOfMatches !== null && {
1662
+ ...(input.SupernetOfMatches != null && {
1580
1663
  SupernetOfMatches: serializeAws_restJson1ConstrainedStringList(input.SupernetOfMatches, context),
1581
1664
  }),
1582
- ...(input.Types !== undefined &&
1583
- input.Types !== null && { Types: serializeAws_restJson1RouteTypeList(input.Types, context) }),
1665
+ ...(input.Types != null && { Types: serializeAws_restJson1RouteTypeList(input.Types, context) }),
1584
1666
  });
1585
1667
  return new protocol_http_1.HttpRequest({
1586
1668
  protocol,
@@ -1788,6 +1870,32 @@ const serializeAws_restJson1GetTransitGatewayConnectPeerAssociationsCommand = as
1788
1870
  });
1789
1871
  };
1790
1872
  exports.serializeAws_restJson1GetTransitGatewayConnectPeerAssociationsCommand = serializeAws_restJson1GetTransitGatewayConnectPeerAssociationsCommand;
1873
+ const serializeAws_restJson1GetTransitGatewayPeeringCommand = async (input, context) => {
1874
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1875
+ const headers = {};
1876
+ let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/transit-gateway-peerings/{PeeringId}";
1877
+ if (input.PeeringId !== undefined) {
1878
+ const labelValue = input.PeeringId;
1879
+ if (labelValue.length <= 0) {
1880
+ throw new Error("Empty value provided for input HTTP label: PeeringId.");
1881
+ }
1882
+ resolvedPath = resolvedPath.replace("{PeeringId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
1883
+ }
1884
+ else {
1885
+ throw new Error("No value provided for input HTTP label: PeeringId.");
1886
+ }
1887
+ let body;
1888
+ return new protocol_http_1.HttpRequest({
1889
+ protocol,
1890
+ hostname,
1891
+ port,
1892
+ method: "GET",
1893
+ headers,
1894
+ path: resolvedPath,
1895
+ body,
1896
+ });
1897
+ };
1898
+ exports.serializeAws_restJson1GetTransitGatewayPeeringCommand = serializeAws_restJson1GetTransitGatewayPeeringCommand;
1791
1899
  const serializeAws_restJson1GetTransitGatewayRegistrationsCommand = async (input, context) => {
1792
1900
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1793
1901
  const headers = {};
@@ -1823,6 +1931,33 @@ const serializeAws_restJson1GetTransitGatewayRegistrationsCommand = async (input
1823
1931
  });
1824
1932
  };
1825
1933
  exports.serializeAws_restJson1GetTransitGatewayRegistrationsCommand = serializeAws_restJson1GetTransitGatewayRegistrationsCommand;
1934
+ const serializeAws_restJson1GetTransitGatewayRouteTableAttachmentCommand = async (input, context) => {
1935
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1936
+ const headers = {};
1937
+ let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
1938
+ "/transit-gateway-route-table-attachments/{AttachmentId}";
1939
+ if (input.AttachmentId !== undefined) {
1940
+ const labelValue = input.AttachmentId;
1941
+ if (labelValue.length <= 0) {
1942
+ throw new Error("Empty value provided for input HTTP label: AttachmentId.");
1943
+ }
1944
+ resolvedPath = resolvedPath.replace("{AttachmentId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
1945
+ }
1946
+ else {
1947
+ throw new Error("No value provided for input HTTP label: AttachmentId.");
1948
+ }
1949
+ let body;
1950
+ return new protocol_http_1.HttpRequest({
1951
+ protocol,
1952
+ hostname,
1953
+ port,
1954
+ method: "GET",
1955
+ headers,
1956
+ path: resolvedPath,
1957
+ body,
1958
+ });
1959
+ };
1960
+ exports.serializeAws_restJson1GetTransitGatewayRouteTableAttachmentCommand = serializeAws_restJson1GetTransitGatewayRouteTableAttachmentCommand;
1826
1961
  const serializeAws_restJson1GetVpcAttachmentCommand = async (input, context) => {
1827
1962
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1828
1963
  const headers = {};
@@ -1971,6 +2106,31 @@ const serializeAws_restJson1ListOrganizationServiceAccessStatusCommand = async (
1971
2106
  });
1972
2107
  };
1973
2108
  exports.serializeAws_restJson1ListOrganizationServiceAccessStatusCommand = serializeAws_restJson1ListOrganizationServiceAccessStatusCommand;
2109
+ const serializeAws_restJson1ListPeeringsCommand = async (input, context) => {
2110
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
2111
+ const headers = {};
2112
+ const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/peerings";
2113
+ const query = {
2114
+ ...(input.CoreNetworkId !== undefined && { coreNetworkId: input.CoreNetworkId }),
2115
+ ...(input.PeeringType !== undefined && { peeringType: input.PeeringType }),
2116
+ ...(input.EdgeLocation !== undefined && { edgeLocation: input.EdgeLocation }),
2117
+ ...(input.State !== undefined && { state: input.State }),
2118
+ ...(input.MaxResults !== undefined && { maxResults: input.MaxResults.toString() }),
2119
+ ...(input.NextToken !== undefined && { nextToken: input.NextToken }),
2120
+ };
2121
+ let body;
2122
+ return new protocol_http_1.HttpRequest({
2123
+ protocol,
2124
+ hostname,
2125
+ port,
2126
+ method: "GET",
2127
+ headers,
2128
+ path: resolvedPath,
2129
+ query,
2130
+ body,
2131
+ });
2132
+ };
2133
+ exports.serializeAws_restJson1ListPeeringsCommand = serializeAws_restJson1ListPeeringsCommand;
1974
2134
  const serializeAws_restJson1ListTagsForResourceCommand = async (input, context) => {
1975
2135
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1976
2136
  const headers = {};
@@ -2018,11 +2178,9 @@ const serializeAws_restJson1PutCoreNetworkPolicyCommand = async (input, context)
2018
2178
  let body;
2019
2179
  body = JSON.stringify({
2020
2180
  ClientToken: (_a = input.ClientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
2021
- ...(input.Description !== undefined && input.Description !== null && { Description: input.Description }),
2022
- ...(input.LatestVersionId !== undefined &&
2023
- input.LatestVersionId !== null && { LatestVersionId: input.LatestVersionId }),
2024
- ...(input.PolicyDocument !== undefined &&
2025
- input.PolicyDocument !== null && { PolicyDocument: smithy_client_1.LazyJsonString.fromObject(input.PolicyDocument) }),
2181
+ ...(input.Description != null && { Description: input.Description }),
2182
+ ...(input.LatestVersionId != null && { LatestVersionId: input.LatestVersionId }),
2183
+ ...(input.PolicyDocument != null && { PolicyDocument: smithy_client_1.LazyJsonString.fromObject(input.PolicyDocument) }),
2026
2184
  });
2027
2185
  return new protocol_http_1.HttpRequest({
2028
2186
  protocol,
@@ -2053,8 +2211,7 @@ const serializeAws_restJson1PutResourcePolicyCommand = async (input, context) =>
2053
2211
  }
2054
2212
  let body;
2055
2213
  body = JSON.stringify({
2056
- ...(input.PolicyDocument !== undefined &&
2057
- input.PolicyDocument !== null && { PolicyDocument: smithy_client_1.LazyJsonString.fromObject(input.PolicyDocument) }),
2214
+ ...(input.PolicyDocument != null && { PolicyDocument: smithy_client_1.LazyJsonString.fromObject(input.PolicyDocument) }),
2058
2215
  });
2059
2216
  return new protocol_http_1.HttpRequest({
2060
2217
  protocol,
@@ -2086,8 +2243,7 @@ const serializeAws_restJson1RegisterTransitGatewayCommand = async (input, contex
2086
2243
  }
2087
2244
  let body;
2088
2245
  body = JSON.stringify({
2089
- ...(input.TransitGatewayArn !== undefined &&
2090
- input.TransitGatewayArn !== null && { TransitGatewayArn: input.TransitGatewayArn }),
2246
+ ...(input.TransitGatewayArn != null && { TransitGatewayArn: input.TransitGatewayArn }),
2091
2247
  });
2092
2248
  return new protocol_http_1.HttpRequest({
2093
2249
  protocol,
@@ -2171,7 +2327,7 @@ const serializeAws_restJson1StartOrganizationServiceAccessUpdateCommand = async
2171
2327
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/organizations/service-access";
2172
2328
  let body;
2173
2329
  body = JSON.stringify({
2174
- ...(input.Action !== undefined && input.Action !== null && { Action: input.Action }),
2330
+ ...(input.Action != null && { Action: input.Action }),
2175
2331
  });
2176
2332
  return new protocol_http_1.HttpRequest({
2177
2333
  protocol,
@@ -2203,18 +2359,14 @@ const serializeAws_restJson1StartRouteAnalysisCommand = async (input, context) =
2203
2359
  }
2204
2360
  let body;
2205
2361
  body = JSON.stringify({
2206
- ...(input.Destination !== undefined &&
2207
- input.Destination !== null && {
2362
+ ...(input.Destination != null && {
2208
2363
  Destination: serializeAws_restJson1RouteAnalysisEndpointOptionsSpecification(input.Destination, context),
2209
2364
  }),
2210
- ...(input.IncludeReturnPath !== undefined &&
2211
- input.IncludeReturnPath !== null && { IncludeReturnPath: input.IncludeReturnPath }),
2212
- ...(input.Source !== undefined &&
2213
- input.Source !== null && {
2365
+ ...(input.IncludeReturnPath != null && { IncludeReturnPath: input.IncludeReturnPath }),
2366
+ ...(input.Source != null && {
2214
2367
  Source: serializeAws_restJson1RouteAnalysisEndpointOptionsSpecification(input.Source, context),
2215
2368
  }),
2216
- ...(input.UseMiddleboxes !== undefined &&
2217
- input.UseMiddleboxes !== null && { UseMiddleboxes: input.UseMiddleboxes }),
2369
+ ...(input.UseMiddleboxes != null && { UseMiddleboxes: input.UseMiddleboxes }),
2218
2370
  });
2219
2371
  return new protocol_http_1.HttpRequest({
2220
2372
  protocol,
@@ -2245,8 +2397,7 @@ const serializeAws_restJson1TagResourceCommand = async (input, context) => {
2245
2397
  }
2246
2398
  let body;
2247
2399
  body = JSON.stringify({
2248
- ...(input.Tags !== undefined &&
2249
- input.Tags !== null && { Tags: serializeAws_restJson1TagList(input.Tags, context) }),
2400
+ ...(input.Tags != null && { Tags: serializeAws_restJson1TagList(input.Tags, context) }),
2250
2401
  });
2251
2402
  return new protocol_http_1.HttpRequest({
2252
2403
  protocol,
@@ -2318,10 +2469,9 @@ const serializeAws_restJson1UpdateConnectionCommand = async (input, context) =>
2318
2469
  }
2319
2470
  let body;
2320
2471
  body = JSON.stringify({
2321
- ...(input.ConnectedLinkId !== undefined &&
2322
- input.ConnectedLinkId !== null && { ConnectedLinkId: input.ConnectedLinkId }),
2323
- ...(input.Description !== undefined && input.Description !== null && { Description: input.Description }),
2324
- ...(input.LinkId !== undefined && input.LinkId !== null && { LinkId: input.LinkId }),
2472
+ ...(input.ConnectedLinkId != null && { ConnectedLinkId: input.ConnectedLinkId }),
2473
+ ...(input.Description != null && { Description: input.Description }),
2474
+ ...(input.LinkId != null && { LinkId: input.LinkId }),
2325
2475
  });
2326
2476
  return new protocol_http_1.HttpRequest({
2327
2477
  protocol,
@@ -2352,7 +2502,7 @@ const serializeAws_restJson1UpdateCoreNetworkCommand = async (input, context) =>
2352
2502
  }
2353
2503
  let body;
2354
2504
  body = JSON.stringify({
2355
- ...(input.Description !== undefined && input.Description !== null && { Description: input.Description }),
2505
+ ...(input.Description != null && { Description: input.Description }),
2356
2506
  });
2357
2507
  return new protocol_http_1.HttpRequest({
2358
2508
  protocol,
@@ -2394,16 +2544,14 @@ const serializeAws_restJson1UpdateDeviceCommand = async (input, context) => {
2394
2544
  }
2395
2545
  let body;
2396
2546
  body = JSON.stringify({
2397
- ...(input.AWSLocation !== undefined &&
2398
- input.AWSLocation !== null && { AWSLocation: serializeAws_restJson1AWSLocation(input.AWSLocation, context) }),
2399
- ...(input.Description !== undefined && input.Description !== null && { Description: input.Description }),
2400
- ...(input.Location !== undefined &&
2401
- input.Location !== null && { Location: serializeAws_restJson1Location(input.Location, context) }),
2402
- ...(input.Model !== undefined && input.Model !== null && { Model: input.Model }),
2403
- ...(input.SerialNumber !== undefined && input.SerialNumber !== null && { SerialNumber: input.SerialNumber }),
2404
- ...(input.SiteId !== undefined && input.SiteId !== null && { SiteId: input.SiteId }),
2405
- ...(input.Type !== undefined && input.Type !== null && { Type: input.Type }),
2406
- ...(input.Vendor !== undefined && input.Vendor !== null && { Vendor: input.Vendor }),
2547
+ ...(input.AWSLocation != null && { AWSLocation: serializeAws_restJson1AWSLocation(input.AWSLocation, context) }),
2548
+ ...(input.Description != null && { Description: input.Description }),
2549
+ ...(input.Location != null && { Location: serializeAws_restJson1Location(input.Location, context) }),
2550
+ ...(input.Model != null && { Model: input.Model }),
2551
+ ...(input.SerialNumber != null && { SerialNumber: input.SerialNumber }),
2552
+ ...(input.SiteId != null && { SiteId: input.SiteId }),
2553
+ ...(input.Type != null && { Type: input.Type }),
2554
+ ...(input.Vendor != null && { Vendor: input.Vendor }),
2407
2555
  });
2408
2556
  return new protocol_http_1.HttpRequest({
2409
2557
  protocol,
@@ -2434,7 +2582,7 @@ const serializeAws_restJson1UpdateGlobalNetworkCommand = async (input, context)
2434
2582
  }
2435
2583
  let body;
2436
2584
  body = JSON.stringify({
2437
- ...(input.Description !== undefined && input.Description !== null && { Description: input.Description }),
2585
+ ...(input.Description != null && { Description: input.Description }),
2438
2586
  });
2439
2587
  return new protocol_http_1.HttpRequest({
2440
2588
  protocol,
@@ -2476,11 +2624,10 @@ const serializeAws_restJson1UpdateLinkCommand = async (input, context) => {
2476
2624
  }
2477
2625
  let body;
2478
2626
  body = JSON.stringify({
2479
- ...(input.Bandwidth !== undefined &&
2480
- input.Bandwidth !== null && { Bandwidth: serializeAws_restJson1Bandwidth(input.Bandwidth, context) }),
2481
- ...(input.Description !== undefined && input.Description !== null && { Description: input.Description }),
2482
- ...(input.Provider !== undefined && input.Provider !== null && { Provider: input.Provider }),
2483
- ...(input.Type !== undefined && input.Type !== null && { Type: input.Type }),
2627
+ ...(input.Bandwidth != null && { Bandwidth: serializeAws_restJson1Bandwidth(input.Bandwidth, context) }),
2628
+ ...(input.Description != null && { Description: input.Description }),
2629
+ ...(input.Provider != null && { Provider: input.Provider }),
2630
+ ...(input.Type != null && { Type: input.Type }),
2484
2631
  });
2485
2632
  return new protocol_http_1.HttpRequest({
2486
2633
  protocol,
@@ -2522,8 +2669,7 @@ const serializeAws_restJson1UpdateNetworkResourceMetadataCommand = async (input,
2522
2669
  }
2523
2670
  let body;
2524
2671
  body = JSON.stringify({
2525
- ...(input.Metadata !== undefined &&
2526
- input.Metadata !== null && {
2672
+ ...(input.Metadata != null && {
2527
2673
  Metadata: serializeAws_restJson1NetworkResourceMetadataMap(input.Metadata, context),
2528
2674
  }),
2529
2675
  });
@@ -2567,9 +2713,8 @@ const serializeAws_restJson1UpdateSiteCommand = async (input, context) => {
2567
2713
  }
2568
2714
  let body;
2569
2715
  body = JSON.stringify({
2570
- ...(input.Description !== undefined && input.Description !== null && { Description: input.Description }),
2571
- ...(input.Location !== undefined &&
2572
- input.Location !== null && { Location: serializeAws_restJson1Location(input.Location, context) }),
2716
+ ...(input.Description != null && { Description: input.Description }),
2717
+ ...(input.Location != null && { Location: serializeAws_restJson1Location(input.Location, context) }),
2573
2718
  });
2574
2719
  return new protocol_http_1.HttpRequest({
2575
2720
  protocol,
@@ -2600,14 +2745,11 @@ const serializeAws_restJson1UpdateVpcAttachmentCommand = async (input, context)
2600
2745
  }
2601
2746
  let body;
2602
2747
  body = JSON.stringify({
2603
- ...(input.AddSubnetArns !== undefined &&
2604
- input.AddSubnetArns !== null && {
2748
+ ...(input.AddSubnetArns != null && {
2605
2749
  AddSubnetArns: serializeAws_restJson1SubnetArnList(input.AddSubnetArns, context),
2606
2750
  }),
2607
- ...(input.Options !== undefined &&
2608
- input.Options !== null && { Options: serializeAws_restJson1VpcOptions(input.Options, context) }),
2609
- ...(input.RemoveSubnetArns !== undefined &&
2610
- input.RemoveSubnetArns !== null && {
2751
+ ...(input.Options != null && { Options: serializeAws_restJson1VpcOptions(input.Options, context) }),
2752
+ ...(input.RemoveSubnetArns != null && {
2611
2753
  RemoveSubnetArns: serializeAws_restJson1SubnetArnList(input.RemoveSubnetArns, context),
2612
2754
  }),
2613
2755
  });
@@ -3388,6 +3530,112 @@ const deserializeAws_restJson1CreateSiteToSiteVpnAttachmentCommandError = async
3388
3530
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
3389
3531
  }
3390
3532
  };
3533
+ const deserializeAws_restJson1CreateTransitGatewayPeeringCommand = async (output, context) => {
3534
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
3535
+ return deserializeAws_restJson1CreateTransitGatewayPeeringCommandError(output, context);
3536
+ }
3537
+ const contents = {
3538
+ $metadata: deserializeMetadata(output),
3539
+ TransitGatewayPeering: undefined,
3540
+ };
3541
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
3542
+ if (data.TransitGatewayPeering !== undefined && data.TransitGatewayPeering !== null) {
3543
+ contents.TransitGatewayPeering = deserializeAws_restJson1TransitGatewayPeering(data.TransitGatewayPeering, context);
3544
+ }
3545
+ return Promise.resolve(contents);
3546
+ };
3547
+ exports.deserializeAws_restJson1CreateTransitGatewayPeeringCommand = deserializeAws_restJson1CreateTransitGatewayPeeringCommand;
3548
+ const deserializeAws_restJson1CreateTransitGatewayPeeringCommandError = async (output, context) => {
3549
+ const parsedOutput = {
3550
+ ...output,
3551
+ body: await parseBody(output.body, context),
3552
+ };
3553
+ let response;
3554
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3555
+ switch (errorCode) {
3556
+ case "AccessDeniedException":
3557
+ case "com.amazonaws.networkmanager#AccessDeniedException":
3558
+ throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
3559
+ case "ConflictException":
3560
+ case "com.amazonaws.networkmanager#ConflictException":
3561
+ throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
3562
+ case "InternalServerException":
3563
+ case "com.amazonaws.networkmanager#InternalServerException":
3564
+ throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
3565
+ case "ResourceNotFoundException":
3566
+ case "com.amazonaws.networkmanager#ResourceNotFoundException":
3567
+ throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
3568
+ case "ThrottlingException":
3569
+ case "com.amazonaws.networkmanager#ThrottlingException":
3570
+ throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
3571
+ case "ValidationException":
3572
+ case "com.amazonaws.networkmanager#ValidationException":
3573
+ throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
3574
+ default:
3575
+ const parsedBody = parsedOutput.body;
3576
+ const $metadata = deserializeMetadata(output);
3577
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
3578
+ response = new NetworkManagerServiceException_1.NetworkManagerServiceException({
3579
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
3580
+ $fault: "client",
3581
+ $metadata,
3582
+ });
3583
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
3584
+ }
3585
+ };
3586
+ const deserializeAws_restJson1CreateTransitGatewayRouteTableAttachmentCommand = async (output, context) => {
3587
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
3588
+ return deserializeAws_restJson1CreateTransitGatewayRouteTableAttachmentCommandError(output, context);
3589
+ }
3590
+ const contents = {
3591
+ $metadata: deserializeMetadata(output),
3592
+ TransitGatewayRouteTableAttachment: undefined,
3593
+ };
3594
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
3595
+ if (data.TransitGatewayRouteTableAttachment !== undefined && data.TransitGatewayRouteTableAttachment !== null) {
3596
+ contents.TransitGatewayRouteTableAttachment = deserializeAws_restJson1TransitGatewayRouteTableAttachment(data.TransitGatewayRouteTableAttachment, context);
3597
+ }
3598
+ return Promise.resolve(contents);
3599
+ };
3600
+ exports.deserializeAws_restJson1CreateTransitGatewayRouteTableAttachmentCommand = deserializeAws_restJson1CreateTransitGatewayRouteTableAttachmentCommand;
3601
+ const deserializeAws_restJson1CreateTransitGatewayRouteTableAttachmentCommandError = async (output, context) => {
3602
+ const parsedOutput = {
3603
+ ...output,
3604
+ body: await parseBody(output.body, context),
3605
+ };
3606
+ let response;
3607
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3608
+ switch (errorCode) {
3609
+ case "AccessDeniedException":
3610
+ case "com.amazonaws.networkmanager#AccessDeniedException":
3611
+ throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
3612
+ case "ConflictException":
3613
+ case "com.amazonaws.networkmanager#ConflictException":
3614
+ throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
3615
+ case "InternalServerException":
3616
+ case "com.amazonaws.networkmanager#InternalServerException":
3617
+ throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
3618
+ case "ResourceNotFoundException":
3619
+ case "com.amazonaws.networkmanager#ResourceNotFoundException":
3620
+ throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
3621
+ case "ThrottlingException":
3622
+ case "com.amazonaws.networkmanager#ThrottlingException":
3623
+ throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
3624
+ case "ValidationException":
3625
+ case "com.amazonaws.networkmanager#ValidationException":
3626
+ throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
3627
+ default:
3628
+ const parsedBody = parsedOutput.body;
3629
+ const $metadata = deserializeMetadata(output);
3630
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
3631
+ response = new NetworkManagerServiceException_1.NetworkManagerServiceException({
3632
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
3633
+ $fault: "client",
3634
+ $metadata,
3635
+ });
3636
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
3637
+ }
3638
+ };
3391
3639
  const deserializeAws_restJson1CreateVpcAttachmentCommand = async (output, context) => {
3392
3640
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3393
3641
  return deserializeAws_restJson1CreateVpcAttachmentCommandError(output, context);
@@ -3865,6 +4113,59 @@ const deserializeAws_restJson1DeleteLinkCommandError = async (output, context) =
3865
4113
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
3866
4114
  }
3867
4115
  };
4116
+ const deserializeAws_restJson1DeletePeeringCommand = async (output, context) => {
4117
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
4118
+ return deserializeAws_restJson1DeletePeeringCommandError(output, context);
4119
+ }
4120
+ const contents = {
4121
+ $metadata: deserializeMetadata(output),
4122
+ Peering: undefined,
4123
+ };
4124
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
4125
+ if (data.Peering !== undefined && data.Peering !== null) {
4126
+ contents.Peering = deserializeAws_restJson1Peering(data.Peering, context);
4127
+ }
4128
+ return Promise.resolve(contents);
4129
+ };
4130
+ exports.deserializeAws_restJson1DeletePeeringCommand = deserializeAws_restJson1DeletePeeringCommand;
4131
+ const deserializeAws_restJson1DeletePeeringCommandError = async (output, context) => {
4132
+ const parsedOutput = {
4133
+ ...output,
4134
+ body: await parseBody(output.body, context),
4135
+ };
4136
+ let response;
4137
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4138
+ switch (errorCode) {
4139
+ case "AccessDeniedException":
4140
+ case "com.amazonaws.networkmanager#AccessDeniedException":
4141
+ throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
4142
+ case "ConflictException":
4143
+ case "com.amazonaws.networkmanager#ConflictException":
4144
+ throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
4145
+ case "InternalServerException":
4146
+ case "com.amazonaws.networkmanager#InternalServerException":
4147
+ throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
4148
+ case "ResourceNotFoundException":
4149
+ case "com.amazonaws.networkmanager#ResourceNotFoundException":
4150
+ throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
4151
+ case "ThrottlingException":
4152
+ case "com.amazonaws.networkmanager#ThrottlingException":
4153
+ throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
4154
+ case "ValidationException":
4155
+ case "com.amazonaws.networkmanager#ValidationException":
4156
+ throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
4157
+ default:
4158
+ const parsedBody = parsedOutput.body;
4159
+ const $metadata = deserializeMetadata(output);
4160
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
4161
+ response = new NetworkManagerServiceException_1.NetworkManagerServiceException({
4162
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
4163
+ $fault: "client",
4164
+ $metadata,
4165
+ });
4166
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
4167
+ }
4168
+ };
3868
4169
  const deserializeAws_restJson1DeleteResourcePolicyCommand = async (output, context) => {
3869
4170
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3870
4171
  return deserializeAws_restJson1DeleteResourcePolicyCommandError(output, context);
@@ -4488,24 +4789,77 @@ const deserializeAws_restJson1GetConnectPeerCommandError = async (output, contex
4488
4789
  };
4489
4790
  const deserializeAws_restJson1GetConnectPeerAssociationsCommand = async (output, context) => {
4490
4791
  if (output.statusCode !== 200 && output.statusCode >= 300) {
4491
- return deserializeAws_restJson1GetConnectPeerAssociationsCommandError(output, context);
4792
+ return deserializeAws_restJson1GetConnectPeerAssociationsCommandError(output, context);
4793
+ }
4794
+ const contents = {
4795
+ $metadata: deserializeMetadata(output),
4796
+ ConnectPeerAssociations: undefined,
4797
+ NextToken: undefined,
4798
+ };
4799
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
4800
+ if (data.ConnectPeerAssociations !== undefined && data.ConnectPeerAssociations !== null) {
4801
+ contents.ConnectPeerAssociations = deserializeAws_restJson1ConnectPeerAssociationList(data.ConnectPeerAssociations, context);
4802
+ }
4803
+ if (data.NextToken !== undefined && data.NextToken !== null) {
4804
+ contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
4805
+ }
4806
+ return Promise.resolve(contents);
4807
+ };
4808
+ exports.deserializeAws_restJson1GetConnectPeerAssociationsCommand = deserializeAws_restJson1GetConnectPeerAssociationsCommand;
4809
+ const deserializeAws_restJson1GetConnectPeerAssociationsCommandError = async (output, context) => {
4810
+ const parsedOutput = {
4811
+ ...output,
4812
+ body: await parseBody(output.body, context),
4813
+ };
4814
+ let response;
4815
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4816
+ switch (errorCode) {
4817
+ case "AccessDeniedException":
4818
+ case "com.amazonaws.networkmanager#AccessDeniedException":
4819
+ throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
4820
+ case "ConflictException":
4821
+ case "com.amazonaws.networkmanager#ConflictException":
4822
+ throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
4823
+ case "InternalServerException":
4824
+ case "com.amazonaws.networkmanager#InternalServerException":
4825
+ throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
4826
+ case "ResourceNotFoundException":
4827
+ case "com.amazonaws.networkmanager#ResourceNotFoundException":
4828
+ throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
4829
+ case "ThrottlingException":
4830
+ case "com.amazonaws.networkmanager#ThrottlingException":
4831
+ throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
4832
+ case "ValidationException":
4833
+ case "com.amazonaws.networkmanager#ValidationException":
4834
+ throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
4835
+ default:
4836
+ const parsedBody = parsedOutput.body;
4837
+ const $metadata = deserializeMetadata(output);
4838
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
4839
+ response = new NetworkManagerServiceException_1.NetworkManagerServiceException({
4840
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
4841
+ $fault: "client",
4842
+ $metadata,
4843
+ });
4844
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
4845
+ }
4846
+ };
4847
+ const deserializeAws_restJson1GetCoreNetworkCommand = async (output, context) => {
4848
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
4849
+ return deserializeAws_restJson1GetCoreNetworkCommandError(output, context);
4492
4850
  }
4493
4851
  const contents = {
4494
4852
  $metadata: deserializeMetadata(output),
4495
- ConnectPeerAssociations: undefined,
4496
- NextToken: undefined,
4853
+ CoreNetwork: undefined,
4497
4854
  };
4498
4855
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
4499
- if (data.ConnectPeerAssociations !== undefined && data.ConnectPeerAssociations !== null) {
4500
- contents.ConnectPeerAssociations = deserializeAws_restJson1ConnectPeerAssociationList(data.ConnectPeerAssociations, context);
4501
- }
4502
- if (data.NextToken !== undefined && data.NextToken !== null) {
4503
- contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
4856
+ if (data.CoreNetwork !== undefined && data.CoreNetwork !== null) {
4857
+ contents.CoreNetwork = deserializeAws_restJson1CoreNetwork(data.CoreNetwork, context);
4504
4858
  }
4505
4859
  return Promise.resolve(contents);
4506
4860
  };
4507
- exports.deserializeAws_restJson1GetConnectPeerAssociationsCommand = deserializeAws_restJson1GetConnectPeerAssociationsCommand;
4508
- const deserializeAws_restJson1GetConnectPeerAssociationsCommandError = async (output, context) => {
4861
+ exports.deserializeAws_restJson1GetCoreNetworkCommand = deserializeAws_restJson1GetCoreNetworkCommand;
4862
+ const deserializeAws_restJson1GetCoreNetworkCommandError = async (output, context) => {
4509
4863
  const parsedOutput = {
4510
4864
  ...output,
4511
4865
  body: await parseBody(output.body, context),
@@ -4516,9 +4870,6 @@ const deserializeAws_restJson1GetConnectPeerAssociationsCommandError = async (ou
4516
4870
  case "AccessDeniedException":
4517
4871
  case "com.amazonaws.networkmanager#AccessDeniedException":
4518
4872
  throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
4519
- case "ConflictException":
4520
- case "com.amazonaws.networkmanager#ConflictException":
4521
- throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
4522
4873
  case "InternalServerException":
4523
4874
  case "com.amazonaws.networkmanager#InternalServerException":
4524
4875
  throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
@@ -4543,22 +4894,26 @@ const deserializeAws_restJson1GetConnectPeerAssociationsCommandError = async (ou
4543
4894
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
4544
4895
  }
4545
4896
  };
4546
- const deserializeAws_restJson1GetCoreNetworkCommand = async (output, context) => {
4897
+ const deserializeAws_restJson1GetCoreNetworkChangeEventsCommand = async (output, context) => {
4547
4898
  if (output.statusCode !== 200 && output.statusCode >= 300) {
4548
- return deserializeAws_restJson1GetCoreNetworkCommandError(output, context);
4899
+ return deserializeAws_restJson1GetCoreNetworkChangeEventsCommandError(output, context);
4549
4900
  }
4550
4901
  const contents = {
4551
4902
  $metadata: deserializeMetadata(output),
4552
- CoreNetwork: undefined,
4903
+ CoreNetworkChangeEvents: undefined,
4904
+ NextToken: undefined,
4553
4905
  };
4554
4906
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
4555
- if (data.CoreNetwork !== undefined && data.CoreNetwork !== null) {
4556
- contents.CoreNetwork = deserializeAws_restJson1CoreNetwork(data.CoreNetwork, context);
4907
+ if (data.CoreNetworkChangeEvents !== undefined && data.CoreNetworkChangeEvents !== null) {
4908
+ contents.CoreNetworkChangeEvents = deserializeAws_restJson1CoreNetworkChangeEventList(data.CoreNetworkChangeEvents, context);
4909
+ }
4910
+ if (data.NextToken !== undefined && data.NextToken !== null) {
4911
+ contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
4557
4912
  }
4558
4913
  return Promise.resolve(contents);
4559
4914
  };
4560
- exports.deserializeAws_restJson1GetCoreNetworkCommand = deserializeAws_restJson1GetCoreNetworkCommand;
4561
- const deserializeAws_restJson1GetCoreNetworkCommandError = async (output, context) => {
4915
+ exports.deserializeAws_restJson1GetCoreNetworkChangeEventsCommand = deserializeAws_restJson1GetCoreNetworkChangeEventsCommand;
4916
+ const deserializeAws_restJson1GetCoreNetworkChangeEventsCommandError = async (output, context) => {
4562
4917
  const parsedOutput = {
4563
4918
  ...output,
4564
4919
  body: await parseBody(output.body, context),
@@ -5453,6 +5808,56 @@ const deserializeAws_restJson1GetTransitGatewayConnectPeerAssociationsCommandErr
5453
5808
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
5454
5809
  }
5455
5810
  };
5811
+ const deserializeAws_restJson1GetTransitGatewayPeeringCommand = async (output, context) => {
5812
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
5813
+ return deserializeAws_restJson1GetTransitGatewayPeeringCommandError(output, context);
5814
+ }
5815
+ const contents = {
5816
+ $metadata: deserializeMetadata(output),
5817
+ TransitGatewayPeering: undefined,
5818
+ };
5819
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
5820
+ if (data.TransitGatewayPeering !== undefined && data.TransitGatewayPeering !== null) {
5821
+ contents.TransitGatewayPeering = deserializeAws_restJson1TransitGatewayPeering(data.TransitGatewayPeering, context);
5822
+ }
5823
+ return Promise.resolve(contents);
5824
+ };
5825
+ exports.deserializeAws_restJson1GetTransitGatewayPeeringCommand = deserializeAws_restJson1GetTransitGatewayPeeringCommand;
5826
+ const deserializeAws_restJson1GetTransitGatewayPeeringCommandError = async (output, context) => {
5827
+ const parsedOutput = {
5828
+ ...output,
5829
+ body: await parseBody(output.body, context),
5830
+ };
5831
+ let response;
5832
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
5833
+ switch (errorCode) {
5834
+ case "AccessDeniedException":
5835
+ case "com.amazonaws.networkmanager#AccessDeniedException":
5836
+ throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
5837
+ case "InternalServerException":
5838
+ case "com.amazonaws.networkmanager#InternalServerException":
5839
+ throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
5840
+ case "ResourceNotFoundException":
5841
+ case "com.amazonaws.networkmanager#ResourceNotFoundException":
5842
+ throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
5843
+ case "ThrottlingException":
5844
+ case "com.amazonaws.networkmanager#ThrottlingException":
5845
+ throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
5846
+ case "ValidationException":
5847
+ case "com.amazonaws.networkmanager#ValidationException":
5848
+ throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
5849
+ default:
5850
+ const parsedBody = parsedOutput.body;
5851
+ const $metadata = deserializeMetadata(output);
5852
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
5853
+ response = new NetworkManagerServiceException_1.NetworkManagerServiceException({
5854
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
5855
+ $fault: "client",
5856
+ $metadata,
5857
+ });
5858
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
5859
+ }
5860
+ };
5456
5861
  const deserializeAws_restJson1GetTransitGatewayRegistrationsCommand = async (output, context) => {
5457
5862
  if (output.statusCode !== 200 && output.statusCode >= 300) {
5458
5863
  return deserializeAws_restJson1GetTransitGatewayRegistrationsCommandError(output, context);
@@ -5507,6 +5912,56 @@ const deserializeAws_restJson1GetTransitGatewayRegistrationsCommandError = async
5507
5912
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
5508
5913
  }
5509
5914
  };
5915
+ const deserializeAws_restJson1GetTransitGatewayRouteTableAttachmentCommand = async (output, context) => {
5916
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
5917
+ return deserializeAws_restJson1GetTransitGatewayRouteTableAttachmentCommandError(output, context);
5918
+ }
5919
+ const contents = {
5920
+ $metadata: deserializeMetadata(output),
5921
+ TransitGatewayRouteTableAttachment: undefined,
5922
+ };
5923
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
5924
+ if (data.TransitGatewayRouteTableAttachment !== undefined && data.TransitGatewayRouteTableAttachment !== null) {
5925
+ contents.TransitGatewayRouteTableAttachment = deserializeAws_restJson1TransitGatewayRouteTableAttachment(data.TransitGatewayRouteTableAttachment, context);
5926
+ }
5927
+ return Promise.resolve(contents);
5928
+ };
5929
+ exports.deserializeAws_restJson1GetTransitGatewayRouteTableAttachmentCommand = deserializeAws_restJson1GetTransitGatewayRouteTableAttachmentCommand;
5930
+ const deserializeAws_restJson1GetTransitGatewayRouteTableAttachmentCommandError = async (output, context) => {
5931
+ const parsedOutput = {
5932
+ ...output,
5933
+ body: await parseBody(output.body, context),
5934
+ };
5935
+ let response;
5936
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
5937
+ switch (errorCode) {
5938
+ case "AccessDeniedException":
5939
+ case "com.amazonaws.networkmanager#AccessDeniedException":
5940
+ throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
5941
+ case "InternalServerException":
5942
+ case "com.amazonaws.networkmanager#InternalServerException":
5943
+ throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
5944
+ case "ResourceNotFoundException":
5945
+ case "com.amazonaws.networkmanager#ResourceNotFoundException":
5946
+ throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
5947
+ case "ThrottlingException":
5948
+ case "com.amazonaws.networkmanager#ThrottlingException":
5949
+ throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
5950
+ case "ValidationException":
5951
+ case "com.amazonaws.networkmanager#ValidationException":
5952
+ throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
5953
+ default:
5954
+ const parsedBody = parsedOutput.body;
5955
+ const $metadata = deserializeMetadata(output);
5956
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
5957
+ response = new NetworkManagerServiceException_1.NetworkManagerServiceException({
5958
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
5959
+ $fault: "client",
5960
+ $metadata,
5961
+ });
5962
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
5963
+ }
5964
+ };
5510
5965
  const deserializeAws_restJson1GetVpcAttachmentCommand = async (output, context) => {
5511
5966
  if (output.statusCode !== 200 && output.statusCode >= 300) {
5512
5967
  return deserializeAws_restJson1GetVpcAttachmentCommandError(output, context);
@@ -5803,6 +6258,57 @@ const deserializeAws_restJson1ListOrganizationServiceAccessStatusCommandError =
5803
6258
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
5804
6259
  }
5805
6260
  };
6261
+ const deserializeAws_restJson1ListPeeringsCommand = async (output, context) => {
6262
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
6263
+ return deserializeAws_restJson1ListPeeringsCommandError(output, context);
6264
+ }
6265
+ const contents = {
6266
+ $metadata: deserializeMetadata(output),
6267
+ NextToken: undefined,
6268
+ Peerings: undefined,
6269
+ };
6270
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
6271
+ if (data.NextToken !== undefined && data.NextToken !== null) {
6272
+ contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
6273
+ }
6274
+ if (data.Peerings !== undefined && data.Peerings !== null) {
6275
+ contents.Peerings = deserializeAws_restJson1PeeringList(data.Peerings, context);
6276
+ }
6277
+ return Promise.resolve(contents);
6278
+ };
6279
+ exports.deserializeAws_restJson1ListPeeringsCommand = deserializeAws_restJson1ListPeeringsCommand;
6280
+ const deserializeAws_restJson1ListPeeringsCommandError = async (output, context) => {
6281
+ const parsedOutput = {
6282
+ ...output,
6283
+ body: await parseBody(output.body, context),
6284
+ };
6285
+ let response;
6286
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
6287
+ switch (errorCode) {
6288
+ case "AccessDeniedException":
6289
+ case "com.amazonaws.networkmanager#AccessDeniedException":
6290
+ throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
6291
+ case "InternalServerException":
6292
+ case "com.amazonaws.networkmanager#InternalServerException":
6293
+ throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
6294
+ case "ThrottlingException":
6295
+ case "com.amazonaws.networkmanager#ThrottlingException":
6296
+ throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
6297
+ case "ValidationException":
6298
+ case "com.amazonaws.networkmanager#ValidationException":
6299
+ throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
6300
+ default:
6301
+ const parsedBody = parsedOutput.body;
6302
+ const $metadata = deserializeMetadata(output);
6303
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
6304
+ response = new NetworkManagerServiceException_1.NetworkManagerServiceException({
6305
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
6306
+ $fault: "client",
6307
+ $metadata,
6308
+ });
6309
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
6310
+ }
6311
+ };
5806
6312
  const deserializeAws_restJson1ListTagsForResourceCommand = async (output, context) => {
5807
6313
  if (output.statusCode !== 200 && output.statusCode >= 300) {
5808
6314
  return deserializeAws_restJson1ListTagsForResourceCommandError(output, context);
@@ -6895,24 +7401,24 @@ const deserializeAws_restJson1ValidationExceptionResponse = async (parsedOutput,
6895
7401
  };
6896
7402
  const serializeAws_restJson1AWSLocation = (input, context) => {
6897
7403
  return {
6898
- ...(input.SubnetArn !== undefined && input.SubnetArn !== null && { SubnetArn: input.SubnetArn }),
6899
- ...(input.Zone !== undefined && input.Zone !== null && { Zone: input.Zone }),
7404
+ ...(input.SubnetArn != null && { SubnetArn: input.SubnetArn }),
7405
+ ...(input.Zone != null && { Zone: input.Zone }),
6900
7406
  };
6901
7407
  };
6902
7408
  const serializeAws_restJson1Bandwidth = (input, context) => {
6903
7409
  return {
6904
- ...(input.DownloadSpeed !== undefined && input.DownloadSpeed !== null && { DownloadSpeed: input.DownloadSpeed }),
6905
- ...(input.UploadSpeed !== undefined && input.UploadSpeed !== null && { UploadSpeed: input.UploadSpeed }),
7410
+ ...(input.DownloadSpeed != null && { DownloadSpeed: input.DownloadSpeed }),
7411
+ ...(input.UploadSpeed != null && { UploadSpeed: input.UploadSpeed }),
6906
7412
  };
6907
7413
  };
6908
7414
  const serializeAws_restJson1BgpOptions = (input, context) => {
6909
7415
  return {
6910
- ...(input.PeerAsn !== undefined && input.PeerAsn !== null && { PeerAsn: input.PeerAsn }),
7416
+ ...(input.PeerAsn != null && { PeerAsn: input.PeerAsn }),
6911
7417
  };
6912
7418
  };
6913
7419
  const serializeAws_restJson1ConnectAttachmentOptions = (input, context) => {
6914
7420
  return {
6915
- ...(input.Protocol !== undefined && input.Protocol !== null && { Protocol: input.Protocol }),
7421
+ ...(input.Protocol != null && { Protocol: input.Protocol }),
6916
7422
  };
6917
7423
  };
6918
7424
  const serializeAws_restJson1ConstrainedStringList = (input, context) => {
@@ -6927,9 +7433,9 @@ const serializeAws_restJson1ConstrainedStringList = (input, context) => {
6927
7433
  };
6928
7434
  const serializeAws_restJson1CoreNetworkSegmentEdgeIdentifier = (input, context) => {
6929
7435
  return {
6930
- ...(input.CoreNetworkId !== undefined && input.CoreNetworkId !== null && { CoreNetworkId: input.CoreNetworkId }),
6931
- ...(input.EdgeLocation !== undefined && input.EdgeLocation !== null && { EdgeLocation: input.EdgeLocation }),
6932
- ...(input.SegmentName !== undefined && input.SegmentName !== null && { SegmentName: input.SegmentName }),
7436
+ ...(input.CoreNetworkId != null && { CoreNetworkId: input.CoreNetworkId }),
7437
+ ...(input.EdgeLocation != null && { EdgeLocation: input.EdgeLocation }),
7438
+ ...(input.SegmentName != null && { SegmentName: input.SegmentName }),
6933
7439
  };
6934
7440
  };
6935
7441
  const serializeAws_restJson1FilterMap = (input, context) => {
@@ -6955,9 +7461,9 @@ const serializeAws_restJson1FilterValues = (input, context) => {
6955
7461
  };
6956
7462
  const serializeAws_restJson1Location = (input, context) => {
6957
7463
  return {
6958
- ...(input.Address !== undefined && input.Address !== null && { Address: input.Address }),
6959
- ...(input.Latitude !== undefined && input.Latitude !== null && { Latitude: input.Latitude }),
6960
- ...(input.Longitude !== undefined && input.Longitude !== null && { Longitude: input.Longitude }),
7464
+ ...(input.Address != null && { Address: input.Address }),
7465
+ ...(input.Latitude != null && { Latitude: input.Latitude }),
7466
+ ...(input.Longitude != null && { Longitude: input.Longitude }),
6961
7467
  };
6962
7468
  };
6963
7469
  const serializeAws_restJson1NetworkResourceMetadataMap = (input, context) => {
@@ -6973,9 +7479,10 @@ const serializeAws_restJson1NetworkResourceMetadataMap = (input, context) => {
6973
7479
  };
6974
7480
  const serializeAws_restJson1RouteAnalysisEndpointOptionsSpecification = (input, context) => {
6975
7481
  return {
6976
- ...(input.IpAddress !== undefined && input.IpAddress !== null && { IpAddress: input.IpAddress }),
6977
- ...(input.TransitGatewayAttachmentArn !== undefined &&
6978
- input.TransitGatewayAttachmentArn !== null && { TransitGatewayAttachmentArn: input.TransitGatewayAttachmentArn }),
7482
+ ...(input.IpAddress != null && { IpAddress: input.IpAddress }),
7483
+ ...(input.TransitGatewayAttachmentArn != null && {
7484
+ TransitGatewayAttachmentArn: input.TransitGatewayAttachmentArn,
7485
+ }),
6979
7486
  };
6980
7487
  };
6981
7488
  const serializeAws_restJson1RouteStateList = (input, context) => {
@@ -6990,12 +7497,12 @@ const serializeAws_restJson1RouteStateList = (input, context) => {
6990
7497
  };
6991
7498
  const serializeAws_restJson1RouteTableIdentifier = (input, context) => {
6992
7499
  return {
6993
- ...(input.CoreNetworkSegmentEdge !== undefined &&
6994
- input.CoreNetworkSegmentEdge !== null && {
7500
+ ...(input.CoreNetworkSegmentEdge != null && {
6995
7501
  CoreNetworkSegmentEdge: serializeAws_restJson1CoreNetworkSegmentEdgeIdentifier(input.CoreNetworkSegmentEdge, context),
6996
7502
  }),
6997
- ...(input.TransitGatewayRouteTableArn !== undefined &&
6998
- input.TransitGatewayRouteTableArn !== null && { TransitGatewayRouteTableArn: input.TransitGatewayRouteTableArn }),
7503
+ ...(input.TransitGatewayRouteTableArn != null && {
7504
+ TransitGatewayRouteTableArn: input.TransitGatewayRouteTableArn,
7505
+ }),
6999
7506
  };
7000
7507
  };
7001
7508
  const serializeAws_restJson1RouteTypeList = (input, context) => {
@@ -7020,8 +7527,8 @@ const serializeAws_restJson1SubnetArnList = (input, context) => {
7020
7527
  };
7021
7528
  const serializeAws_restJson1Tag = (input, context) => {
7022
7529
  return {
7023
- ...(input.Key !== undefined && input.Key !== null && { Key: input.Key }),
7024
- ...(input.Value !== undefined && input.Value !== null && { Value: input.Value }),
7530
+ ...(input.Key != null && { Key: input.Key }),
7531
+ ...(input.Value != null && { Value: input.Value }),
7025
7532
  };
7026
7533
  };
7027
7534
  const serializeAws_restJson1TagList = (input, context) => {
@@ -7036,7 +7543,7 @@ const serializeAws_restJson1TagList = (input, context) => {
7036
7543
  };
7037
7544
  const serializeAws_restJson1VpcOptions = (input, context) => {
7038
7545
  return {
7039
- ...(input.Ipv6Support !== undefined && input.Ipv6Support !== null && { Ipv6Support: input.Ipv6Support }),
7546
+ ...(input.Ipv6Support != null && { Ipv6Support: input.Ipv6Support }),
7040
7547
  };
7041
7548
  };
7042
7549
  const deserializeAws_restJson1AccountStatus = (output, context) => {
@@ -7063,23 +7570,17 @@ const deserializeAws_restJson1Attachment = (output, context) => {
7063
7570
  AttachmentType: (0, smithy_client_1.expectString)(output.AttachmentType),
7064
7571
  CoreNetworkArn: (0, smithy_client_1.expectString)(output.CoreNetworkArn),
7065
7572
  CoreNetworkId: (0, smithy_client_1.expectString)(output.CoreNetworkId),
7066
- CreatedAt: output.CreatedAt !== undefined && output.CreatedAt !== null
7067
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedAt)))
7068
- : undefined,
7573
+ CreatedAt: output.CreatedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedAt))) : undefined,
7069
7574
  EdgeLocation: (0, smithy_client_1.expectString)(output.EdgeLocation),
7070
7575
  OwnerAccountId: (0, smithy_client_1.expectString)(output.OwnerAccountId),
7071
- ProposedSegmentChange: output.ProposedSegmentChange !== undefined && output.ProposedSegmentChange !== null
7576
+ ProposedSegmentChange: output.ProposedSegmentChange != null
7072
7577
  ? deserializeAws_restJson1ProposedSegmentChange(output.ProposedSegmentChange, context)
7073
7578
  : undefined,
7074
7579
  ResourceArn: (0, smithy_client_1.expectString)(output.ResourceArn),
7075
7580
  SegmentName: (0, smithy_client_1.expectString)(output.SegmentName),
7076
7581
  State: (0, smithy_client_1.expectString)(output.State),
7077
- Tags: output.Tags !== undefined && output.Tags !== null
7078
- ? deserializeAws_restJson1TagList(output.Tags, context)
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,
7582
+ Tags: output.Tags != null ? deserializeAws_restJson1TagList(output.Tags, context) : undefined,
7583
+ UpdatedAt: output.UpdatedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.UpdatedAt))) : undefined,
7083
7584
  };
7084
7585
  };
7085
7586
  const deserializeAws_restJson1AttachmentList = (output, context) => {
@@ -7107,12 +7608,8 @@ const deserializeAws_restJson1Bandwidth = (output, context) => {
7107
7608
  };
7108
7609
  const deserializeAws_restJson1ConnectAttachment = (output, context) => {
7109
7610
  return {
7110
- Attachment: output.Attachment !== undefined && output.Attachment !== null
7111
- ? deserializeAws_restJson1Attachment(output.Attachment, context)
7112
- : undefined,
7113
- Options: output.Options !== undefined && output.Options !== null
7114
- ? deserializeAws_restJson1ConnectAttachmentOptions(output.Options, context)
7115
- : undefined,
7611
+ Attachment: output.Attachment != null ? deserializeAws_restJson1Attachment(output.Attachment, context) : undefined,
7612
+ Options: output.Options != null ? deserializeAws_restJson1ConnectAttachmentOptions(output.Options, context) : undefined,
7116
7613
  TransportAttachmentId: (0, smithy_client_1.expectString)(output.TransportAttachmentId),
7117
7614
  };
7118
7615
  };
@@ -7127,25 +7624,19 @@ const deserializeAws_restJson1Connection = (output, context) => {
7127
7624
  ConnectedLinkId: (0, smithy_client_1.expectString)(output.ConnectedLinkId),
7128
7625
  ConnectionArn: (0, smithy_client_1.expectString)(output.ConnectionArn),
7129
7626
  ConnectionId: (0, smithy_client_1.expectString)(output.ConnectionId),
7130
- CreatedAt: output.CreatedAt !== undefined && output.CreatedAt !== null
7131
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedAt)))
7132
- : undefined,
7627
+ CreatedAt: output.CreatedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedAt))) : undefined,
7133
7628
  Description: (0, smithy_client_1.expectString)(output.Description),
7134
7629
  DeviceId: (0, smithy_client_1.expectString)(output.DeviceId),
7135
7630
  GlobalNetworkId: (0, smithy_client_1.expectString)(output.GlobalNetworkId),
7136
7631
  LinkId: (0, smithy_client_1.expectString)(output.LinkId),
7137
7632
  State: (0, smithy_client_1.expectString)(output.State),
7138
- Tags: output.Tags !== undefined && output.Tags !== null
7139
- ? deserializeAws_restJson1TagList(output.Tags, context)
7140
- : undefined,
7633
+ Tags: output.Tags != null ? deserializeAws_restJson1TagList(output.Tags, context) : undefined,
7141
7634
  };
7142
7635
  };
7143
7636
  const deserializeAws_restJson1ConnectionHealth = (output, context) => {
7144
7637
  return {
7145
7638
  Status: (0, smithy_client_1.expectString)(output.Status),
7146
- Timestamp: output.Timestamp !== undefined && output.Timestamp !== null
7147
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.Timestamp)))
7148
- : undefined,
7639
+ Timestamp: output.Timestamp != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.Timestamp))) : undefined,
7149
7640
  Type: (0, smithy_client_1.expectString)(output.Type),
7150
7641
  };
7151
7642
  };
@@ -7162,20 +7653,16 @@ const deserializeAws_restJson1ConnectionList = (output, context) => {
7162
7653
  };
7163
7654
  const deserializeAws_restJson1ConnectPeer = (output, context) => {
7164
7655
  return {
7165
- Configuration: output.Configuration !== undefined && output.Configuration !== null
7656
+ Configuration: output.Configuration != null
7166
7657
  ? deserializeAws_restJson1ConnectPeerConfiguration(output.Configuration, context)
7167
7658
  : undefined,
7168
7659
  ConnectAttachmentId: (0, smithy_client_1.expectString)(output.ConnectAttachmentId),
7169
7660
  ConnectPeerId: (0, smithy_client_1.expectString)(output.ConnectPeerId),
7170
7661
  CoreNetworkId: (0, smithy_client_1.expectString)(output.CoreNetworkId),
7171
- CreatedAt: output.CreatedAt !== undefined && output.CreatedAt !== null
7172
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedAt)))
7173
- : undefined,
7662
+ CreatedAt: output.CreatedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedAt))) : undefined,
7174
7663
  EdgeLocation: (0, smithy_client_1.expectString)(output.EdgeLocation),
7175
7664
  State: (0, smithy_client_1.expectString)(output.State),
7176
- Tags: output.Tags !== undefined && output.Tags !== null
7177
- ? deserializeAws_restJson1TagList(output.Tags, context)
7178
- : undefined,
7665
+ Tags: output.Tags != null ? deserializeAws_restJson1TagList(output.Tags, context) : undefined,
7179
7666
  };
7180
7667
  };
7181
7668
  const deserializeAws_restJson1ConnectPeerAssociation = (output, context) => {
@@ -7219,11 +7706,11 @@ const deserializeAws_restJson1ConnectPeerBgpConfigurationList = (output, context
7219
7706
  };
7220
7707
  const deserializeAws_restJson1ConnectPeerConfiguration = (output, context) => {
7221
7708
  return {
7222
- BgpConfigurations: output.BgpConfigurations !== undefined && output.BgpConfigurations !== null
7709
+ BgpConfigurations: output.BgpConfigurations != null
7223
7710
  ? deserializeAws_restJson1ConnectPeerBgpConfigurationList(output.BgpConfigurations, context)
7224
7711
  : undefined,
7225
7712
  CoreNetworkAddress: (0, smithy_client_1.expectString)(output.CoreNetworkAddress),
7226
- InsideCidrBlocks: output.InsideCidrBlocks !== undefined && output.InsideCidrBlocks !== null
7713
+ InsideCidrBlocks: output.InsideCidrBlocks != null
7227
7714
  ? deserializeAws_restJson1ConstrainedStringList(output.InsideCidrBlocks, context)
7228
7715
  : undefined,
7229
7716
  PeerAddress: (0, smithy_client_1.expectString)(output.PeerAddress),
@@ -7236,13 +7723,9 @@ const deserializeAws_restJson1ConnectPeerSummary = (output, context) => {
7236
7723
  ConnectPeerId: (0, smithy_client_1.expectString)(output.ConnectPeerId),
7237
7724
  ConnectPeerState: (0, smithy_client_1.expectString)(output.ConnectPeerState),
7238
7725
  CoreNetworkId: (0, smithy_client_1.expectString)(output.CoreNetworkId),
7239
- CreatedAt: output.CreatedAt !== undefined && output.CreatedAt !== null
7240
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedAt)))
7241
- : undefined,
7726
+ CreatedAt: output.CreatedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedAt))) : undefined,
7242
7727
  EdgeLocation: (0, smithy_client_1.expectString)(output.EdgeLocation),
7243
- Tags: output.Tags !== undefined && output.Tags !== null
7244
- ? deserializeAws_restJson1TagList(output.Tags, context)
7245
- : undefined,
7728
+ Tags: output.Tags != null ? deserializeAws_restJson1TagList(output.Tags, context) : undefined,
7246
7729
  };
7247
7730
  };
7248
7731
  const deserializeAws_restJson1ConnectPeerSummaryList = (output, context) => {
@@ -7271,36 +7754,56 @@ const deserializeAws_restJson1CoreNetwork = (output, context) => {
7271
7754
  return {
7272
7755
  CoreNetworkArn: (0, smithy_client_1.expectString)(output.CoreNetworkArn),
7273
7756
  CoreNetworkId: (0, smithy_client_1.expectString)(output.CoreNetworkId),
7274
- CreatedAt: output.CreatedAt !== undefined && output.CreatedAt !== null
7275
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedAt)))
7276
- : undefined,
7757
+ CreatedAt: output.CreatedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedAt))) : undefined,
7277
7758
  Description: (0, smithy_client_1.expectString)(output.Description),
7278
- Edges: output.Edges !== undefined && output.Edges !== null
7279
- ? deserializeAws_restJson1CoreNetworkEdgeList(output.Edges, context)
7280
- : undefined,
7759
+ Edges: output.Edges != null ? deserializeAws_restJson1CoreNetworkEdgeList(output.Edges, context) : undefined,
7281
7760
  GlobalNetworkId: (0, smithy_client_1.expectString)(output.GlobalNetworkId),
7282
- Segments: output.Segments !== undefined && output.Segments !== null
7283
- ? deserializeAws_restJson1CoreNetworkSegmentList(output.Segments, context)
7284
- : undefined,
7761
+ Segments: output.Segments != null ? deserializeAws_restJson1CoreNetworkSegmentList(output.Segments, context) : undefined,
7285
7762
  State: (0, smithy_client_1.expectString)(output.State),
7286
- Tags: output.Tags !== undefined && output.Tags !== null
7287
- ? deserializeAws_restJson1TagList(output.Tags, context)
7288
- : undefined,
7763
+ Tags: output.Tags != null ? deserializeAws_restJson1TagList(output.Tags, context) : undefined,
7289
7764
  };
7290
7765
  };
7291
7766
  const deserializeAws_restJson1CoreNetworkChange = (output, context) => {
7292
7767
  return {
7293
7768
  Action: (0, smithy_client_1.expectString)(output.Action),
7294
7769
  Identifier: (0, smithy_client_1.expectString)(output.Identifier),
7295
- NewValues: output.NewValues !== undefined && output.NewValues !== null
7296
- ? deserializeAws_restJson1CoreNetworkChangeValues(output.NewValues, context)
7297
- : undefined,
7298
- PreviousValues: output.PreviousValues !== undefined && output.PreviousValues !== null
7770
+ IdentifierPath: (0, smithy_client_1.expectString)(output.IdentifierPath),
7771
+ NewValues: output.NewValues != null ? deserializeAws_restJson1CoreNetworkChangeValues(output.NewValues, context) : undefined,
7772
+ PreviousValues: output.PreviousValues != null
7299
7773
  ? deserializeAws_restJson1CoreNetworkChangeValues(output.PreviousValues, context)
7300
7774
  : undefined,
7301
7775
  Type: (0, smithy_client_1.expectString)(output.Type),
7302
7776
  };
7303
7777
  };
7778
+ const deserializeAws_restJson1CoreNetworkChangeEvent = (output, context) => {
7779
+ return {
7780
+ Action: (0, smithy_client_1.expectString)(output.Action),
7781
+ EventTime: output.EventTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.EventTime))) : undefined,
7782
+ IdentifierPath: (0, smithy_client_1.expectString)(output.IdentifierPath),
7783
+ Status: (0, smithy_client_1.expectString)(output.Status),
7784
+ Type: (0, smithy_client_1.expectString)(output.Type),
7785
+ Values: output.Values != null ? deserializeAws_restJson1CoreNetworkChangeEventValues(output.Values, context) : undefined,
7786
+ };
7787
+ };
7788
+ const deserializeAws_restJson1CoreNetworkChangeEventList = (output, context) => {
7789
+ const retVal = (output || [])
7790
+ .filter((e) => e != null)
7791
+ .map((entry) => {
7792
+ if (entry === null) {
7793
+ return null;
7794
+ }
7795
+ return deserializeAws_restJson1CoreNetworkChangeEvent(entry, context);
7796
+ });
7797
+ return retVal;
7798
+ };
7799
+ const deserializeAws_restJson1CoreNetworkChangeEventValues = (output, context) => {
7800
+ return {
7801
+ AttachmentId: (0, smithy_client_1.expectString)(output.AttachmentId),
7802
+ Cidr: (0, smithy_client_1.expectString)(output.Cidr),
7803
+ EdgeLocation: (0, smithy_client_1.expectString)(output.EdgeLocation),
7804
+ SegmentName: (0, smithy_client_1.expectString)(output.SegmentName),
7805
+ };
7806
+ };
7304
7807
  const deserializeAws_restJson1CoreNetworkChangeList = (output, context) => {
7305
7808
  const retVal = (output || [])
7306
7809
  .filter((e) => e != null)
@@ -7317,14 +7820,14 @@ const deserializeAws_restJson1CoreNetworkChangeValues = (output, context) => {
7317
7820
  Asn: (0, smithy_client_1.expectLong)(output.Asn),
7318
7821
  Cidr: (0, smithy_client_1.expectString)(output.Cidr),
7319
7822
  DestinationIdentifier: (0, smithy_client_1.expectString)(output.DestinationIdentifier),
7320
- EdgeLocations: output.EdgeLocations !== undefined && output.EdgeLocations !== null
7823
+ EdgeLocations: output.EdgeLocations != null
7321
7824
  ? deserializeAws_restJson1ExternalRegionCodeList(output.EdgeLocations, context)
7322
7825
  : undefined,
7323
- InsideCidrBlocks: output.InsideCidrBlocks !== undefined && output.InsideCidrBlocks !== null
7826
+ InsideCidrBlocks: output.InsideCidrBlocks != null
7324
7827
  ? deserializeAws_restJson1ConstrainedStringList(output.InsideCidrBlocks, context)
7325
7828
  : undefined,
7326
7829
  SegmentName: (0, smithy_client_1.expectString)(output.SegmentName),
7327
- SharedSegments: output.SharedSegments !== undefined && output.SharedSegments !== null
7830
+ SharedSegments: output.SharedSegments != null
7328
7831
  ? deserializeAws_restJson1ConstrainedStringList(output.SharedSegments, context)
7329
7832
  : undefined,
7330
7833
  };
@@ -7333,7 +7836,7 @@ const deserializeAws_restJson1CoreNetworkEdge = (output, context) => {
7333
7836
  return {
7334
7837
  Asn: (0, smithy_client_1.expectLong)(output.Asn),
7335
7838
  EdgeLocation: (0, smithy_client_1.expectString)(output.EdgeLocation),
7336
- InsideCidrBlocks: output.InsideCidrBlocks !== undefined && output.InsideCidrBlocks !== null
7839
+ InsideCidrBlocks: output.InsideCidrBlocks != null
7337
7840
  ? deserializeAws_restJson1ConstrainedStringList(output.InsideCidrBlocks, context)
7338
7841
  : undefined,
7339
7842
  };
@@ -7354,14 +7857,10 @@ const deserializeAws_restJson1CoreNetworkPolicy = (output, context) => {
7354
7857
  Alias: (0, smithy_client_1.expectString)(output.Alias),
7355
7858
  ChangeSetState: (0, smithy_client_1.expectString)(output.ChangeSetState),
7356
7859
  CoreNetworkId: (0, smithy_client_1.expectString)(output.CoreNetworkId),
7357
- CreatedAt: output.CreatedAt !== undefined && output.CreatedAt !== null
7358
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedAt)))
7359
- : undefined,
7860
+ CreatedAt: output.CreatedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedAt))) : undefined,
7360
7861
  Description: (0, smithy_client_1.expectString)(output.Description),
7361
- PolicyDocument: output.PolicyDocument !== undefined && output.PolicyDocument !== null
7362
- ? new smithy_client_1.LazyJsonString(output.PolicyDocument)
7363
- : undefined,
7364
- PolicyErrors: output.PolicyErrors !== undefined && output.PolicyErrors !== null
7862
+ PolicyDocument: output.PolicyDocument != null ? new smithy_client_1.LazyJsonString(output.PolicyDocument) : undefined,
7863
+ PolicyErrors: output.PolicyErrors != null
7365
7864
  ? deserializeAws_restJson1CoreNetworkPolicyErrorList(output.PolicyErrors, context)
7366
7865
  : undefined,
7367
7866
  PolicyVersionId: (0, smithy_client_1.expectInt32)(output.PolicyVersionId),
@@ -7390,9 +7889,7 @@ const deserializeAws_restJson1CoreNetworkPolicyVersion = (output, context) => {
7390
7889
  Alias: (0, smithy_client_1.expectString)(output.Alias),
7391
7890
  ChangeSetState: (0, smithy_client_1.expectString)(output.ChangeSetState),
7392
7891
  CoreNetworkId: (0, smithy_client_1.expectString)(output.CoreNetworkId),
7393
- CreatedAt: output.CreatedAt !== undefined && output.CreatedAt !== null
7394
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedAt)))
7395
- : undefined,
7892
+ CreatedAt: output.CreatedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedAt))) : undefined,
7396
7893
  Description: (0, smithy_client_1.expectString)(output.Description),
7397
7894
  PolicyVersionId: (0, smithy_client_1.expectInt32)(output.PolicyVersionId),
7398
7895
  };
@@ -7410,11 +7907,11 @@ const deserializeAws_restJson1CoreNetworkPolicyVersionList = (output, context) =
7410
7907
  };
7411
7908
  const deserializeAws_restJson1CoreNetworkSegment = (output, context) => {
7412
7909
  return {
7413
- EdgeLocations: output.EdgeLocations !== undefined && output.EdgeLocations !== null
7910
+ EdgeLocations: output.EdgeLocations != null
7414
7911
  ? deserializeAws_restJson1ExternalRegionCodeList(output.EdgeLocations, context)
7415
7912
  : undefined,
7416
7913
  Name: (0, smithy_client_1.expectString)(output.Name),
7417
- SharedSegments: output.SharedSegments !== undefined && output.SharedSegments !== null
7914
+ SharedSegments: output.SharedSegments != null
7418
7915
  ? deserializeAws_restJson1ConstrainedStringList(output.SharedSegments, context)
7419
7916
  : undefined,
7420
7917
  };
@@ -7445,9 +7942,7 @@ const deserializeAws_restJson1CoreNetworkSummary = (output, context) => {
7445
7942
  GlobalNetworkId: (0, smithy_client_1.expectString)(output.GlobalNetworkId),
7446
7943
  OwnerAccountId: (0, smithy_client_1.expectString)(output.OwnerAccountId),
7447
7944
  State: (0, smithy_client_1.expectString)(output.State),
7448
- Tags: output.Tags !== undefined && output.Tags !== null
7449
- ? deserializeAws_restJson1TagList(output.Tags, context)
7450
- : undefined,
7945
+ Tags: output.Tags != null ? deserializeAws_restJson1TagList(output.Tags, context) : undefined,
7451
7946
  };
7452
7947
  };
7453
7948
  const deserializeAws_restJson1CoreNetworkSummaryList = (output, context) => {
@@ -7483,26 +7978,18 @@ const deserializeAws_restJson1CustomerGatewayAssociationList = (output, context)
7483
7978
  };
7484
7979
  const deserializeAws_restJson1Device = (output, context) => {
7485
7980
  return {
7486
- AWSLocation: output.AWSLocation !== undefined && output.AWSLocation !== null
7487
- ? deserializeAws_restJson1AWSLocation(output.AWSLocation, context)
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,
7981
+ AWSLocation: output.AWSLocation != null ? deserializeAws_restJson1AWSLocation(output.AWSLocation, context) : undefined,
7982
+ CreatedAt: output.CreatedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedAt))) : undefined,
7492
7983
  Description: (0, smithy_client_1.expectString)(output.Description),
7493
7984
  DeviceArn: (0, smithy_client_1.expectString)(output.DeviceArn),
7494
7985
  DeviceId: (0, smithy_client_1.expectString)(output.DeviceId),
7495
7986
  GlobalNetworkId: (0, smithy_client_1.expectString)(output.GlobalNetworkId),
7496
- Location: output.Location !== undefined && output.Location !== null
7497
- ? deserializeAws_restJson1Location(output.Location, context)
7498
- : undefined,
7987
+ Location: output.Location != null ? deserializeAws_restJson1Location(output.Location, context) : undefined,
7499
7988
  Model: (0, smithy_client_1.expectString)(output.Model),
7500
7989
  SerialNumber: (0, smithy_client_1.expectString)(output.SerialNumber),
7501
7990
  SiteId: (0, smithy_client_1.expectString)(output.SiteId),
7502
7991
  State: (0, smithy_client_1.expectString)(output.State),
7503
- Tags: output.Tags !== undefined && output.Tags !== null
7504
- ? deserializeAws_restJson1TagList(output.Tags, context)
7505
- : undefined,
7992
+ Tags: output.Tags != null ? deserializeAws_restJson1TagList(output.Tags, context) : undefined,
7506
7993
  Type: (0, smithy_client_1.expectString)(output.Type),
7507
7994
  Vendor: (0, smithy_client_1.expectString)(output.Vendor),
7508
7995
  };
@@ -7542,16 +8029,12 @@ const deserializeAws_restJson1ExternalRegionCodeList = (output, context) => {
7542
8029
  };
7543
8030
  const deserializeAws_restJson1GlobalNetwork = (output, context) => {
7544
8031
  return {
7545
- CreatedAt: output.CreatedAt !== undefined && output.CreatedAt !== null
7546
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedAt)))
7547
- : undefined,
8032
+ CreatedAt: output.CreatedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedAt))) : undefined,
7548
8033
  Description: (0, smithy_client_1.expectString)(output.Description),
7549
8034
  GlobalNetworkArn: (0, smithy_client_1.expectString)(output.GlobalNetworkArn),
7550
8035
  GlobalNetworkId: (0, smithy_client_1.expectString)(output.GlobalNetworkId),
7551
8036
  State: (0, smithy_client_1.expectString)(output.State),
7552
- Tags: output.Tags !== undefined && output.Tags !== null
7553
- ? deserializeAws_restJson1TagList(output.Tags, context)
7554
- : undefined,
8037
+ Tags: output.Tags != null ? deserializeAws_restJson1TagList(output.Tags, context) : undefined,
7555
8038
  };
7556
8039
  };
7557
8040
  const deserializeAws_restJson1GlobalNetworkList = (output, context) => {
@@ -7567,12 +8050,8 @@ const deserializeAws_restJson1GlobalNetworkList = (output, context) => {
7567
8050
  };
7568
8051
  const deserializeAws_restJson1Link = (output, context) => {
7569
8052
  return {
7570
- Bandwidth: output.Bandwidth !== undefined && output.Bandwidth !== null
7571
- ? deserializeAws_restJson1Bandwidth(output.Bandwidth, context)
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,
8053
+ Bandwidth: output.Bandwidth != null ? deserializeAws_restJson1Bandwidth(output.Bandwidth, context) : undefined,
8054
+ CreatedAt: output.CreatedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedAt))) : undefined,
7576
8055
  Description: (0, smithy_client_1.expectString)(output.Description),
7577
8056
  GlobalNetworkId: (0, smithy_client_1.expectString)(output.GlobalNetworkId),
7578
8057
  LinkArn: (0, smithy_client_1.expectString)(output.LinkArn),
@@ -7580,9 +8059,7 @@ const deserializeAws_restJson1Link = (output, context) => {
7580
8059
  Provider: (0, smithy_client_1.expectString)(output.Provider),
7581
8060
  SiteId: (0, smithy_client_1.expectString)(output.SiteId),
7582
8061
  State: (0, smithy_client_1.expectString)(output.State),
7583
- Tags: output.Tags !== undefined && output.Tags !== null
7584
- ? deserializeAws_restJson1TagList(output.Tags, context)
7585
- : undefined,
8062
+ Tags: output.Tags != null ? deserializeAws_restJson1TagList(output.Tags, context) : undefined,
7586
8063
  Type: (0, smithy_client_1.expectString)(output.Type),
7587
8064
  };
7588
8065
  };
@@ -7629,19 +8106,17 @@ const deserializeAws_restJson1NetworkResource = (output, context) => {
7629
8106
  AwsRegion: (0, smithy_client_1.expectString)(output.AwsRegion),
7630
8107
  CoreNetworkId: (0, smithy_client_1.expectString)(output.CoreNetworkId),
7631
8108
  Definition: (0, smithy_client_1.expectString)(output.Definition),
7632
- DefinitionTimestamp: output.DefinitionTimestamp !== undefined && output.DefinitionTimestamp !== null
8109
+ DefinitionTimestamp: output.DefinitionTimestamp != null
7633
8110
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.DefinitionTimestamp)))
7634
8111
  : undefined,
7635
- Metadata: output.Metadata !== undefined && output.Metadata !== null
8112
+ Metadata: output.Metadata != null
7636
8113
  ? deserializeAws_restJson1NetworkResourceMetadataMap(output.Metadata, context)
7637
8114
  : undefined,
7638
8115
  RegisteredGatewayArn: (0, smithy_client_1.expectString)(output.RegisteredGatewayArn),
7639
8116
  ResourceArn: (0, smithy_client_1.expectString)(output.ResourceArn),
7640
8117
  ResourceId: (0, smithy_client_1.expectString)(output.ResourceId),
7641
8118
  ResourceType: (0, smithy_client_1.expectString)(output.ResourceType),
7642
- Tags: output.Tags !== undefined && output.Tags !== null
7643
- ? deserializeAws_restJson1TagList(output.Tags, context)
7644
- : undefined,
8119
+ Tags: output.Tags != null ? deserializeAws_restJson1TagList(output.Tags, context) : undefined,
7645
8120
  };
7646
8121
  };
7647
8122
  const deserializeAws_restJson1NetworkResourceCount = (output, context) => {
@@ -7696,7 +8171,7 @@ const deserializeAws_restJson1NetworkResourceSummary = (output, context) => {
7696
8171
  const deserializeAws_restJson1NetworkRoute = (output, context) => {
7697
8172
  return {
7698
8173
  DestinationCidrBlock: (0, smithy_client_1.expectString)(output.DestinationCidrBlock),
7699
- Destinations: output.Destinations !== undefined && output.Destinations !== null
8174
+ Destinations: output.Destinations != null
7700
8175
  ? deserializeAws_restJson1NetworkRouteDestinationList(output.Destinations, context)
7701
8176
  : undefined,
7702
8177
  PrefixListId: (0, smithy_client_1.expectString)(output.PrefixListId),
@@ -7742,9 +8217,7 @@ const deserializeAws_restJson1NetworkTelemetry = (output, context) => {
7742
8217
  Address: (0, smithy_client_1.expectString)(output.Address),
7743
8218
  AwsRegion: (0, smithy_client_1.expectString)(output.AwsRegion),
7744
8219
  CoreNetworkId: (0, smithy_client_1.expectString)(output.CoreNetworkId),
7745
- Health: output.Health !== undefined && output.Health !== null
7746
- ? deserializeAws_restJson1ConnectionHealth(output.Health, context)
7747
- : undefined,
8220
+ Health: output.Health != null ? deserializeAws_restJson1ConnectionHealth(output.Health, context) : undefined,
7748
8221
  RegisteredGatewayArn: (0, smithy_client_1.expectString)(output.RegisteredGatewayArn),
7749
8222
  ResourceArn: (0, smithy_client_1.expectString)(output.ResourceArn),
7750
8223
  ResourceId: (0, smithy_client_1.expectString)(output.ResourceId),
@@ -7764,7 +8237,7 @@ const deserializeAws_restJson1NetworkTelemetryList = (output, context) => {
7764
8237
  };
7765
8238
  const deserializeAws_restJson1OrganizationStatus = (output, context) => {
7766
8239
  return {
7767
- AccountStatusList: output.AccountStatusList !== undefined && output.AccountStatusList !== null
8240
+ AccountStatusList: output.AccountStatusList != null
7768
8241
  ? deserializeAws_restJson1AccountStatusList(output.AccountStatusList, context)
7769
8242
  : undefined,
7770
8243
  OrganizationAwsServiceAccessStatus: (0, smithy_client_1.expectString)(output.OrganizationAwsServiceAccessStatus),
@@ -7775,9 +8248,7 @@ const deserializeAws_restJson1OrganizationStatus = (output, context) => {
7775
8248
  const deserializeAws_restJson1PathComponent = (output, context) => {
7776
8249
  return {
7777
8250
  DestinationCidrBlock: (0, smithy_client_1.expectString)(output.DestinationCidrBlock),
7778
- Resource: output.Resource !== undefined && output.Resource !== null
7779
- ? deserializeAws_restJson1NetworkResourceSummary(output.Resource, context)
7780
- : undefined,
8251
+ Resource: output.Resource != null ? deserializeAws_restJson1NetworkResourceSummary(output.Resource, context) : undefined,
7781
8252
  Sequence: (0, smithy_client_1.expectInt32)(output.Sequence),
7782
8253
  };
7783
8254
  };
@@ -7792,13 +8263,36 @@ const deserializeAws_restJson1PathComponentList = (output, context) => {
7792
8263
  });
7793
8264
  return retVal;
7794
8265
  };
8266
+ const deserializeAws_restJson1Peering = (output, context) => {
8267
+ return {
8268
+ CoreNetworkArn: (0, smithy_client_1.expectString)(output.CoreNetworkArn),
8269
+ CoreNetworkId: (0, smithy_client_1.expectString)(output.CoreNetworkId),
8270
+ CreatedAt: output.CreatedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedAt))) : undefined,
8271
+ EdgeLocation: (0, smithy_client_1.expectString)(output.EdgeLocation),
8272
+ OwnerAccountId: (0, smithy_client_1.expectString)(output.OwnerAccountId),
8273
+ PeeringId: (0, smithy_client_1.expectString)(output.PeeringId),
8274
+ PeeringType: (0, smithy_client_1.expectString)(output.PeeringType),
8275
+ ResourceArn: (0, smithy_client_1.expectString)(output.ResourceArn),
8276
+ State: (0, smithy_client_1.expectString)(output.State),
8277
+ Tags: output.Tags != null ? deserializeAws_restJson1TagList(output.Tags, context) : undefined,
8278
+ };
8279
+ };
8280
+ const deserializeAws_restJson1PeeringList = (output, context) => {
8281
+ const retVal = (output || [])
8282
+ .filter((e) => e != null)
8283
+ .map((entry) => {
8284
+ if (entry === null) {
8285
+ return null;
8286
+ }
8287
+ return deserializeAws_restJson1Peering(entry, context);
8288
+ });
8289
+ return retVal;
8290
+ };
7795
8291
  const deserializeAws_restJson1ProposedSegmentChange = (output, context) => {
7796
8292
  return {
7797
8293
  AttachmentPolicyRuleNumber: (0, smithy_client_1.expectInt32)(output.AttachmentPolicyRuleNumber),
7798
8294
  SegmentName: (0, smithy_client_1.expectString)(output.SegmentName),
7799
- Tags: output.Tags !== undefined && output.Tags !== null
7800
- ? deserializeAws_restJson1TagList(output.Tags, context)
7801
- : undefined,
8295
+ Tags: output.Tags != null ? deserializeAws_restJson1TagList(output.Tags, context) : undefined,
7802
8296
  };
7803
8297
  };
7804
8298
  const deserializeAws_restJson1ReasonContextMap = (output, context) => {
@@ -7831,23 +8325,17 @@ const deserializeAws_restJson1RelationshipList = (output, context) => {
7831
8325
  };
7832
8326
  const deserializeAws_restJson1RouteAnalysis = (output, context) => {
7833
8327
  return {
7834
- Destination: output.Destination !== undefined && output.Destination !== null
8328
+ Destination: output.Destination != null
7835
8329
  ? deserializeAws_restJson1RouteAnalysisEndpointOptions(output.Destination, context)
7836
8330
  : undefined,
7837
- ForwardPath: output.ForwardPath !== undefined && output.ForwardPath !== null
7838
- ? deserializeAws_restJson1RouteAnalysisPath(output.ForwardPath, context)
7839
- : undefined,
8331
+ ForwardPath: output.ForwardPath != null ? deserializeAws_restJson1RouteAnalysisPath(output.ForwardPath, context) : undefined,
7840
8332
  GlobalNetworkId: (0, smithy_client_1.expectString)(output.GlobalNetworkId),
7841
8333
  IncludeReturnPath: (0, smithy_client_1.expectBoolean)(output.IncludeReturnPath),
7842
8334
  OwnerAccountId: (0, smithy_client_1.expectString)(output.OwnerAccountId),
7843
- ReturnPath: output.ReturnPath !== undefined && output.ReturnPath !== null
7844
- ? deserializeAws_restJson1RouteAnalysisPath(output.ReturnPath, context)
7845
- : undefined,
8335
+ ReturnPath: output.ReturnPath != null ? deserializeAws_restJson1RouteAnalysisPath(output.ReturnPath, context) : undefined,
7846
8336
  RouteAnalysisId: (0, smithy_client_1.expectString)(output.RouteAnalysisId),
7847
- Source: output.Source !== undefined && output.Source !== null
7848
- ? deserializeAws_restJson1RouteAnalysisEndpointOptions(output.Source, context)
7849
- : undefined,
7850
- StartTimestamp: output.StartTimestamp !== undefined && output.StartTimestamp !== null
8337
+ Source: output.Source != null ? deserializeAws_restJson1RouteAnalysisEndpointOptions(output.Source, context) : undefined,
8338
+ StartTimestamp: output.StartTimestamp != null
7851
8339
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.StartTimestamp)))
7852
8340
  : undefined,
7853
8341
  Status: (0, smithy_client_1.expectString)(output.Status),
@@ -7857,7 +8345,7 @@ const deserializeAws_restJson1RouteAnalysis = (output, context) => {
7857
8345
  const deserializeAws_restJson1RouteAnalysisCompletion = (output, context) => {
7858
8346
  return {
7859
8347
  ReasonCode: (0, smithy_client_1.expectString)(output.ReasonCode),
7860
- ReasonContext: output.ReasonContext !== undefined && output.ReasonContext !== null
8348
+ ReasonContext: output.ReasonContext != null
7861
8349
  ? deserializeAws_restJson1ReasonContextMap(output.ReasonContext, context)
7862
8350
  : undefined,
7863
8351
  ResultCode: (0, smithy_client_1.expectString)(output.ResultCode),
@@ -7872,30 +8360,22 @@ const deserializeAws_restJson1RouteAnalysisEndpointOptions = (output, context) =
7872
8360
  };
7873
8361
  const deserializeAws_restJson1RouteAnalysisPath = (output, context) => {
7874
8362
  return {
7875
- CompletionStatus: output.CompletionStatus !== undefined && output.CompletionStatus !== null
8363
+ CompletionStatus: output.CompletionStatus != null
7876
8364
  ? deserializeAws_restJson1RouteAnalysisCompletion(output.CompletionStatus, context)
7877
8365
  : undefined,
7878
- Path: output.Path !== undefined && output.Path !== null
7879
- ? deserializeAws_restJson1PathComponentList(output.Path, context)
7880
- : undefined,
8366
+ Path: output.Path != null ? deserializeAws_restJson1PathComponentList(output.Path, context) : undefined,
7881
8367
  };
7882
8368
  };
7883
8369
  const deserializeAws_restJson1Site = (output, context) => {
7884
8370
  return {
7885
- CreatedAt: output.CreatedAt !== undefined && output.CreatedAt !== null
7886
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedAt)))
7887
- : undefined,
8371
+ CreatedAt: output.CreatedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedAt))) : undefined,
7888
8372
  Description: (0, smithy_client_1.expectString)(output.Description),
7889
8373
  GlobalNetworkId: (0, smithy_client_1.expectString)(output.GlobalNetworkId),
7890
- Location: output.Location !== undefined && output.Location !== null
7891
- ? deserializeAws_restJson1Location(output.Location, context)
7892
- : undefined,
8374
+ Location: output.Location != null ? deserializeAws_restJson1Location(output.Location, context) : undefined,
7893
8375
  SiteArn: (0, smithy_client_1.expectString)(output.SiteArn),
7894
8376
  SiteId: (0, smithy_client_1.expectString)(output.SiteId),
7895
8377
  State: (0, smithy_client_1.expectString)(output.State),
7896
- Tags: output.Tags !== undefined && output.Tags !== null
7897
- ? deserializeAws_restJson1TagList(output.Tags, context)
7898
- : undefined,
8378
+ Tags: output.Tags != null ? deserializeAws_restJson1TagList(output.Tags, context) : undefined,
7899
8379
  };
7900
8380
  };
7901
8381
  const deserializeAws_restJson1SiteList = (output, context) => {
@@ -7911,9 +8391,7 @@ const deserializeAws_restJson1SiteList = (output, context) => {
7911
8391
  };
7912
8392
  const deserializeAws_restJson1SiteToSiteVpnAttachment = (output, context) => {
7913
8393
  return {
7914
- Attachment: output.Attachment !== undefined && output.Attachment !== null
7915
- ? deserializeAws_restJson1Attachment(output.Attachment, context)
7916
- : undefined,
8394
+ Attachment: output.Attachment != null ? deserializeAws_restJson1Attachment(output.Attachment, context) : undefined,
7917
8395
  VpnConnectionArn: (0, smithy_client_1.expectString)(output.VpnConnectionArn),
7918
8396
  };
7919
8397
  };
@@ -7965,10 +8443,16 @@ const deserializeAws_restJson1TransitGatewayConnectPeerAssociationList = (output
7965
8443
  });
7966
8444
  return retVal;
7967
8445
  };
8446
+ const deserializeAws_restJson1TransitGatewayPeering = (output, context) => {
8447
+ return {
8448
+ Peering: output.Peering != null ? deserializeAws_restJson1Peering(output.Peering, context) : undefined,
8449
+ TransitGatewayArn: (0, smithy_client_1.expectString)(output.TransitGatewayArn),
8450
+ };
8451
+ };
7968
8452
  const deserializeAws_restJson1TransitGatewayRegistration = (output, context) => {
7969
8453
  return {
7970
8454
  GlobalNetworkId: (0, smithy_client_1.expectString)(output.GlobalNetworkId),
7971
- State: output.State !== undefined && output.State !== null
8455
+ State: output.State != null
7972
8456
  ? deserializeAws_restJson1TransitGatewayRegistrationStateReason(output.State, context)
7973
8457
  : undefined,
7974
8458
  TransitGatewayArn: (0, smithy_client_1.expectString)(output.TransitGatewayArn),
@@ -7991,6 +8475,13 @@ const deserializeAws_restJson1TransitGatewayRegistrationStateReason = (output, c
7991
8475
  Message: (0, smithy_client_1.expectString)(output.Message),
7992
8476
  };
7993
8477
  };
8478
+ const deserializeAws_restJson1TransitGatewayRouteTableAttachment = (output, context) => {
8479
+ return {
8480
+ Attachment: output.Attachment != null ? deserializeAws_restJson1Attachment(output.Attachment, context) : undefined,
8481
+ PeeringId: (0, smithy_client_1.expectString)(output.PeeringId),
8482
+ TransitGatewayRouteTableArn: (0, smithy_client_1.expectString)(output.TransitGatewayRouteTableArn),
8483
+ };
8484
+ };
7994
8485
  const deserializeAws_restJson1ValidationExceptionField = (output, context) => {
7995
8486
  return {
7996
8487
  Message: (0, smithy_client_1.expectString)(output.Message),
@@ -8010,15 +8501,9 @@ const deserializeAws_restJson1ValidationExceptionFieldList = (output, context) =
8010
8501
  };
8011
8502
  const deserializeAws_restJson1VpcAttachment = (output, context) => {
8012
8503
  return {
8013
- Attachment: output.Attachment !== undefined && output.Attachment !== null
8014
- ? deserializeAws_restJson1Attachment(output.Attachment, context)
8015
- : undefined,
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,
8504
+ Attachment: output.Attachment != null ? deserializeAws_restJson1Attachment(output.Attachment, context) : undefined,
8505
+ Options: output.Options != null ? deserializeAws_restJson1VpcOptions(output.Options, context) : undefined,
8506
+ SubnetArns: output.SubnetArns != null ? deserializeAws_restJson1SubnetArnList(output.SubnetArns, context) : undefined,
8022
8507
  };
8023
8508
  };
8024
8509
  const deserializeAws_restJson1VpcOptions = (output, context) => {
@@ -8057,6 +8542,9 @@ const loadRestJsonErrorCode = (output, data) => {
8057
8542
  const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
8058
8543
  const sanitizeErrorCode = (rawValue) => {
8059
8544
  let cleanValue = rawValue;
8545
+ if (typeof cleanValue === "number") {
8546
+ cleanValue = cleanValue.toString();
8547
+ }
8060
8548
  if (cleanValue.indexOf(":") >= 0) {
8061
8549
  cleanValue = cleanValue.split(":")[0];
8062
8550
  }