@aws-sdk/client-networkmanager 3.127.0 → 3.128.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 +11 -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 +652 -22
  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 +809 -1
  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 +6 -6
@@ -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");
@@ -448,6 +448,58 @@ const serializeAws_restJson1CreateSiteToSiteVpnAttachmentCommand = async (input,
448
448
  });
449
449
  };
450
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;
451
503
  const serializeAws_restJson1CreateVpcAttachmentCommand = async (input, context) => {
452
504
  var _a;
453
505
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
@@ -727,6 +779,32 @@ const serializeAws_restJson1DeleteLinkCommand = async (input, context) => {
727
779
  });
728
780
  };
729
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;
730
808
  const serializeAws_restJson1DeleteResourcePolicyCommand = async (input, context) => {
731
809
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
732
810
  const headers = {};
@@ -1180,6 +1258,48 @@ const serializeAws_restJson1GetCoreNetworkCommand = async (input, context) => {
1180
1258
  });
1181
1259
  };
1182
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;
1183
1303
  const serializeAws_restJson1GetCoreNetworkChangeSetCommand = async (input, context) => {
1184
1304
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1185
1305
  const headers = {};
@@ -1750,6 +1870,32 @@ const serializeAws_restJson1GetTransitGatewayConnectPeerAssociationsCommand = as
1750
1870
  });
1751
1871
  };
1752
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;
1753
1899
  const serializeAws_restJson1GetTransitGatewayRegistrationsCommand = async (input, context) => {
1754
1900
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1755
1901
  const headers = {};
@@ -1785,6 +1931,33 @@ const serializeAws_restJson1GetTransitGatewayRegistrationsCommand = async (input
1785
1931
  });
1786
1932
  };
1787
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;
1788
1961
  const serializeAws_restJson1GetVpcAttachmentCommand = async (input, context) => {
1789
1962
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1790
1963
  const headers = {};
@@ -1933,6 +2106,31 @@ const serializeAws_restJson1ListOrganizationServiceAccessStatusCommand = async (
1933
2106
  });
1934
2107
  };
1935
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;
1936
2134
  const serializeAws_restJson1ListTagsForResourceCommand = async (input, context) => {
1937
2135
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1938
2136
  const headers = {};
@@ -3332,6 +3530,112 @@ const deserializeAws_restJson1CreateSiteToSiteVpnAttachmentCommandError = async
3332
3530
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
3333
3531
  }
3334
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
+ };
3335
3639
  const deserializeAws_restJson1CreateVpcAttachmentCommand = async (output, context) => {
3336
3640
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3337
3641
  return deserializeAws_restJson1CreateVpcAttachmentCommandError(output, context);
@@ -3659,13 +3963,66 @@ const deserializeAws_restJson1DeleteDeviceCommand = async (output, context) => {
3659
3963
  Device: undefined,
3660
3964
  };
3661
3965
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
3662
- if (data.Device !== undefined && data.Device !== null) {
3663
- contents.Device = deserializeAws_restJson1Device(data.Device, context);
3966
+ if (data.Device !== undefined && data.Device !== null) {
3967
+ contents.Device = deserializeAws_restJson1Device(data.Device, context);
3968
+ }
3969
+ return Promise.resolve(contents);
3970
+ };
3971
+ exports.deserializeAws_restJson1DeleteDeviceCommand = deserializeAws_restJson1DeleteDeviceCommand;
3972
+ const deserializeAws_restJson1DeleteDeviceCommandError = async (output, context) => {
3973
+ const parsedOutput = {
3974
+ ...output,
3975
+ body: await parseBody(output.body, context),
3976
+ };
3977
+ let response;
3978
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3979
+ switch (errorCode) {
3980
+ case "AccessDeniedException":
3981
+ case "com.amazonaws.networkmanager#AccessDeniedException":
3982
+ throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
3983
+ case "ConflictException":
3984
+ case "com.amazonaws.networkmanager#ConflictException":
3985
+ throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
3986
+ case "InternalServerException":
3987
+ case "com.amazonaws.networkmanager#InternalServerException":
3988
+ throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
3989
+ case "ResourceNotFoundException":
3990
+ case "com.amazonaws.networkmanager#ResourceNotFoundException":
3991
+ throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
3992
+ case "ThrottlingException":
3993
+ case "com.amazonaws.networkmanager#ThrottlingException":
3994
+ throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
3995
+ case "ValidationException":
3996
+ case "com.amazonaws.networkmanager#ValidationException":
3997
+ throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
3998
+ default:
3999
+ const parsedBody = parsedOutput.body;
4000
+ const $metadata = deserializeMetadata(output);
4001
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
4002
+ response = new NetworkManagerServiceException_1.NetworkManagerServiceException({
4003
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
4004
+ $fault: "client",
4005
+ $metadata,
4006
+ });
4007
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
4008
+ }
4009
+ };
4010
+ const deserializeAws_restJson1DeleteGlobalNetworkCommand = async (output, context) => {
4011
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
4012
+ return deserializeAws_restJson1DeleteGlobalNetworkCommandError(output, context);
4013
+ }
4014
+ const contents = {
4015
+ $metadata: deserializeMetadata(output),
4016
+ GlobalNetwork: undefined,
4017
+ };
4018
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
4019
+ if (data.GlobalNetwork !== undefined && data.GlobalNetwork !== null) {
4020
+ contents.GlobalNetwork = deserializeAws_restJson1GlobalNetwork(data.GlobalNetwork, context);
3664
4021
  }
3665
4022
  return Promise.resolve(contents);
3666
4023
  };
