@aws-sdk/client-networkmanager 3.95.0 → 3.98.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +11 -0
- package/README.md +1 -2
- package/dist-cjs/NetworkManager.js +30 -0
- package/dist-cjs/commands/ListOrganizationServiceAccessStatusCommand.js +36 -0
- package/dist-cjs/commands/StartOrganizationServiceAccessUpdateCommand.js +36 -0
- package/dist-cjs/commands/index.js +2 -0
- package/dist-cjs/models/models_0.js +41 -5
- package/dist-cjs/protocols/Aws_restJson1.js +162 -3
- package/dist-es/NetworkManager.js +30 -0
- package/dist-es/commands/ListOrganizationServiceAccessStatusCommand.js +39 -0
- package/dist-es/commands/StartOrganizationServiceAccessUpdateCommand.js +39 -0
- package/dist-es/commands/index.js +2 -0
- package/dist-es/models/models_0.js +24 -0
- package/dist-es/protocols/Aws_restJson1.js +205 -0
- package/dist-types/NetworkManager.d.ts +15 -8
- package/dist-types/NetworkManagerClient.d.ts +5 -4
- package/dist-types/commands/AssociateCustomerGatewayCommand.d.ts +2 -2
- package/dist-types/commands/CreateConnectPeerCommand.d.ts +1 -1
- package/dist-types/commands/CreateSiteToSiteVpnAttachmentCommand.d.ts +1 -1
- package/dist-types/commands/DeleteGlobalNetworkCommand.d.ts +1 -1
- package/dist-types/commands/GetCoreNetworkCommand.d.ts +1 -1
- package/dist-types/commands/ListOrganizationServiceAccessStatusCommand.d.ts +18 -0
- package/dist-types/commands/StartOrganizationServiceAccessUpdateCommand.d.ts +18 -0
- package/dist-types/commands/index.d.ts +2 -0
- package/dist-types/models/models_0.d.ts +61 -1
- package/dist-types/protocols/Aws_restJson1.d.ts +6 -0
- package/dist-types/ts3.4/NetworkManager.d.ts +8 -0
- package/dist-types/ts3.4/NetworkManagerClient.d.ts +4 -2
- package/dist-types/ts3.4/commands/ListOrganizationServiceAccessStatusCommand.d.ts +16 -0
- package/dist-types/ts3.4/commands/StartOrganizationServiceAccessUpdateCommand.d.ts +16 -0
- package/dist-types/ts3.4/commands/index.d.ts +2 -0
- package/dist-types/ts3.4/models/models_0.d.ts +48 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +6 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,17 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [3.98.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.97.0...v3.98.0) (2022-05-24)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **client-networkmanager:** This release adds Multi Account API support for a TGW Global Network, to enable and disable AWSServiceAccess with AwsOrganizations for Network Manager service and dependency CloudFormation StackSets service. ([2b041ea](https://github.com/aws/aws-sdk-js-v3/commit/2b041eabeac3913deadbc83a45530c79cc1bab15))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
# [3.95.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.94.0...v3.95.0) (2022-05-19)
|
|
7
18
|
|
|
8
19
|
**Note:** Version bump only for package @aws-sdk/client-networkmanager
|
package/README.md
CHANGED
|
@@ -9,8 +9,7 @@
|
|
|
9
9
|
|
|
10
10
|
AWS SDK for JavaScript NetworkManager Client for Node.js, Browser and React Native.
|
|
11
11
|
|
|
12
|
-
<p>
|
|
13
|
-
Amazon Web Services and on-premises networks that are built around transit gateways.</p>
|
|
12
|
+
<p>Amazon Web Services enables you to centrally manage your Amazon Web Services Cloud WAN core network and your Transit Gateway network across Amazon Web Services accounts, Regions, and on-premises locations.</p>
|
|
14
13
|
|
|
15
14
|
## Installing
|
|
16
15
|
|
|
@@ -60,12 +60,14 @@ const ListAttachmentsCommand_1 = require("./commands/ListAttachmentsCommand");
|
|
|
60
60
|
const ListConnectPeersCommand_1 = require("./commands/ListConnectPeersCommand");
|
|
61
61
|
const ListCoreNetworkPolicyVersionsCommand_1 = require("./commands/ListCoreNetworkPolicyVersionsCommand");
|
|
62
62
|
const ListCoreNetworksCommand_1 = require("./commands/ListCoreNetworksCommand");
|
|
63
|
+
const ListOrganizationServiceAccessStatusCommand_1 = require("./commands/ListOrganizationServiceAccessStatusCommand");
|
|
63
64
|
const ListTagsForResourceCommand_1 = require("./commands/ListTagsForResourceCommand");
|
|
64
65
|
const PutCoreNetworkPolicyCommand_1 = require("./commands/PutCoreNetworkPolicyCommand");
|
|
65
66
|
const PutResourcePolicyCommand_1 = require("./commands/PutResourcePolicyCommand");
|
|
66
67
|
const RegisterTransitGatewayCommand_1 = require("./commands/RegisterTransitGatewayCommand");
|
|
67
68
|
const RejectAttachmentCommand_1 = require("./commands/RejectAttachmentCommand");
|
|
68
69
|
const RestoreCoreNetworkPolicyVersionCommand_1 = require("./commands/RestoreCoreNetworkPolicyVersionCommand");
|
|
70
|
+
const StartOrganizationServiceAccessUpdateCommand_1 = require("./commands/StartOrganizationServiceAccessUpdateCommand");
|
|
69
71
|
const StartRouteAnalysisCommand_1 = require("./commands/StartRouteAnalysisCommand");
|
|
70
72
|
const TagResourceCommand_1 = require("./commands/TagResourceCommand");
|
|
71
73
|
const UntagResourceCommand_1 = require("./commands/UntagResourceCommand");
|
|
@@ -905,6 +907,20 @@ class NetworkManager extends NetworkManagerClient_1.NetworkManagerClient {
|
|
|
905
907
|
return this.send(command, optionsOrCb);
|
|
906
908
|
}
|
|
907
909
|
}
|
|
910
|
+
listOrganizationServiceAccessStatus(args, optionsOrCb, cb) {
|
|
911
|
+
const command = new ListOrganizationServiceAccessStatusCommand_1.ListOrganizationServiceAccessStatusCommand(args);
|
|
912
|
+
if (typeof optionsOrCb === "function") {
|
|
913
|
+
this.send(command, optionsOrCb);
|
|
914
|
+
}
|
|
915
|
+
else if (typeof cb === "function") {
|
|
916
|
+
if (typeof optionsOrCb !== "object")
|
|
917
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
918
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
919
|
+
}
|
|
920
|
+
else {
|
|
921
|
+
return this.send(command, optionsOrCb);
|
|
922
|
+
}
|
|
923
|
+
}
|
|
908
924
|
listTagsForResource(args, optionsOrCb, cb) {
|
|
909
925
|
const command = new ListTagsForResourceCommand_1.ListTagsForResourceCommand(args);
|
|
910
926
|
if (typeof optionsOrCb === "function") {
|
|
@@ -989,6 +1005,20 @@ class NetworkManager extends NetworkManagerClient_1.NetworkManagerClient {
|
|
|
989
1005
|
return this.send(command, optionsOrCb);
|
|
990
1006
|
}
|
|
991
1007
|
}
|
|
1008
|
+
startOrganizationServiceAccessUpdate(args, optionsOrCb, cb) {
|
|
1009
|
+
const command = new StartOrganizationServiceAccessUpdateCommand_1.StartOrganizationServiceAccessUpdateCommand(args);
|
|
1010
|
+
if (typeof optionsOrCb === "function") {
|
|
1011
|
+
this.send(command, optionsOrCb);
|
|
1012
|
+
}
|
|
1013
|
+
else if (typeof cb === "function") {
|
|
1014
|
+
if (typeof optionsOrCb !== "object")
|
|
1015
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
1016
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
1017
|
+
}
|
|
1018
|
+
else {
|
|
1019
|
+
return this.send(command, optionsOrCb);
|
|
1020
|
+
}
|
|
1021
|
+
}
|
|
992
1022
|
startRouteAnalysis(args, optionsOrCb, cb) {
|
|
993
1023
|
const command = new StartRouteAnalysisCommand_1.StartRouteAnalysisCommand(args);
|
|
994
1024
|
if (typeof optionsOrCb === "function") {
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ListOrganizationServiceAccessStatusCommand = void 0;
|
|
4
|
+
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
5
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
|
+
const models_0_1 = require("../models/models_0");
|
|
7
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
8
|
+
class ListOrganizationServiceAccessStatusCommand extends smithy_client_1.Command {
|
|
9
|
+
constructor(input) {
|
|
10
|
+
super();
|
|
11
|
+
this.input = input;
|
|
12
|
+
}
|
|
13
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
14
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
15
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
const { logger } = configuration;
|
|
17
|
+
const clientName = "NetworkManagerClient";
|
|
18
|
+
const commandName = "ListOrganizationServiceAccessStatusCommand";
|
|
19
|
+
const handlerExecutionContext = {
|
|
20
|
+
logger,
|
|
21
|
+
clientName,
|
|
22
|
+
commandName,
|
|
23
|
+
inputFilterSensitiveLog: models_0_1.ListOrganizationServiceAccessStatusRequest.filterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: models_0_1.ListOrganizationServiceAccessStatusResponse.filterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
const { requestHandler } = configuration;
|
|
27
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
28
|
+
}
|
|
29
|
+
serialize(input, context) {
|
|
30
|
+
return (0, Aws_restJson1_1.serializeAws_restJson1ListOrganizationServiceAccessStatusCommand)(input, context);
|
|
31
|
+
}
|
|
32
|
+
deserialize(output, context) {
|
|
33
|
+
return (0, Aws_restJson1_1.deserializeAws_restJson1ListOrganizationServiceAccessStatusCommand)(output, context);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
exports.ListOrganizationServiceAccessStatusCommand = ListOrganizationServiceAccessStatusCommand;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.StartOrganizationServiceAccessUpdateCommand = void 0;
|
|
4
|
+
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
5
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
|
+
const models_0_1 = require("../models/models_0");
|
|
7
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
8
|
+
class StartOrganizationServiceAccessUpdateCommand extends smithy_client_1.Command {
|
|
9
|
+
constructor(input) {
|
|
10
|
+
super();
|
|
11
|
+
this.input = input;
|
|
12
|
+
}
|
|
13
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
14
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
15
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
const { logger } = configuration;
|
|
17
|
+
const clientName = "NetworkManagerClient";
|
|
18
|
+
const commandName = "StartOrganizationServiceAccessUpdateCommand";
|
|
19
|
+
const handlerExecutionContext = {
|
|
20
|
+
logger,
|
|
21
|
+
clientName,
|
|
22
|
+
commandName,
|
|
23
|
+
inputFilterSensitiveLog: models_0_1.StartOrganizationServiceAccessUpdateRequest.filterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: models_0_1.StartOrganizationServiceAccessUpdateResponse.filterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
const { requestHandler } = configuration;
|
|
27
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
28
|
+
}
|
|
29
|
+
serialize(input, context) {
|
|
30
|
+
return (0, Aws_restJson1_1.serializeAws_restJson1StartOrganizationServiceAccessUpdateCommand)(input, context);
|
|
31
|
+
}
|
|
32
|
+
deserialize(output, context) {
|
|
33
|
+
return (0, Aws_restJson1_1.deserializeAws_restJson1StartOrganizationServiceAccessUpdateCommand)(output, context);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
exports.StartOrganizationServiceAccessUpdateCommand = StartOrganizationServiceAccessUpdateCommand;
|
|
@@ -60,12 +60,14 @@ tslib_1.__exportStar(require("./ListAttachmentsCommand"), exports);
|
|
|
60
60
|
tslib_1.__exportStar(require("./ListConnectPeersCommand"), exports);
|
|
61
61
|
tslib_1.__exportStar(require("./ListCoreNetworkPolicyVersionsCommand"), exports);
|
|
62
62
|
tslib_1.__exportStar(require("./ListCoreNetworksCommand"), exports);
|
|
63
|
+
tslib_1.__exportStar(require("./ListOrganizationServiceAccessStatusCommand"), exports);
|
|
63
64
|
tslib_1.__exportStar(require("./ListTagsForResourceCommand"), exports);
|
|
64
65
|
tslib_1.__exportStar(require("./PutCoreNetworkPolicyCommand"), exports);
|
|
65
66
|
tslib_1.__exportStar(require("./PutResourcePolicyCommand"), exports);
|
|
66
67
|
tslib_1.__exportStar(require("./RegisterTransitGatewayCommand"), exports);
|
|
67
68
|
tslib_1.__exportStar(require("./RejectAttachmentCommand"), exports);
|
|
68
69
|
tslib_1.__exportStar(require("./RestoreCoreNetworkPolicyVersionCommand"), exports);
|
|
70
|
+
tslib_1.__exportStar(require("./StartOrganizationServiceAccessUpdateCommand"), exports);
|
|
69
71
|
tslib_1.__exportStar(require("./StartRouteAnalysisCommand"), exports);
|
|
70
72
|
tslib_1.__exportStar(require("./TagResourceCommand"), exports);
|
|
71
73
|
tslib_1.__exportStar(require("./UntagResourceCommand"), exports);
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.
|
|
5
|
-
exports.
|
|
6
|
-
exports.
|
|
7
|
-
exports.UpdateVpcAttachmentResponse = exports.UpdateVpcAttachmentRequest = exports.UpdateSiteResponse = exports.UpdateSiteRequest = exports.UpdateNetworkResourceMetadataResponse = exports.UpdateNetworkResourceMetadataRequest = exports.UpdateLinkResponse = exports.UpdateLinkRequest = exports.UpdateGlobalNetworkResponse = exports.UpdateGlobalNetworkRequest = exports.UpdateDeviceResponse = exports.UpdateDeviceRequest = exports.UpdateCoreNetworkResponse = exports.UpdateCoreNetworkRequest = exports.UpdateConnectionResponse = exports.UpdateConnectionRequest = exports.UntagResourceResponse = exports.UntagResourceRequest = exports.TagResourceResponse = exports.TagResourceRequest = exports.StartRouteAnalysisResponse = exports.StartRouteAnalysisRequest = exports.RouteAnalysisEndpointOptionsSpecification = exports.RestoreCoreNetworkPolicyVersionResponse = exports.RestoreCoreNetworkPolicyVersionRequest = exports.RejectAttachmentResponse = exports.RejectAttachmentRequest = exports.RegisterTransitGatewayResponse = exports.RegisterTransitGatewayRequest = exports.PutResourcePolicyResponse = exports.PutResourcePolicyRequest = exports.PutCoreNetworkPolicyResponse = exports.PutCoreNetworkPolicyRequest = exports.ListTagsForResourceResponse = exports.ListTagsForResourceRequest = exports.ListCoreNetworksResponse = exports.ListCoreNetworksRequest = exports.ListCoreNetworkPolicyVersionsResponse = exports.ListCoreNetworkPolicyVersionsRequest = exports.ListConnectPeersResponse = exports.ListConnectPeersRequest = void 0;
|
|
3
|
+
exports.ConnectPeerState = exports.ConnectPeerConfiguration = exports.ConnectPeerBgpConfiguration = exports.ConnectionHealth = exports.ConnectionType = exports.ConnectionStatus = exports.Connection = exports.ConnectionState = exports.ConnectAttachment = exports.ConnectAttachmentOptions = exports.TunnelProtocol = exports.ChangeType = exports.ChangeSetState = exports.ChangeAction = exports.BgpOptions = exports.Bandwidth = exports.AWSLocation = exports.AssociateTransitGatewayConnectPeerResponse = exports.TransitGatewayConnectPeerAssociation = exports.TransitGatewayConnectPeerAssociationState = exports.AssociateTransitGatewayConnectPeerRequest = exports.AssociateLinkResponse = exports.LinkAssociation = exports.LinkAssociationState = exports.AssociateLinkRequest = exports.AssociateCustomerGatewayResponse = exports.CustomerGatewayAssociation = exports.CustomerGatewayAssociationState = exports.AssociateCustomerGatewayRequest = exports.ServiceQuotaExceededException = exports.AssociateConnectPeerResponse = exports.ConnectPeerAssociation = exports.ConnectPeerAssociationState = exports.AssociateConnectPeerRequest = exports.AccountStatus = exports.ValidationException = exports.ValidationExceptionReason = exports.ValidationExceptionField = exports.ThrottlingException = exports.ResourceNotFoundException = exports.InternalServerException = exports.ConflictException = exports.AccessDeniedException = exports.AcceptAttachmentResponse = exports.Attachment = exports.AttachmentState = exports.ProposedSegmentChange = exports.Tag = exports.AttachmentType = exports.AcceptAttachmentRequest = void 0;
|
|
4
|
+
exports.DeleteConnectionRequest = exports.DeleteAttachmentResponse = exports.DeleteAttachmentRequest = exports.CreateVpcAttachmentResponse = exports.VpcAttachment = exports.CreateVpcAttachmentRequest = exports.VpcOptions = exports.CreateSiteToSiteVpnAttachmentResponse = exports.SiteToSiteVpnAttachment = exports.CreateSiteToSiteVpnAttachmentRequest = exports.CreateSiteResponse = exports.Site = exports.SiteState = exports.CreateSiteRequest = exports.CreateLinkResponse = exports.Link = exports.LinkState = exports.CreateLinkRequest = exports.CreateGlobalNetworkResponse = exports.GlobalNetwork = exports.GlobalNetworkState = exports.CreateGlobalNetworkRequest = exports.CreateDeviceResponse = exports.Device = exports.DeviceState = exports.CreateDeviceRequest = exports.Location = exports.CreateCoreNetworkResponse = exports.CreateCoreNetworkRequest = exports.CreateConnectPeerResponse = exports.CreateConnectPeerRequest = exports.CreateConnectionResponse = exports.CreateConnectionRequest = exports.CreateConnectAttachmentResponse = exports.CreateConnectAttachmentRequest = exports.CoreNetworkSummary = exports.CoreNetworkSegmentEdgeIdentifier = exports.CoreNetworkPolicyVersion = exports.CoreNetworkPolicyException = exports.CoreNetworkPolicy = exports.CoreNetworkPolicyError = exports.CoreNetworkPolicyAlias = exports.CoreNetworkChange = exports.CoreNetworkChangeValues = exports.CoreNetwork = exports.CoreNetworkState = exports.CoreNetworkSegment = exports.CoreNetworkEdge = exports.ConnectPeerSummary = exports.ConnectPeer = void 0;
|
|
5
|
+
exports.GetCustomerGatewayAssociationsResponse = exports.GetCustomerGatewayAssociationsRequest = exports.GetCoreNetworkPolicyResponse = exports.GetCoreNetworkPolicyRequest = exports.GetCoreNetworkChangeSetResponse = exports.GetCoreNetworkChangeSetRequest = exports.GetCoreNetworkResponse = exports.GetCoreNetworkRequest = exports.GetConnectPeerAssociationsResponse = exports.GetConnectPeerAssociationsRequest = exports.GetConnectPeerResponse = exports.GetConnectPeerRequest = exports.GetConnectionsResponse = exports.GetConnectionsRequest = exports.GetConnectAttachmentResponse = exports.GetConnectAttachmentRequest = exports.ExecuteCoreNetworkChangeSetResponse = exports.ExecuteCoreNetworkChangeSetRequest = exports.DisassociateTransitGatewayConnectPeerResponse = exports.DisassociateTransitGatewayConnectPeerRequest = exports.DisassociateLinkResponse = exports.DisassociateLinkRequest = exports.DisassociateCustomerGatewayResponse = exports.DisassociateCustomerGatewayRequest = exports.DisassociateConnectPeerResponse = exports.DisassociateConnectPeerRequest = exports.DescribeGlobalNetworksResponse = exports.DescribeGlobalNetworksRequest = exports.DeregisterTransitGatewayResponse = exports.TransitGatewayRegistration = exports.TransitGatewayRegistrationStateReason = exports.TransitGatewayRegistrationState = exports.DeregisterTransitGatewayRequest = exports.DeleteSiteResponse = exports.DeleteSiteRequest = exports.DeleteResourcePolicyResponse = exports.DeleteResourcePolicyRequest = exports.DeleteLinkResponse = exports.DeleteLinkRequest = exports.DeleteGlobalNetworkResponse = exports.DeleteGlobalNetworkRequest = exports.DeleteDeviceResponse = exports.DeleteDeviceRequest = exports.DeleteCoreNetworkPolicyVersionResponse = exports.DeleteCoreNetworkPolicyVersionRequest = exports.DeleteCoreNetworkResponse = exports.DeleteCoreNetworkRequest = exports.DeleteConnectPeerResponse = exports.DeleteConnectPeerRequest = exports.DeleteConnectionResponse = void 0;
|
|
6
|
+
exports.ListAttachmentsRequest = exports.GetVpcAttachmentResponse = exports.GetVpcAttachmentRequest = exports.GetTransitGatewayRegistrationsResponse = exports.GetTransitGatewayRegistrationsRequest = exports.GetTransitGatewayConnectPeerAssociationsResponse = exports.GetTransitGatewayConnectPeerAssociationsRequest = exports.GetSiteToSiteVpnAttachmentResponse = exports.GetSiteToSiteVpnAttachmentRequest = exports.GetSitesResponse = exports.GetSitesRequest = exports.GetRouteAnalysisResponse = exports.RouteAnalysis = exports.RouteAnalysisStatus = exports.RouteAnalysisPath = exports.PathComponent = exports.NetworkResourceSummary = exports.RouteAnalysisCompletion = exports.RouteAnalysisCompletionResultCode = exports.RouteAnalysisCompletionReasonCode = exports.RouteAnalysisEndpointOptions = exports.GetRouteAnalysisRequest = exports.GetResourcePolicyResponse = exports.GetResourcePolicyRequest = exports.GetNetworkTelemetryResponse = exports.NetworkTelemetry = exports.GetNetworkTelemetryRequest = exports.GetNetworkRoutesResponse = exports.RouteTableType = exports.NetworkRoute = exports.NetworkRouteDestination = exports.GetNetworkRoutesRequest = exports.RouteType = exports.RouteState = exports.RouteTableIdentifier = exports.GetNetworkResourcesResponse = exports.NetworkResource = exports.GetNetworkResourcesRequest = exports.GetNetworkResourceRelationshipsResponse = exports.Relationship = exports.GetNetworkResourceRelationshipsRequest = exports.GetNetworkResourceCountsResponse = exports.NetworkResourceCount = exports.GetNetworkResourceCountsRequest = exports.GetLinksResponse = exports.GetLinksRequest = exports.GetLinkAssociationsResponse = exports.GetLinkAssociationsRequest = exports.GetDevicesResponse = exports.GetDevicesRequest = void 0;
|
|
7
|
+
exports.UpdateVpcAttachmentResponse = exports.UpdateVpcAttachmentRequest = exports.UpdateSiteResponse = exports.UpdateSiteRequest = exports.UpdateNetworkResourceMetadataResponse = exports.UpdateNetworkResourceMetadataRequest = exports.UpdateLinkResponse = exports.UpdateLinkRequest = exports.UpdateGlobalNetworkResponse = exports.UpdateGlobalNetworkRequest = exports.UpdateDeviceResponse = exports.UpdateDeviceRequest = exports.UpdateCoreNetworkResponse = exports.UpdateCoreNetworkRequest = exports.UpdateConnectionResponse = exports.UpdateConnectionRequest = exports.UntagResourceResponse = exports.UntagResourceRequest = exports.TagResourceResponse = exports.TagResourceRequest = exports.StartRouteAnalysisResponse = exports.StartRouteAnalysisRequest = exports.RouteAnalysisEndpointOptionsSpecification = exports.StartOrganizationServiceAccessUpdateResponse = exports.StartOrganizationServiceAccessUpdateRequest = exports.RestoreCoreNetworkPolicyVersionResponse = exports.RestoreCoreNetworkPolicyVersionRequest = exports.RejectAttachmentResponse = exports.RejectAttachmentRequest = exports.RegisterTransitGatewayResponse = exports.RegisterTransitGatewayRequest = exports.PutResourcePolicyResponse = exports.PutResourcePolicyRequest = exports.PutCoreNetworkPolicyResponse = exports.PutCoreNetworkPolicyRequest = exports.ListTagsForResourceResponse = exports.ListTagsForResourceRequest = exports.ListOrganizationServiceAccessStatusResponse = exports.OrganizationStatus = exports.ListOrganizationServiceAccessStatusRequest = exports.ListCoreNetworksResponse = exports.ListCoreNetworksRequest = exports.ListCoreNetworkPolicyVersionsResponse = exports.ListCoreNetworkPolicyVersionsRequest = exports.ListConnectPeersResponse = exports.ListConnectPeersRequest = exports.ListAttachmentsResponse = void 0;
|
|
8
8
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
9
9
|
const NetworkManagerServiceException_1 = require("./NetworkManagerServiceException");
|
|
10
10
|
var AcceptAttachmentRequest;
|
|
@@ -161,6 +161,12 @@ class ValidationException extends NetworkManagerServiceException_1.NetworkManage
|
|
|
161
161
|
}
|
|
162
162
|
}
|
|
163
163
|
exports.ValidationException = ValidationException;
|
|
164
|
+
var AccountStatus;
|
|
165
|
+
(function (AccountStatus) {
|
|
166
|
+
AccountStatus.filterSensitiveLog = (obj) => ({
|
|
167
|
+
...obj,
|
|
168
|
+
});
|
|
169
|
+
})(AccountStatus = exports.AccountStatus || (exports.AccountStatus = {}));
|
|
164
170
|
var AssociateConnectPeerRequest;
|
|
165
171
|
(function (AssociateConnectPeerRequest) {
|
|
166
172
|
AssociateConnectPeerRequest.filterSensitiveLog = (obj) => ({
|
|
@@ -1355,6 +1361,24 @@ var ListCoreNetworksResponse;
|
|
|
1355
1361
|
...obj,
|
|
1356
1362
|
});
|
|
1357
1363
|
})(ListCoreNetworksResponse = exports.ListCoreNetworksResponse || (exports.ListCoreNetworksResponse = {}));
|
|
1364
|
+
var ListOrganizationServiceAccessStatusRequest;
|
|
1365
|
+
(function (ListOrganizationServiceAccessStatusRequest) {
|
|
1366
|
+
ListOrganizationServiceAccessStatusRequest.filterSensitiveLog = (obj) => ({
|
|
1367
|
+
...obj,
|
|
1368
|
+
});
|
|
1369
|
+
})(ListOrganizationServiceAccessStatusRequest = exports.ListOrganizationServiceAccessStatusRequest || (exports.ListOrganizationServiceAccessStatusRequest = {}));
|
|
1370
|
+
var OrganizationStatus;
|
|
1371
|
+
(function (OrganizationStatus) {
|
|
1372
|
+
OrganizationStatus.filterSensitiveLog = (obj) => ({
|
|
1373
|
+
...obj,
|
|
1374
|
+
});
|
|
1375
|
+
})(OrganizationStatus = exports.OrganizationStatus || (exports.OrganizationStatus = {}));
|
|
1376
|
+
var ListOrganizationServiceAccessStatusResponse;
|
|
1377
|
+
(function (ListOrganizationServiceAccessStatusResponse) {
|
|
1378
|
+
ListOrganizationServiceAccessStatusResponse.filterSensitiveLog = (obj) => ({
|
|
1379
|
+
...obj,
|
|
1380
|
+
});
|
|
1381
|
+
})(ListOrganizationServiceAccessStatusResponse = exports.ListOrganizationServiceAccessStatusResponse || (exports.ListOrganizationServiceAccessStatusResponse = {}));
|
|
1358
1382
|
var ListTagsForResourceRequest;
|
|
1359
1383
|
(function (ListTagsForResourceRequest) {
|
|
1360
1384
|
ListTagsForResourceRequest.filterSensitiveLog = (obj) => ({
|
|
@@ -1427,6 +1451,18 @@ var RestoreCoreNetworkPolicyVersionResponse;
|
|
|
1427
1451
|
...obj,
|
|
1428
1452
|
});
|
|
1429
1453
|
})(RestoreCoreNetworkPolicyVersionResponse = exports.RestoreCoreNetworkPolicyVersionResponse || (exports.RestoreCoreNetworkPolicyVersionResponse = {}));
|
|
1454
|
+
var StartOrganizationServiceAccessUpdateRequest;
|
|
1455
|
+
(function (StartOrganizationServiceAccessUpdateRequest) {
|
|
1456
|
+
StartOrganizationServiceAccessUpdateRequest.filterSensitiveLog = (obj) => ({
|
|
1457
|
+
...obj,
|
|
1458
|
+
});
|
|
1459
|
+
})(StartOrganizationServiceAccessUpdateRequest = exports.StartOrganizationServiceAccessUpdateRequest || (exports.StartOrganizationServiceAccessUpdateRequest = {}));
|
|
1460
|
+
var StartOrganizationServiceAccessUpdateResponse;
|
|
1461
|
+
(function (StartOrganizationServiceAccessUpdateResponse) {
|
|
1462
|
+
StartOrganizationServiceAccessUpdateResponse.filterSensitiveLog = (obj) => ({
|
|
1463
|
+
...obj,
|
|
1464
|
+
});
|
|
1465
|
+
})(StartOrganizationServiceAccessUpdateResponse = exports.StartOrganizationServiceAccessUpdateResponse || (exports.StartOrganizationServiceAccessUpdateResponse = {}));
|
|
1430
1466
|
var RouteAnalysisEndpointOptionsSpecification;
|
|
1431
1467
|
(function (RouteAnalysisEndpointOptionsSpecification) {
|
|
1432
1468
|
RouteAnalysisEndpointOptionsSpecification.filterSensitiveLog = (obj) => ({
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
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.
|
|
5
|
-
exports.
|
|
6
|
-
exports.deserializeAws_restJson1UpdateVpcAttachmentCommand = exports.deserializeAws_restJson1UpdateSiteCommand = 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;
|
|
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");
|
|
@@ -1950,6 +1950,27 @@ const serializeAws_restJson1ListCoreNetworksCommand = async (input, context) =>
|
|
|
1950
1950
|
});
|
|
1951
1951
|
};
|
|
1952
1952
|
exports.serializeAws_restJson1ListCoreNetworksCommand = serializeAws_restJson1ListCoreNetworksCommand;
|
|
1953
|
+
const serializeAws_restJson1ListOrganizationServiceAccessStatusCommand = async (input, context) => {
|
|
1954
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1955
|
+
const headers = {};
|
|
1956
|
+
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/organizations/service-access";
|
|
1957
|
+
const query = {
|
|
1958
|
+
...(input.MaxResults !== undefined && { maxResults: input.MaxResults.toString() }),
|
|
1959
|
+
...(input.NextToken !== undefined && { nextToken: input.NextToken }),
|
|
1960
|
+
};
|
|
1961
|
+
let body;
|
|
1962
|
+
return new protocol_http_1.HttpRequest({
|
|
1963
|
+
protocol,
|
|
1964
|
+
hostname,
|
|
1965
|
+
port,
|
|
1966
|
+
method: "GET",
|
|
1967
|
+
headers,
|
|
1968
|
+
path: resolvedPath,
|
|
1969
|
+
query,
|
|
1970
|
+
body,
|
|
1971
|
+
});
|
|
1972
|
+
};
|
|
1973
|
+
exports.serializeAws_restJson1ListOrganizationServiceAccessStatusCommand = serializeAws_restJson1ListOrganizationServiceAccessStatusCommand;
|
|
1953
1974
|
const serializeAws_restJson1ListTagsForResourceCommand = async (input, context) => {
|
|
1954
1975
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1955
1976
|
const headers = {};
|
|
@@ -2142,6 +2163,27 @@ const serializeAws_restJson1RestoreCoreNetworkPolicyVersionCommand = async (inpu
|
|
|
2142
2163
|
});
|
|
2143
2164
|
};
|
|
2144
2165
|
exports.serializeAws_restJson1RestoreCoreNetworkPolicyVersionCommand = serializeAws_restJson1RestoreCoreNetworkPolicyVersionCommand;
|
|
2166
|
+
const serializeAws_restJson1StartOrganizationServiceAccessUpdateCommand = async (input, context) => {
|
|
2167
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
2168
|
+
const headers = {
|
|
2169
|
+
"content-type": "application/json",
|
|
2170
|
+
};
|
|
2171
|
+
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/organizations/service-access";
|
|
2172
|
+
let body;
|
|
2173
|
+
body = JSON.stringify({
|
|
2174
|
+
...(input.Action !== undefined && input.Action !== null && { Action: input.Action }),
|
|
2175
|
+
});
|
|
2176
|
+
return new protocol_http_1.HttpRequest({
|
|
2177
|
+
protocol,
|
|
2178
|
+
hostname,
|
|
2179
|
+
port,
|
|
2180
|
+
method: "POST",
|
|
2181
|
+
headers,
|
|
2182
|
+
path: resolvedPath,
|
|
2183
|
+
body,
|
|
2184
|
+
});
|
|
2185
|
+
};
|
|
2186
|
+
exports.serializeAws_restJson1StartOrganizationServiceAccessUpdateCommand = serializeAws_restJson1StartOrganizationServiceAccessUpdateCommand;
|
|
2145
2187
|
const serializeAws_restJson1StartRouteAnalysisCommand = async (input, context) => {
|
|
2146
2188
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
2147
2189
|
const headers = {
|
|
@@ -5663,6 +5705,44 @@ const deserializeAws_restJson1ListCoreNetworksCommandError = async (output, cont
|
|
|
5663
5705
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5664
5706
|
}
|
|
5665
5707
|
};
|
|
5708
|
+
const deserializeAws_restJson1ListOrganizationServiceAccessStatusCommand = async (output, context) => {
|
|
5709
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5710
|
+
return deserializeAws_restJson1ListOrganizationServiceAccessStatusCommandError(output, context);
|
|
5711
|
+
}
|
|
5712
|
+
const contents = {
|
|
5713
|
+
$metadata: deserializeMetadata(output),
|
|
5714
|
+
NextToken: undefined,
|
|
5715
|
+
OrganizationStatus: undefined,
|
|
5716
|
+
};
|
|
5717
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
5718
|
+
if (data.NextToken !== undefined && data.NextToken !== null) {
|
|
5719
|
+
contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
|
|
5720
|
+
}
|
|
5721
|
+
if (data.OrganizationStatus !== undefined && data.OrganizationStatus !== null) {
|
|
5722
|
+
contents.OrganizationStatus = deserializeAws_restJson1OrganizationStatus(data.OrganizationStatus, context);
|
|
5723
|
+
}
|
|
5724
|
+
return Promise.resolve(contents);
|
|
5725
|
+
};
|
|
5726
|
+
exports.deserializeAws_restJson1ListOrganizationServiceAccessStatusCommand = deserializeAws_restJson1ListOrganizationServiceAccessStatusCommand;
|
|
5727
|
+
const deserializeAws_restJson1ListOrganizationServiceAccessStatusCommandError = async (output, context) => {
|
|
5728
|
+
const parsedOutput = {
|
|
5729
|
+
...output,
|
|
5730
|
+
body: await parseBody(output.body, context),
|
|
5731
|
+
};
|
|
5732
|
+
let response;
|
|
5733
|
+
let errorCode = "UnknownError";
|
|
5734
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5735
|
+
switch (errorCode) {
|
|
5736
|
+
default:
|
|
5737
|
+
const parsedBody = parsedOutput.body;
|
|
5738
|
+
response = new NetworkManagerServiceException_1.NetworkManagerServiceException({
|
|
5739
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5740
|
+
$fault: "client",
|
|
5741
|
+
$metadata: deserializeMetadata(output),
|
|
5742
|
+
});
|
|
5743
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5744
|
+
}
|
|
5745
|
+
};
|
|
5666
5746
|
const deserializeAws_restJson1ListTagsForResourceCommand = async (output, context) => {
|
|
5667
5747
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5668
5748
|
return deserializeAws_restJson1ListTagsForResourceCommandError(output, context);
|
|
@@ -5971,6 +6051,58 @@ const deserializeAws_restJson1RestoreCoreNetworkPolicyVersionCommandError = asyn
|
|
|
5971
6051
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5972
6052
|
}
|
|
5973
6053
|
};
|
|
6054
|
+
const deserializeAws_restJson1StartOrganizationServiceAccessUpdateCommand = async (output, context) => {
|
|
6055
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
6056
|
+
return deserializeAws_restJson1StartOrganizationServiceAccessUpdateCommandError(output, context);
|
|
6057
|
+
}
|
|
6058
|
+
const contents = {
|
|
6059
|
+
$metadata: deserializeMetadata(output),
|
|
6060
|
+
OrganizationStatus: undefined,
|
|
6061
|
+
};
|
|
6062
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
6063
|
+
if (data.OrganizationStatus !== undefined && data.OrganizationStatus !== null) {
|
|
6064
|
+
contents.OrganizationStatus = deserializeAws_restJson1OrganizationStatus(data.OrganizationStatus, context);
|
|
6065
|
+
}
|
|
6066
|
+
return Promise.resolve(contents);
|
|
6067
|
+
};
|
|
6068
|
+
exports.deserializeAws_restJson1StartOrganizationServiceAccessUpdateCommand = deserializeAws_restJson1StartOrganizationServiceAccessUpdateCommand;
|
|
6069
|
+
const deserializeAws_restJson1StartOrganizationServiceAccessUpdateCommandError = async (output, context) => {
|
|
6070
|
+
const parsedOutput = {
|
|
6071
|
+
...output,
|
|
6072
|
+
body: await parseBody(output.body, context),
|
|
6073
|
+
};
|
|
6074
|
+
let response;
|
|
6075
|
+
let errorCode = "UnknownError";
|
|
6076
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6077
|
+
switch (errorCode) {
|
|
6078
|
+
case "AccessDeniedException":
|
|
6079
|
+
case "com.amazonaws.networkmanager#AccessDeniedException":
|
|
6080
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
6081
|
+
case "ConflictException":
|
|
6082
|
+
case "com.amazonaws.networkmanager#ConflictException":
|
|
6083
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
6084
|
+
case "InternalServerException":
|
|
6085
|
+
case "com.amazonaws.networkmanager#InternalServerException":
|
|
6086
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
6087
|
+
case "ServiceQuotaExceededException":
|
|
6088
|
+
case "com.amazonaws.networkmanager#ServiceQuotaExceededException":
|
|
6089
|
+
throw await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context);
|
|
6090
|
+
case "ThrottlingException":
|
|
6091
|
+
case "com.amazonaws.networkmanager#ThrottlingException":
|
|
6092
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
6093
|
+
case "ValidationException":
|
|
6094
|
+
case "com.amazonaws.networkmanager#ValidationException":
|
|
6095
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
6096
|
+
default:
|
|
6097
|
+
const parsedBody = parsedOutput.body;
|
|
6098
|
+
response = new NetworkManagerServiceException_1.NetworkManagerServiceException({
|
|
6099
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
6100
|
+
$fault: "client",
|
|
6101
|
+
$metadata: deserializeMetadata(output),
|
|
6102
|
+
});
|
|
6103
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
6104
|
+
}
|
|
6105
|
+
};
|
|
5974
6106
|
const deserializeAws_restJson1StartRouteAnalysisCommand = async (output, context) => {
|
|
5975
6107
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5976
6108
|
return deserializeAws_restJson1StartRouteAnalysisCommandError(output, context);
|
|
@@ -6829,6 +6961,23 @@ const serializeAws_restJson1VpcOptions = (input, context) => {
|
|
|
6829
6961
|
...(input.Ipv6Support !== undefined && input.Ipv6Support !== null && { Ipv6Support: input.Ipv6Support }),
|
|
6830
6962
|
};
|
|
6831
6963
|
};
|
|
6964
|
+
const deserializeAws_restJson1AccountStatus = (output, context) => {
|
|
6965
|
+
return {
|
|
6966
|
+
AccountId: (0, smithy_client_1.expectString)(output.AccountId),
|
|
6967
|
+
SLRDeploymentStatus: (0, smithy_client_1.expectString)(output.SLRDeploymentStatus),
|
|
6968
|
+
};
|
|
6969
|
+
};
|
|
6970
|
+
const deserializeAws_restJson1AccountStatusList = (output, context) => {
|
|
6971
|
+
const retVal = (output || [])
|
|
6972
|
+
.filter((e) => e != null)
|
|
6973
|
+
.map((entry) => {
|
|
6974
|
+
if (entry === null) {
|
|
6975
|
+
return null;
|
|
6976
|
+
}
|
|
6977
|
+
return deserializeAws_restJson1AccountStatus(entry, context);
|
|
6978
|
+
});
|
|
6979
|
+
return retVal;
|
|
6980
|
+
};
|
|
6832
6981
|
const deserializeAws_restJson1Attachment = (output, context) => {
|
|
6833
6982
|
return {
|
|
6834
6983
|
AttachmentId: (0, smithy_client_1.expectString)(output.AttachmentId),
|
|
@@ -7535,6 +7684,16 @@ const deserializeAws_restJson1NetworkTelemetryList = (output, context) => {
|
|
|
7535
7684
|
});
|
|
7536
7685
|
return retVal;
|
|
7537
7686
|
};
|
|
7687
|
+
const deserializeAws_restJson1OrganizationStatus = (output, context) => {
|
|
7688
|
+
return {
|
|
7689
|
+
AccountStatusList: output.AccountStatusList !== undefined && output.AccountStatusList !== null
|
|
7690
|
+
? deserializeAws_restJson1AccountStatusList(output.AccountStatusList, context)
|
|
7691
|
+
: undefined,
|
|
7692
|
+
OrganizationAwsServiceAccessStatus: (0, smithy_client_1.expectString)(output.OrganizationAwsServiceAccessStatus),
|
|
7693
|
+
OrganizationId: (0, smithy_client_1.expectString)(output.OrganizationId),
|
|
7694
|
+
SLRDeploymentStatus: (0, smithy_client_1.expectString)(output.SLRDeploymentStatus),
|
|
7695
|
+
};
|
|
7696
|
+
};
|
|
7538
7697
|
const deserializeAws_restJson1PathComponent = (output, context) => {
|
|
7539
7698
|
return {
|
|
7540
7699
|
DestinationCidrBlock: (0, smithy_client_1.expectString)(output.DestinationCidrBlock),
|
|
@@ -58,12 +58,14 @@ import { ListAttachmentsCommand, } from "./commands/ListAttachmentsCommand";
|
|
|
58
58
|
import { ListConnectPeersCommand, } from "./commands/ListConnectPeersCommand";
|
|
59
59
|
import { ListCoreNetworkPolicyVersionsCommand, } from "./commands/ListCoreNetworkPolicyVersionsCommand";
|
|
60
60
|
import { ListCoreNetworksCommand, } from "./commands/ListCoreNetworksCommand";
|
|
61
|
+
import { ListOrganizationServiceAccessStatusCommand, } from "./commands/ListOrganizationServiceAccessStatusCommand";
|
|
61
62
|
import { ListTagsForResourceCommand, } from "./commands/ListTagsForResourceCommand";
|
|
62
63
|
import { PutCoreNetworkPolicyCommand, } from "./commands/PutCoreNetworkPolicyCommand";
|
|
63
64
|
import { PutResourcePolicyCommand, } from "./commands/PutResourcePolicyCommand";
|
|
64
65
|
import { RegisterTransitGatewayCommand, } from "./commands/RegisterTransitGatewayCommand";
|
|
65
66
|
import { RejectAttachmentCommand, } from "./commands/RejectAttachmentCommand";
|
|
66
67
|
import { RestoreCoreNetworkPolicyVersionCommand, } from "./commands/RestoreCoreNetworkPolicyVersionCommand";
|
|
68
|
+
import { StartOrganizationServiceAccessUpdateCommand, } from "./commands/StartOrganizationServiceAccessUpdateCommand";
|
|
67
69
|
import { StartRouteAnalysisCommand, } from "./commands/StartRouteAnalysisCommand";
|
|
68
70
|
import { TagResourceCommand } from "./commands/TagResourceCommand";
|
|
69
71
|
import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
|
|
@@ -907,6 +909,20 @@ var NetworkManager = (function (_super) {
|
|
|
907
909
|
return this.send(command, optionsOrCb);
|
|
908
910
|
}
|
|
909
911
|
};
|
|
912
|
+
NetworkManager.prototype.listOrganizationServiceAccessStatus = function (args, optionsOrCb, cb) {
|
|
913
|
+
var command = new ListOrganizationServiceAccessStatusCommand(args);
|
|
914
|
+
if (typeof optionsOrCb === "function") {
|
|
915
|
+
this.send(command, optionsOrCb);
|
|
916
|
+
}
|
|
917
|
+
else if (typeof cb === "function") {
|
|
918
|
+
if (typeof optionsOrCb !== "object")
|
|
919
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
920
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
921
|
+
}
|
|
922
|
+
else {
|
|
923
|
+
return this.send(command, optionsOrCb);
|
|
924
|
+
}
|
|
925
|
+
};
|
|
910
926
|
NetworkManager.prototype.listTagsForResource = function (args, optionsOrCb, cb) {
|
|
911
927
|
var command = new ListTagsForResourceCommand(args);
|
|
912
928
|
if (typeof optionsOrCb === "function") {
|
|
@@ -991,6 +1007,20 @@ var NetworkManager = (function (_super) {
|
|
|
991
1007
|
return this.send(command, optionsOrCb);
|
|
992
1008
|
}
|
|
993
1009
|
};
|
|
1010
|
+
NetworkManager.prototype.startOrganizationServiceAccessUpdate = function (args, optionsOrCb, cb) {
|
|
1011
|
+
var command = new StartOrganizationServiceAccessUpdateCommand(args);
|
|
1012
|
+
if (typeof optionsOrCb === "function") {
|
|
1013
|
+
this.send(command, optionsOrCb);
|
|
1014
|
+
}
|
|
1015
|
+
else if (typeof cb === "function") {
|
|
1016
|
+
if (typeof optionsOrCb !== "object")
|
|
1017
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
1018
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
1019
|
+
}
|
|
1020
|
+
else {
|
|
1021
|
+
return this.send(command, optionsOrCb);
|
|
1022
|
+
}
|
|
1023
|
+
};
|
|
994
1024
|
NetworkManager.prototype.startRouteAnalysis = function (args, optionsOrCb, cb) {
|
|
995
1025
|
var command = new StartRouteAnalysisCommand(args);
|
|
996
1026
|
if (typeof optionsOrCb === "function") {
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
2
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { ListOrganizationServiceAccessStatusRequest, ListOrganizationServiceAccessStatusResponse, } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_restJson1ListOrganizationServiceAccessStatusCommand, serializeAws_restJson1ListOrganizationServiceAccessStatusCommand, } from "../protocols/Aws_restJson1";
|
|
6
|
+
var ListOrganizationServiceAccessStatusCommand = (function (_super) {
|
|
7
|
+
__extends(ListOrganizationServiceAccessStatusCommand, _super);
|
|
8
|
+
function ListOrganizationServiceAccessStatusCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
12
|
+
}
|
|
13
|
+
ListOrganizationServiceAccessStatusCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
14
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
15
|
+
var stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
var logger = configuration.logger;
|
|
17
|
+
var clientName = "NetworkManagerClient";
|
|
18
|
+
var commandName = "ListOrganizationServiceAccessStatusCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
23
|
+
inputFilterSensitiveLog: ListOrganizationServiceAccessStatusRequest.filterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: ListOrganizationServiceAccessStatusResponse.filterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
var requestHandler = configuration.requestHandler;
|
|
27
|
+
return stack.resolve(function (request) {
|
|
28
|
+
return requestHandler.handle(request.request, options || {});
|
|
29
|
+
}, handlerExecutionContext);
|
|
30
|
+
};
|
|
31
|
+
ListOrganizationServiceAccessStatusCommand.prototype.serialize = function (input, context) {
|
|
32
|
+
return serializeAws_restJson1ListOrganizationServiceAccessStatusCommand(input, context);
|
|
33
|
+
};
|
|
34
|
+
ListOrganizationServiceAccessStatusCommand.prototype.deserialize = function (output, context) {
|
|
35
|
+
return deserializeAws_restJson1ListOrganizationServiceAccessStatusCommand(output, context);
|
|
36
|
+
};
|
|
37
|
+
return ListOrganizationServiceAccessStatusCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { ListOrganizationServiceAccessStatusCommand };
|