3667
- exports.deserializeAws_restJson1DeleteDeviceCommand = deserializeAws_restJson1DeleteDeviceCommand;
3668
- const deserializeAws_restJson1DeleteDeviceCommandError = async (output, context) => {
4024
+ exports.deserializeAws_restJson1DeleteGlobalNetworkCommand = deserializeAws_restJson1DeleteGlobalNetworkCommand;
4025
+ const deserializeAws_restJson1DeleteGlobalNetworkCommandError = async (output, context) => {
3669
4026
  const parsedOutput = {
3670
4027
  ...output,
3671
4028
  body: await parseBody(output.body, context),
@@ -3703,22 +4060,22 @@ const deserializeAws_restJson1DeleteDeviceCommandError = async (output, context)
3703
4060
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
3704
4061
  }
3705
4062
  };
3706
- const deserializeAws_restJson1DeleteGlobalNetworkCommand = async (output, context) => {
4063
+ const deserializeAws_restJson1DeleteLinkCommand = async (output, context) => {
3707
4064
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3708
- return deserializeAws_restJson1DeleteGlobalNetworkCommandError(output, context);
4065
+ return deserializeAws_restJson1DeleteLinkCommandError(output, context);
3709
4066
  }
3710
4067
  const contents = {
3711
4068
  $metadata: deserializeMetadata(output),
3712
- GlobalNetwork: undefined,
4069
+ Link: undefined,
3713
4070
  };
3714
4071
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
3715
- if (data.GlobalNetwork !== undefined && data.GlobalNetwork !== null) {
3716
- contents.GlobalNetwork = deserializeAws_restJson1GlobalNetwork(data.GlobalNetwork, context);
4072
+ if (data.Link !== undefined && data.Link !== null) {
4073
+ contents.Link = deserializeAws_restJson1Link(data.Link, context);
3717
4074
  }
3718
4075
  return Promise.resolve(contents);
3719
4076
  };
3720
- exports.deserializeAws_restJson1DeleteGlobalNetworkCommand = deserializeAws_restJson1DeleteGlobalNetworkCommand;
3721
- const deserializeAws_restJson1DeleteGlobalNetworkCommandError = async (output, context) => {
4077
+ exports.deserializeAws_restJson1DeleteLinkCommand = deserializeAws_restJson1DeleteLinkCommand;
4078
+ const deserializeAws_restJson1DeleteLinkCommandError = async (output, context) => {
3722
4079
  const parsedOutput = {
3723
4080
  ...output,
3724
4081
  body: await parseBody(output.body, context),
@@ -3756,22 +4113,22 @@ const deserializeAws_restJson1DeleteGlobalNetworkCommandError = async (output, c
3756
4113
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
3757
4114
  }
3758
4115
  };
3759
- const deserializeAws_restJson1DeleteLinkCommand = async (output, context) => {
4116
+ const deserializeAws_restJson1DeletePeeringCommand = async (output, context) => {
3760
4117
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3761
- return deserializeAws_restJson1DeleteLinkCommandError(output, context);
4118
+ return deserializeAws_restJson1DeletePeeringCommandError(output, context);
3762
4119
  }
3763
4120
  const contents = {
3764
4121
  $metadata: deserializeMetadata(output),
3765
- Link: undefined,
4122
+ Peering: undefined,
3766
4123
  };
3767
4124
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
3768
- if (data.Link !== undefined && data.Link !== null) {
3769
- contents.Link = deserializeAws_restJson1Link(data.Link, context);
4125
+ if (data.Peering !== undefined && data.Peering !== null) {
4126
+ contents.Peering = deserializeAws_restJson1Peering(data.Peering, context);
3770
4127
  }
3771
4128
  return Promise.resolve(contents);
3772
4129
  };
3773
- exports.deserializeAws_restJson1DeleteLinkCommand = deserializeAws_restJson1DeleteLinkCommand;
3774
- const deserializeAws_restJson1DeleteLinkCommandError = async (output, context) => {
4130
+ exports.deserializeAws_restJson1DeletePeeringCommand = deserializeAws_restJson1DeletePeeringCommand;
4131
+ const deserializeAws_restJson1DeletePeeringCommandError = async (output, context) => {
3775
4132
  const parsedOutput = {
3776
4133
  ...output,
3777
4134
  body: await parseBody(output.body, context),
@@ -4537,6 +4894,60 @@ const deserializeAws_restJson1GetCoreNetworkCommandError = async (output, contex
4537
4894
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
4538
4895
  }
4539
4896
  };
4897
+ const deserializeAws_restJson1GetCoreNetworkChangeEventsCommand = async (output, context) => {
4898
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
4899
+ return deserializeAws_restJson1GetCoreNetworkChangeEventsCommandError(output, context);
4900
+ }
4901
+ const contents = {
4902
+ $metadata: deserializeMetadata(output),
4903
+ CoreNetworkChangeEvents: undefined,
4904
+ NextToken: undefined,
4905
+ };
4906
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
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);
4912
+ }
4913
+ return Promise.resolve(contents);
4914
+ };
4915
+ exports.deserializeAws_restJson1GetCoreNetworkChangeEventsCommand = deserializeAws_restJson1GetCoreNetworkChangeEventsCommand;
4916
+ const deserializeAws_restJson1GetCoreNetworkChangeEventsCommandError = async (output, context) => {
4917
+ const parsedOutput = {
4918
+ ...output,
4919
+ body: await parseBody(output.body, context),
4920
+ };
4921
+ let response;
4922
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4923
+ switch (errorCode) {
4924
+ case "AccessDeniedException":
4925
+ case "com.amazonaws.networkmanager#AccessDeniedException":
4926
+ throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
4927
+ case "InternalServerException":
4928
+ case "com.amazonaws.networkmanager#InternalServerException":
4929
+ throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
4930
+ case "ResourceNotFoundException":
4931
+ case "com.amazonaws.networkmanager#ResourceNotFoundException":
4932
+ throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
4933
+ case "ThrottlingException":
4934
+ case "com.amazonaws.networkmanager#ThrottlingException":
4935
+ throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
4936
+ case "ValidationException":
4937
+ case "com.amazonaws.networkmanager#ValidationException":
4938
+ throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
4939
+ default:
4940
+ const parsedBody = parsedOutput.body;
4941
+ const $metadata = deserializeMetadata(output);
4942
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
4943
+ response = new NetworkManagerServiceException_1.NetworkManagerServiceException({
4944
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
4945
+ $fault: "client",
4946
+ $metadata,
4947
+ });
4948
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
4949
+ }
4950
+ };
4540
4951
  const deserializeAws_restJson1GetCoreNetworkChangeSetCommand = async (output, context) => {
4541
4952
  if (output.statusCode !== 200 && output.statusCode >= 300) {
4542
4953
  return deserializeAws_restJson1GetCoreNetworkChangeSetCommandError(output, context);
@@ -5397,6 +5808,56 @@ const deserializeAws_restJson1GetTransitGatewayConnectPeerAssociationsCommandErr
5397
5808
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
5398
5809
  }
5399
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
+ };
5400
5861
  const deserializeAws_restJson1GetTransitGatewayRegistrationsCommand = async (output, context) => {
5401
5862
  if (output.statusCode !== 200 && output.statusCode >= 300) {
5402
5863
  return deserializeAws_restJson1GetTransitGatewayRegistrationsCommandError(output, context);
@@ -5451,6 +5912,56 @@ const deserializeAws_restJson1GetTransitGatewayRegistrationsCommandError = async
5451
5912
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
5452
5913
  }
5453
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
+ };
5454
5965
  const deserializeAws_restJson1GetVpcAttachmentCommand = async (output, context) => {
5455
5966
  if (output.statusCode !== 200 && output.statusCode >= 300) {
5456
5967
  return deserializeAws_restJson1GetVpcAttachmentCommandError(output, context);
@@ -5747,6 +6258,57 @@ const deserializeAws_restJson1ListOrganizationServiceAccessStatusCommandError =
5747
6258
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
5748
6259
  }
5749
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
+ };
5750
6312
  const deserializeAws_restJson1ListTagsForResourceCommand = async (output, context) => {
5751
6313
  if (output.statusCode !== 200 && output.statusCode >= 300) {
5752
6314
  return deserializeAws_restJson1ListTagsForResourceCommandError(output, context);
@@ -7205,6 +7767,7 @@ const deserializeAws_restJson1CoreNetworkChange = (output, context) => {
7205
7767
  return {
7206
7768
  Action: (0, smithy_client_1.expectString)(output.Action),
7207
7769
  Identifier: (0, smithy_client_1.expectString)(output.Identifier),
7770
+ IdentifierPath: (0, smithy_client_1.expectString)(output.IdentifierPath),
7208
7771
  NewValues: output.NewValues != null ? deserializeAws_restJson1CoreNetworkChangeValues(output.NewValues, context) : undefined,
7209
7772
  PreviousValues: output.PreviousValues != null
7210
7773
  ? deserializeAws_restJson1CoreNetworkChangeValues(output.PreviousValues, context)
@@ -7212,6 +7775,35 @@ const deserializeAws_restJson1CoreNetworkChange = (output, context) => {
7212
7775
  Type: (0, smithy_client_1.expectString)(output.Type),
7213
7776
  };
7214
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
+ };
7215
7807
  const deserializeAws_restJson1CoreNetworkChangeList = (output, context) => {
7216
7808
  const retVal = (output || [])
7217
7809
  .filter((e) => e != null)
@@ -7671,6 +8263,31 @@ const deserializeAws_restJson1PathComponentList = (output, context) => {
7671
8263
  });
7672
8264
  return retVal;
7673
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
+ };
7674
8291
  const deserializeAws_restJson1ProposedSegmentChange = (output, context) => {
7675
8292
  return {
7676
8293
  AttachmentPolicyRuleNumber: (0, smithy_client_1.expectInt32)(output.AttachmentPolicyRuleNumber),
@@ -7826,6 +8443,12 @@ const deserializeAws_restJson1TransitGatewayConnectPeerAssociationList = (output
7826
8443
  });
7827
8444
  return retVal;
7828
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
+ };
7829
8452
  const deserializeAws_restJson1TransitGatewayRegistration = (output, context) => {
7830
8453
  return {
7831
8454
  GlobalNetworkId: (0, smithy_client_1.expectString)(output.GlobalNetworkId),
@@ -7852,6 +8475,13 @@ const deserializeAws_restJson1TransitGatewayRegistrationStateReason = (output, c
7852
8475
  Message: (0, smithy_client_1.expectString)(output.Message),
7853
8476
  };
7854
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
+ };
7855
8485
  const deserializeAws_restJson1ValidationExceptionField = (output, context) => {
7856
8486
  return {
7857
8487
  Message: (0, smithy_client_1.expectString)(output.Message),