@aws-sdk/client-ec2 3.257.0 → 3.258.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/dist-cjs/EC2.js +135 -0
- package/dist-cjs/commands/AssociateIpamResourceDiscoveryCommand.js +46 -0
- package/dist-cjs/commands/CreateClientVpnRouteCommand.js +2 -1
- package/dist-cjs/commands/CreateCoipCidrCommand.js +1 -2
- package/dist-cjs/commands/CreateIpamResourceDiscoveryCommand.js +46 -0
- package/dist-cjs/commands/CreateRouteTableCommand.js +2 -1
- package/dist-cjs/commands/CreateSecurityGroupCommand.js +3 -3
- package/dist-cjs/commands/CreateSnapshotCommand.js +3 -3
- package/dist-cjs/commands/CreateSnapshotsCommand.js +1 -2
- package/dist-cjs/commands/DeleteIpamResourceDiscoveryCommand.js +46 -0
- package/dist-cjs/commands/DeleteTransitGatewayConnectCommand.js +2 -1
- package/dist-cjs/commands/DeleteTransitGatewayConnectPeerCommand.js +3 -3
- package/dist-cjs/commands/DeleteTransitGatewayMulticastDomainCommand.js +3 -3
- package/dist-cjs/commands/DeleteTransitGatewayPeeringAttachmentCommand.js +3 -3
- package/dist-cjs/commands/DeleteTransitGatewayPolicyTableCommand.js +3 -3
- package/dist-cjs/commands/DeleteTransitGatewayPrefixListReferenceCommand.js +3 -3
- package/dist-cjs/commands/DeleteTransitGatewayRouteCommand.js +1 -2
- package/dist-cjs/commands/DescribeInstanceStatusCommand.js +2 -1
- package/dist-cjs/commands/DescribeInstanceTypeOfferingsCommand.js +3 -3
- package/dist-cjs/commands/DescribeInstanceTypesCommand.js +1 -2
- package/dist-cjs/commands/DescribeIpamResourceDiscoveriesCommand.js +46 -0
- package/dist-cjs/commands/DescribeIpamResourceDiscoveryAssociationsCommand.js +46 -0
- package/dist-cjs/commands/DescribeVpcAttributeCommand.js +3 -3
- package/dist-cjs/commands/DescribeVpcClassicLinkCommand.js +3 -3
- package/dist-cjs/commands/DescribeVpcClassicLinkDnsSupportCommand.js +3 -3
- package/dist-cjs/commands/DescribeVpcEndpointConnectionNotificationsCommand.js +3 -3
- package/dist-cjs/commands/DescribeVpcEndpointConnectionsCommand.js +3 -3
- package/dist-cjs/commands/DescribeVpcEndpointServiceConfigurationsCommand.js +1 -2
- package/dist-cjs/commands/DescribeVpcEndpointsCommand.js +3 -3
- package/dist-cjs/commands/DisassociateIpamResourceDiscoveryCommand.js +46 -0
- package/dist-cjs/commands/GetIpamDiscoveredAccountsCommand.js +46 -0
- package/dist-cjs/commands/GetIpamDiscoveredResourceCidrsCommand.js +46 -0
- package/dist-cjs/commands/ModifyClientVpnEndpointCommand.js +3 -3
- package/dist-cjs/commands/ModifyDefaultCreditSpecificationCommand.js +3 -3
- package/dist-cjs/commands/ModifyEbsDefaultKmsKeyIdCommand.js +3 -3
- package/dist-cjs/commands/ModifyFleetCommand.js +3 -3
- package/dist-cjs/commands/ModifyFpgaImageAttributeCommand.js +3 -3
- package/dist-cjs/commands/ModifyHostsCommand.js +3 -3
- package/dist-cjs/commands/ModifyIdFormatCommand.js +2 -2
- package/dist-cjs/commands/ModifyIdentityIdFormatCommand.js +2 -2
- package/dist-cjs/commands/ModifyImageAttributeCommand.js +2 -2
- package/dist-cjs/commands/ModifyInstanceAttributeCommand.js +2 -2
- package/dist-cjs/commands/ModifyInstanceCapacityReservationAttributesCommand.js +3 -3
- package/dist-cjs/commands/ModifyIpamResourceDiscoveryCommand.js +46 -0
- package/dist-cjs/commands/UpdateSecurityGroupRuleDescriptionsIngressCommand.js +3 -3
- package/dist-cjs/commands/WithdrawByoipCidrCommand.js +3 -3
- package/dist-cjs/commands/index.js +9 -0
- package/dist-cjs/endpoint/ruleset.js +3 -3
- package/dist-cjs/models/index.js +1 -0
- package/dist-cjs/models/models_0.js +37 -29
- package/dist-cjs/models/models_1.js +61 -51
- package/dist-cjs/models/models_2.js +59 -54
- package/dist-cjs/models/models_3.js +55 -63
- package/dist-cjs/models/models_4.js +79 -70
- package/dist-cjs/models/models_5.js +112 -111
- package/dist-cjs/models/models_6.js +119 -22
- package/dist-cjs/models/models_7.js +19 -0
- package/dist-cjs/pagination/DescribeIpamResourceDiscoveriesPaginator.js +36 -0
- package/dist-cjs/pagination/DescribeIpamResourceDiscoveryAssociationsPaginator.js +36 -0
- package/dist-cjs/pagination/GetIpamDiscoveredAccountsPaginator.js +36 -0
- package/dist-cjs/pagination/GetIpamDiscoveredResourceCidrsPaginator.js +36 -0
- package/dist-cjs/pagination/index.js +4 -0
- package/dist-cjs/protocols/Aws_ec2.js +997 -24
- package/dist-cjs/runtimeConfig.browser.js +0 -3
- package/dist-cjs/runtimeConfig.js +0 -3
- package/dist-cjs/runtimeConfig.shared.js +3 -0
- package/dist-es/EC2.js +135 -0
- package/dist-es/commands/AssociateIpamResourceDiscoveryCommand.js +42 -0
- package/dist-es/commands/CreateClientVpnRouteCommand.js +2 -1
- package/dist-es/commands/CreateCoipCidrCommand.js +1 -2
- package/dist-es/commands/CreateIpamResourceDiscoveryCommand.js +42 -0
- package/dist-es/commands/CreateRouteTableCommand.js +2 -1
- package/dist-es/commands/CreateSecurityGroupCommand.js +1 -1
- package/dist-es/commands/CreateSnapshotCommand.js +1 -1
- package/dist-es/commands/CreateSnapshotsCommand.js +1 -2
- package/dist-es/commands/DeleteIpamResourceDiscoveryCommand.js +42 -0
- package/dist-es/commands/DeleteTransitGatewayConnectCommand.js +2 -1
- package/dist-es/commands/DeleteTransitGatewayConnectPeerCommand.js +1 -1
- package/dist-es/commands/DeleteTransitGatewayMulticastDomainCommand.js +1 -1
- package/dist-es/commands/DeleteTransitGatewayPeeringAttachmentCommand.js +1 -1
- package/dist-es/commands/DeleteTransitGatewayPolicyTableCommand.js +1 -1
- package/dist-es/commands/DeleteTransitGatewayPrefixListReferenceCommand.js +1 -1
- package/dist-es/commands/DeleteTransitGatewayRouteCommand.js +1 -2
- package/dist-es/commands/DescribeInstanceStatusCommand.js +2 -1
- package/dist-es/commands/DescribeInstanceTypeOfferingsCommand.js +1 -1
- package/dist-es/commands/DescribeInstanceTypesCommand.js +1 -2
- package/dist-es/commands/DescribeIpamResourceDiscoveriesCommand.js +42 -0
- package/dist-es/commands/DescribeIpamResourceDiscoveryAssociationsCommand.js +42 -0
- package/dist-es/commands/DescribeVpcAttributeCommand.js +1 -1
- package/dist-es/commands/DescribeVpcClassicLinkCommand.js +1 -1
- package/dist-es/commands/DescribeVpcClassicLinkDnsSupportCommand.js +1 -1
- package/dist-es/commands/DescribeVpcEndpointConnectionNotificationsCommand.js +1 -1
- package/dist-es/commands/DescribeVpcEndpointConnectionsCommand.js +1 -1
- package/dist-es/commands/DescribeVpcEndpointServiceConfigurationsCommand.js +1 -2
- package/dist-es/commands/DescribeVpcEndpointsCommand.js +1 -1
- package/dist-es/commands/DisassociateIpamResourceDiscoveryCommand.js +42 -0
- package/dist-es/commands/GetIpamDiscoveredAccountsCommand.js +42 -0
- package/dist-es/commands/GetIpamDiscoveredResourceCidrsCommand.js +42 -0
- package/dist-es/commands/ModifyClientVpnEndpointCommand.js +1 -1
- package/dist-es/commands/ModifyDefaultCreditSpecificationCommand.js +1 -1
- package/dist-es/commands/ModifyEbsDefaultKmsKeyIdCommand.js +1 -1
- package/dist-es/commands/ModifyFleetCommand.js +1 -1
- package/dist-es/commands/ModifyFpgaImageAttributeCommand.js +1 -1
- package/dist-es/commands/ModifyHostsCommand.js +1 -1
- package/dist-es/commands/ModifyIdFormatCommand.js +1 -1
- package/dist-es/commands/ModifyIdentityIdFormatCommand.js +1 -1
- package/dist-es/commands/ModifyImageAttributeCommand.js +1 -1
- package/dist-es/commands/ModifyInstanceAttributeCommand.js +1 -1
- package/dist-es/commands/ModifyInstanceCapacityReservationAttributesCommand.js +1 -1
- package/dist-es/commands/ModifyIpamResourceDiscoveryCommand.js +42 -0
- package/dist-es/commands/UpdateSecurityGroupRuleDescriptionsIngressCommand.js +1 -1
- package/dist-es/commands/WithdrawByoipCidrCommand.js +1 -1
- package/dist-es/commands/index.js +9 -0
- package/dist-es/endpoint/ruleset.js +3 -3
- package/dist-es/models/index.js +1 -0
- package/dist-es/models/models_0.js +28 -19
- package/dist-es/models/models_1.js +48 -38
- package/dist-es/models/models_2.js +44 -36
- package/dist-es/models/models_3.js +37 -49
- package/dist-es/models/models_4.js +61 -48
- package/dist-es/models/models_5.js +81 -80
- package/dist-es/models/models_6.js +86 -12
- package/dist-es/models/models_7.js +12 -0
- package/dist-es/pagination/DescribeIpamResourceDiscoveriesPaginator.js +32 -0
- package/dist-es/pagination/DescribeIpamResourceDiscoveryAssociationsPaginator.js +32 -0
- package/dist-es/pagination/GetIpamDiscoveredAccountsPaginator.js +32 -0
- package/dist-es/pagination/GetIpamDiscoveredResourceCidrsPaginator.js +32 -0
- package/dist-es/pagination/index.js +4 -0
- package/dist-es/protocols/Aws_ec2.js +955 -0
- package/dist-es/runtimeConfig.browser.js +0 -3
- package/dist-es/runtimeConfig.js +0 -3
- package/dist-es/runtimeConfig.shared.js +3 -0
- package/dist-types/EC2.d.ts +67 -4
- package/dist-types/EC2Client.d.ts +11 -2
- package/dist-types/commands/AllocateIpamPoolCidrCommand.d.ts +1 -1
- package/dist-types/commands/AssociateIpamResourceDiscoveryCommand.d.ts +37 -0
- package/dist-types/commands/CreateClientVpnRouteCommand.d.ts +2 -1
- package/dist-types/commands/CreateCoipCidrCommand.d.ts +1 -2
- package/dist-types/commands/CreateIpamResourceDiscoveryCommand.d.ts +37 -0
- package/dist-types/commands/CreateRouteTableCommand.d.ts +2 -1
- package/dist-types/commands/CreateSecurityGroupCommand.d.ts +1 -1
- package/dist-types/commands/CreateSnapshotCommand.d.ts +1 -1
- package/dist-types/commands/CreateSnapshotsCommand.d.ts +1 -2
- package/dist-types/commands/DeleteIpamResourceDiscoveryCommand.d.ts +37 -0
- package/dist-types/commands/DeleteTransitGatewayConnectCommand.d.ts +2 -1
- package/dist-types/commands/DeleteTransitGatewayConnectPeerCommand.d.ts +1 -1
- package/dist-types/commands/DeleteTransitGatewayMulticastDomainCommand.d.ts +1 -1
- package/dist-types/commands/DeleteTransitGatewayPeeringAttachmentCommand.d.ts +1 -1
- package/dist-types/commands/DeleteTransitGatewayPolicyTableCommand.d.ts +1 -1
- package/dist-types/commands/DeleteTransitGatewayPrefixListReferenceCommand.d.ts +1 -1
- package/dist-types/commands/DeleteTransitGatewayRouteCommand.d.ts +1 -2
- package/dist-types/commands/DescribeInstanceStatusCommand.d.ts +2 -1
- package/dist-types/commands/DescribeInstanceTypeOfferingsCommand.d.ts +1 -1
- package/dist-types/commands/DescribeInstanceTypesCommand.d.ts +1 -2
- package/dist-types/commands/DescribeIpamResourceDiscoveriesCommand.d.ts +37 -0
- package/dist-types/commands/DescribeIpamResourceDiscoveryAssociationsCommand.d.ts +37 -0
- package/dist-types/commands/DescribeVpcAttributeCommand.d.ts +1 -1
- package/dist-types/commands/DescribeVpcClassicLinkCommand.d.ts +1 -1
- package/dist-types/commands/DescribeVpcClassicLinkDnsSupportCommand.d.ts +1 -1
- package/dist-types/commands/DescribeVpcEndpointConnectionNotificationsCommand.d.ts +1 -1
- package/dist-types/commands/DescribeVpcEndpointConnectionsCommand.d.ts +1 -1
- package/dist-types/commands/DescribeVpcEndpointServiceConfigurationsCommand.d.ts +1 -2
- package/dist-types/commands/DescribeVpcEndpointsCommand.d.ts +1 -1
- package/dist-types/commands/DisassociateIpamResourceDiscoveryCommand.d.ts +37 -0
- package/dist-types/commands/GetIpamDiscoveredAccountsCommand.d.ts +37 -0
- package/dist-types/commands/GetIpamDiscoveredResourceCidrsCommand.d.ts +37 -0
- package/dist-types/commands/GetIpamResourceCidrsCommand.d.ts +1 -1
- package/dist-types/commands/ModifyClientVpnEndpointCommand.d.ts +1 -1
- package/dist-types/commands/ModifyDefaultCreditSpecificationCommand.d.ts +1 -1
- package/dist-types/commands/ModifyEbsDefaultKmsKeyIdCommand.d.ts +1 -1
- package/dist-types/commands/ModifyFleetCommand.d.ts +1 -1
- package/dist-types/commands/ModifyFpgaImageAttributeCommand.d.ts +1 -1
- package/dist-types/commands/ModifyHostsCommand.d.ts +1 -1
- package/dist-types/commands/ModifyIdFormatCommand.d.ts +1 -1
- package/dist-types/commands/ModifyIdentityIdFormatCommand.d.ts +1 -1
- package/dist-types/commands/ModifyImageAttributeCommand.d.ts +1 -1
- package/dist-types/commands/ModifyInstanceAttributeCommand.d.ts +1 -1
- package/dist-types/commands/ModifyInstanceCapacityReservationAttributesCommand.d.ts +1 -1
- package/dist-types/commands/ModifyIpamResourceDiscoveryCommand.d.ts +37 -0
- package/dist-types/commands/MoveByoipCidrToIpamCommand.d.ts +2 -2
- package/dist-types/commands/UpdateSecurityGroupRuleDescriptionsIngressCommand.d.ts +1 -1
- package/dist-types/commands/WithdrawByoipCidrCommand.d.ts +1 -1
- package/dist-types/commands/index.d.ts +9 -0
- package/dist-types/models/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +160 -89
- package/dist-types/models/models_1.d.ts +262 -294
- package/dist-types/models/models_2.d.ts +316 -166
- package/dist-types/models/models_3.d.ts +169 -441
- package/dist-types/models/models_4.d.ts +1328 -1301
- package/dist-types/models/models_5.d.ts +3670 -3659
- package/dist-types/models/models_6.d.ts +803 -80
- package/dist-types/models/models_7.d.ts +72 -0
- package/dist-types/pagination/DescribeIpamResourceDiscoveriesPaginator.d.ts +4 -0
- package/dist-types/pagination/DescribeIpamResourceDiscoveryAssociationsPaginator.d.ts +4 -0
- package/dist-types/pagination/GetIpamDiscoveredAccountsPaginator.d.ts +4 -0
- package/dist-types/pagination/GetIpamDiscoveredResourceCidrsPaginator.d.ts +4 -0
- package/dist-types/pagination/index.d.ts +4 -0
- package/dist-types/protocols/Aws_ec2.d.ts +27 -0
- package/dist-types/runtimeConfig.browser.d.ts +2 -2
- package/dist-types/runtimeConfig.d.ts +2 -2
- package/dist-types/runtimeConfig.shared.d.ts +2 -0
- package/dist-types/ts3.4/EC2.d.ts +165 -0
- package/dist-types/ts3.4/EC2Client.d.ts +54 -0
- package/dist-types/ts3.4/commands/AssociateIpamResourceDiscoveryCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/CreateClientVpnRouteCommand.d.ts +2 -4
- package/dist-types/ts3.4/commands/CreateCoipCidrCommand.d.ts +4 -2
- package/dist-types/ts3.4/commands/CreateIpamResourceDiscoveryCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/CreateRouteTableCommand.d.ts +2 -4
- package/dist-types/ts3.4/commands/CreateSecurityGroupCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/CreateSnapshotCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/CreateSnapshotsCommand.d.ts +4 -2
- package/dist-types/ts3.4/commands/DeleteIpamResourceDiscoveryCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/DeleteTransitGatewayConnectCommand.d.ts +2 -4
- package/dist-types/ts3.4/commands/DeleteTransitGatewayConnectPeerCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/DeleteTransitGatewayMulticastDomainCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/DeleteTransitGatewayPeeringAttachmentCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/DeleteTransitGatewayPolicyTableCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/DeleteTransitGatewayPrefixListReferenceCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/DeleteTransitGatewayRouteCommand.d.ts +4 -2
- package/dist-types/ts3.4/commands/DescribeInstanceStatusCommand.d.ts +2 -4
- package/dist-types/ts3.4/commands/DescribeInstanceTypeOfferingsCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/DescribeInstanceTypesCommand.d.ts +4 -2
- package/dist-types/ts3.4/commands/DescribeIpamResourceDiscoveriesCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/DescribeIpamResourceDiscoveryAssociationsCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/DescribeVpcAttributeCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/DescribeVpcClassicLinkCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/DescribeVpcClassicLinkDnsSupportCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/DescribeVpcEndpointConnectionNotificationsCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/DescribeVpcEndpointConnectionsCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/DescribeVpcEndpointServiceConfigurationsCommand.d.ts +4 -2
- package/dist-types/ts3.4/commands/DescribeVpcEndpointsCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/DisassociateIpamResourceDiscoveryCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/GetIpamDiscoveredAccountsCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/GetIpamDiscoveredResourceCidrsCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/ModifyClientVpnEndpointCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ModifyDefaultCreditSpecificationCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ModifyEbsDefaultKmsKeyIdCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ModifyFleetCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ModifyFpgaImageAttributeCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ModifyHostsCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ModifyIdFormatCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ModifyIdentityIdFormatCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ModifyImageAttributeCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ModifyInstanceAttributeCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ModifyInstanceCapacityReservationAttributesCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ModifyIpamResourceDiscoveryCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/UpdateSecurityGroupRuleDescriptionsIngressCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/WithdrawByoipCidrCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/index.d.ts +9 -0
- package/dist-types/ts3.4/models/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +49 -33
- package/dist-types/ts3.4/models/models_1.d.ts +86 -87
- package/dist-types/ts3.4/models/models_2.d.ts +103 -83
- package/dist-types/ts3.4/models/models_3.d.ts +90 -91
- package/dist-types/ts3.4/models/models_4.d.ts +131 -145
- package/dist-types/ts3.4/models/models_5.d.ts +237 -259
- package/dist-types/ts3.4/models/models_6.d.ts +271 -32
- package/dist-types/ts3.4/models/models_7.d.ts +31 -0
- package/dist-types/ts3.4/pagination/DescribeIpamResourceDiscoveriesPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/DescribeIpamResourceDiscoveryAssociationsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/GetIpamDiscoveredAccountsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/GetIpamDiscoveredResourceCidrsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +4 -0
- package/dist-types/ts3.4/protocols/Aws_ec2.d.ts +108 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +2 -2
- package/dist-types/ts3.4/runtimeConfig.d.ts +2 -2
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +2 -0
- package/package.json +4 -5
|
@@ -243,6 +243,18 @@ export const serializeAws_ec2AssociateInstanceEventWindowCommand = async (input,
|
|
|
243
243
|
});
|
|
244
244
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
245
245
|
};
|
|
246
|
+
export const serializeAws_ec2AssociateIpamResourceDiscoveryCommand = async (input, context) => {
|
|
247
|
+
const headers = {
|
|
248
|
+
"content-type": "application/x-www-form-urlencoded",
|
|
249
|
+
};
|
|
250
|
+
let body;
|
|
251
|
+
body = buildFormUrlencodedString({
|
|
252
|
+
...serializeAws_ec2AssociateIpamResourceDiscoveryRequest(input, context),
|
|
253
|
+
Action: "AssociateIpamResourceDiscovery",
|
|
254
|
+
Version: "2016-11-15",
|
|
255
|
+
});
|
|
256
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
257
|
+
};
|
|
246
258
|
export const serializeAws_ec2AssociateRouteTableCommand = async (input, context) => {
|
|
247
259
|
const headers = {
|
|
248
260
|
"content-type": "application/x-www-form-urlencoded",
|
|
@@ -867,6 +879,18 @@ export const serializeAws_ec2CreateIpamPoolCommand = async (input, context) => {
|
|
|
867
879
|
});
|
|
868
880
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
869
881
|
};
|
|
882
|
+
export const serializeAws_ec2CreateIpamResourceDiscoveryCommand = async (input, context) => {
|
|
883
|
+
const headers = {
|
|
884
|
+
"content-type": "application/x-www-form-urlencoded",
|
|
885
|
+
};
|
|
886
|
+
let body;
|
|
887
|
+
body = buildFormUrlencodedString({
|
|
888
|
+
...serializeAws_ec2CreateIpamResourceDiscoveryRequest(input, context),
|
|
889
|
+
Action: "CreateIpamResourceDiscovery",
|
|
890
|
+
Version: "2016-11-15",
|
|
891
|
+
});
|
|
892
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
893
|
+
};
|
|
870
894
|
export const serializeAws_ec2CreateIpamScopeCommand = async (input, context) => {
|
|
871
895
|
const headers = {
|
|
872
896
|
"content-type": "application/x-www-form-urlencoded",
|
|
@@ -1755,6 +1779,18 @@ export const serializeAws_ec2DeleteIpamPoolCommand = async (input, context) => {
|
|
|
1755
1779
|
});
|
|
1756
1780
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
1757
1781
|
};
|
|
1782
|
+
export const serializeAws_ec2DeleteIpamResourceDiscoveryCommand = async (input, context) => {
|
|
1783
|
+
const headers = {
|
|
1784
|
+
"content-type": "application/x-www-form-urlencoded",
|
|
1785
|
+
};
|
|
1786
|
+
let body;
|
|
1787
|
+
body = buildFormUrlencodedString({
|
|
1788
|
+
...serializeAws_ec2DeleteIpamResourceDiscoveryRequest(input, context),
|
|
1789
|
+
Action: "DeleteIpamResourceDiscovery",
|
|
1790
|
+
Version: "2016-11-15",
|
|
1791
|
+
});
|
|
1792
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
1793
|
+
};
|
|
1758
1794
|
export const serializeAws_ec2DeleteIpamScopeCommand = async (input, context) => {
|
|
1759
1795
|
const headers = {
|
|
1760
1796
|
"content-type": "application/x-www-form-urlencoded",
|
|
@@ -3171,6 +3207,30 @@ export const serializeAws_ec2DescribeIpamPoolsCommand = async (input, context) =
|
|
|
3171
3207
|
});
|
|
3172
3208
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
3173
3209
|
};
|
|
3210
|
+
export const serializeAws_ec2DescribeIpamResourceDiscoveriesCommand = async (input, context) => {
|
|
3211
|
+
const headers = {
|
|
3212
|
+
"content-type": "application/x-www-form-urlencoded",
|
|
3213
|
+
};
|
|
3214
|
+
let body;
|
|
3215
|
+
body = buildFormUrlencodedString({
|
|
3216
|
+
...serializeAws_ec2DescribeIpamResourceDiscoveriesRequest(input, context),
|
|
3217
|
+
Action: "DescribeIpamResourceDiscoveries",
|
|
3218
|
+
Version: "2016-11-15",
|
|
3219
|
+
});
|
|
3220
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
3221
|
+
};
|
|
3222
|
+
export const serializeAws_ec2DescribeIpamResourceDiscoveryAssociationsCommand = async (input, context) => {
|
|
3223
|
+
const headers = {
|
|
3224
|
+
"content-type": "application/x-www-form-urlencoded",
|
|
3225
|
+
};
|
|
3226
|
+
let body;
|
|
3227
|
+
body = buildFormUrlencodedString({
|
|
3228
|
+
...serializeAws_ec2DescribeIpamResourceDiscoveryAssociationsRequest(input, context),
|
|
3229
|
+
Action: "DescribeIpamResourceDiscoveryAssociations",
|
|
3230
|
+
Version: "2016-11-15",
|
|
3231
|
+
});
|
|
3232
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
3233
|
+
};
|
|
3174
3234
|
export const serializeAws_ec2DescribeIpamsCommand = async (input, context) => {
|
|
3175
3235
|
const headers = {
|
|
3176
3236
|
"content-type": "application/x-www-form-urlencoded",
|
|
@@ -4503,6 +4563,18 @@ export const serializeAws_ec2DisassociateInstanceEventWindowCommand = async (inp
|
|
|
4503
4563
|
});
|
|
4504
4564
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
4505
4565
|
};
|
|
4566
|
+
export const serializeAws_ec2DisassociateIpamResourceDiscoveryCommand = async (input, context) => {
|
|
4567
|
+
const headers = {
|
|
4568
|
+
"content-type": "application/x-www-form-urlencoded",
|
|
4569
|
+
};
|
|
4570
|
+
let body;
|
|
4571
|
+
body = buildFormUrlencodedString({
|
|
4572
|
+
...serializeAws_ec2DisassociateIpamResourceDiscoveryRequest(input, context),
|
|
4573
|
+
Action: "DisassociateIpamResourceDiscovery",
|
|
4574
|
+
Version: "2016-11-15",
|
|
4575
|
+
});
|
|
4576
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
4577
|
+
};
|
|
4506
4578
|
export const serializeAws_ec2DisassociateRouteTableCommand = async (input, context) => {
|
|
4507
4579
|
const headers = {
|
|
4508
4580
|
"content-type": "application/x-www-form-urlencoded",
|
|
@@ -4995,6 +5067,30 @@ export const serializeAws_ec2GetIpamAddressHistoryCommand = async (input, contex
|
|
|
4995
5067
|
});
|
|
4996
5068
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
4997
5069
|
};
|
|
5070
|
+
export const serializeAws_ec2GetIpamDiscoveredAccountsCommand = async (input, context) => {
|
|
5071
|
+
const headers = {
|
|
5072
|
+
"content-type": "application/x-www-form-urlencoded",
|
|
5073
|
+
};
|
|
5074
|
+
let body;
|
|
5075
|
+
body = buildFormUrlencodedString({
|
|
5076
|
+
...serializeAws_ec2GetIpamDiscoveredAccountsRequest(input, context),
|
|
5077
|
+
Action: "GetIpamDiscoveredAccounts",
|
|
5078
|
+
Version: "2016-11-15",
|
|
5079
|
+
});
|
|
5080
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
5081
|
+
};
|
|
5082
|
+
export const serializeAws_ec2GetIpamDiscoveredResourceCidrsCommand = async (input, context) => {
|
|
5083
|
+
const headers = {
|
|
5084
|
+
"content-type": "application/x-www-form-urlencoded",
|
|
5085
|
+
};
|
|
5086
|
+
let body;
|
|
5087
|
+
body = buildFormUrlencodedString({
|
|
5088
|
+
...serializeAws_ec2GetIpamDiscoveredResourceCidrsRequest(input, context),
|
|
5089
|
+
Action: "GetIpamDiscoveredResourceCidrs",
|
|
5090
|
+
Version: "2016-11-15",
|
|
5091
|
+
});
|
|
5092
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
5093
|
+
};
|
|
4998
5094
|
export const serializeAws_ec2GetIpamPoolAllocationsCommand = async (input, context) => {
|
|
4999
5095
|
const headers = {
|
|
5000
5096
|
"content-type": "application/x-www-form-urlencoded",
|
|
@@ -5667,6 +5763,18 @@ export const serializeAws_ec2ModifyIpamResourceCidrCommand = async (input, conte
|
|
|
5667
5763
|
});
|
|
5668
5764
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
5669
5765
|
};
|
|
5766
|
+
export const serializeAws_ec2ModifyIpamResourceDiscoveryCommand = async (input, context) => {
|
|
5767
|
+
const headers = {
|
|
5768
|
+
"content-type": "application/x-www-form-urlencoded",
|
|
5769
|
+
};
|
|
5770
|
+
let body;
|
|
5771
|
+
body = buildFormUrlencodedString({
|
|
5772
|
+
...serializeAws_ec2ModifyIpamResourceDiscoveryRequest(input, context),
|
|
5773
|
+
Action: "ModifyIpamResourceDiscovery",
|
|
5774
|
+
Version: "2016-11-15",
|
|
5775
|
+
});
|
|
5776
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
5777
|
+
};
|
|
5670
5778
|
export const serializeAws_ec2ModifyIpamScopeCommand = async (input, context) => {
|
|
5671
5779
|
const headers = {
|
|
5672
5780
|
"content-type": "application/x-www-form-urlencoded",
|
|
@@ -7452,6 +7560,33 @@ const deserializeAws_ec2AssociateInstanceEventWindowCommandError = async (output
|
|
|
7452
7560
|
errorCode,
|
|
7453
7561
|
});
|
|
7454
7562
|
};
|
|
7563
|
+
export const deserializeAws_ec2AssociateIpamResourceDiscoveryCommand = async (output, context) => {
|
|
7564
|
+
if (output.statusCode >= 300) {
|
|
7565
|
+
return deserializeAws_ec2AssociateIpamResourceDiscoveryCommandError(output, context);
|
|
7566
|
+
}
|
|
7567
|
+
const data = await parseBody(output.body, context);
|
|
7568
|
+
let contents = {};
|
|
7569
|
+
contents = deserializeAws_ec2AssociateIpamResourceDiscoveryResult(data, context);
|
|
7570
|
+
const response = {
|
|
7571
|
+
$metadata: deserializeMetadata(output),
|
|
7572
|
+
...contents,
|
|
7573
|
+
};
|
|
7574
|
+
return Promise.resolve(response);
|
|
7575
|
+
};
|
|
7576
|
+
const deserializeAws_ec2AssociateIpamResourceDiscoveryCommandError = async (output, context) => {
|
|
7577
|
+
const parsedOutput = {
|
|
7578
|
+
...output,
|
|
7579
|
+
body: await parseErrorBody(output.body, context),
|
|
7580
|
+
};
|
|
7581
|
+
const errorCode = loadEc2ErrorCode(output, parsedOutput.body);
|
|
7582
|
+
const parsedBody = parsedOutput.body;
|
|
7583
|
+
throwDefaultError({
|
|
7584
|
+
output,
|
|
7585
|
+
parsedBody: parsedBody.Errors.Error,
|
|
7586
|
+
exceptionCtor: __BaseException,
|
|
7587
|
+
errorCode,
|
|
7588
|
+
});
|
|
7589
|
+
};
|
|
7455
7590
|
export const deserializeAws_ec2AssociateRouteTableCommand = async (output, context) => {
|
|
7456
7591
|
if (output.statusCode >= 300) {
|
|
7457
7592
|
return deserializeAws_ec2AssociateRouteTableCommandError(output, context);
|
|
@@ -8847,6 +8982,33 @@ const deserializeAws_ec2CreateIpamPoolCommandError = async (output, context) =>
|
|
|
8847
8982
|
errorCode,
|
|
8848
8983
|
});
|
|
8849
8984
|
};
|
|
8985
|
+
export const deserializeAws_ec2CreateIpamResourceDiscoveryCommand = async (output, context) => {
|
|
8986
|
+
if (output.statusCode >= 300) {
|
|
8987
|
+
return deserializeAws_ec2CreateIpamResourceDiscoveryCommandError(output, context);
|
|
8988
|
+
}
|
|
8989
|
+
const data = await parseBody(output.body, context);
|
|
8990
|
+
let contents = {};
|
|
8991
|
+
contents = deserializeAws_ec2CreateIpamResourceDiscoveryResult(data, context);
|
|
8992
|
+
const response = {
|
|
8993
|
+
$metadata: deserializeMetadata(output),
|
|
8994
|
+
...contents,
|
|
8995
|
+
};
|
|
8996
|
+
return Promise.resolve(response);
|
|
8997
|
+
};
|
|
8998
|
+
const deserializeAws_ec2CreateIpamResourceDiscoveryCommandError = async (output, context) => {
|
|
8999
|
+
const parsedOutput = {
|
|
9000
|
+
...output,
|
|
9001
|
+
body: await parseErrorBody(output.body, context),
|
|
9002
|
+
};
|
|
9003
|
+
const errorCode = loadEc2ErrorCode(output, parsedOutput.body);
|
|
9004
|
+
const parsedBody = parsedOutput.body;
|
|
9005
|
+
throwDefaultError({
|
|
9006
|
+
output,
|
|
9007
|
+
parsedBody: parsedBody.Errors.Error,
|
|
9008
|
+
exceptionCtor: __BaseException,
|
|
9009
|
+
errorCode,
|
|
9010
|
+
});
|
|
9011
|
+
};
|
|
8850
9012
|
export const deserializeAws_ec2CreateIpamScopeCommand = async (output, context) => {
|
|
8851
9013
|
if (output.statusCode >= 300) {
|
|
8852
9014
|
return deserializeAws_ec2CreateIpamScopeCommandError(output, context);
|
|
@@ -10827,6 +10989,33 @@ const deserializeAws_ec2DeleteIpamPoolCommandError = async (output, context) =>
|
|
|
10827
10989
|
errorCode,
|
|
10828
10990
|
});
|
|
10829
10991
|
};
|
|
10992
|
+
export const deserializeAws_ec2DeleteIpamResourceDiscoveryCommand = async (output, context) => {
|
|
10993
|
+
if (output.statusCode >= 300) {
|
|
10994
|
+
return deserializeAws_ec2DeleteIpamResourceDiscoveryCommandError(output, context);
|
|
10995
|
+
}
|
|
10996
|
+
const data = await parseBody(output.body, context);
|
|
10997
|
+
let contents = {};
|
|
10998
|
+
contents = deserializeAws_ec2DeleteIpamResourceDiscoveryResult(data, context);
|
|
10999
|
+
const response = {
|
|
11000
|
+
$metadata: deserializeMetadata(output),
|
|
11001
|
+
...contents,
|
|
11002
|
+
};
|
|
11003
|
+
return Promise.resolve(response);
|
|
11004
|
+
};
|
|
11005
|
+
const deserializeAws_ec2DeleteIpamResourceDiscoveryCommandError = async (output, context) => {
|
|
11006
|
+
const parsedOutput = {
|
|
11007
|
+
...output,
|
|
11008
|
+
body: await parseErrorBody(output.body, context),
|
|
11009
|
+
};
|
|
11010
|
+
const errorCode = loadEc2ErrorCode(output, parsedOutput.body);
|
|
11011
|
+
const parsedBody = parsedOutput.body;
|
|
11012
|
+
throwDefaultError({
|
|
11013
|
+
output,
|
|
11014
|
+
parsedBody: parsedBody.Errors.Error,
|
|
11015
|
+
exceptionCtor: __BaseException,
|
|
11016
|
+
errorCode,
|
|
11017
|
+
});
|
|
11018
|
+
};
|
|
10830
11019
|
export const deserializeAws_ec2DeleteIpamScopeCommand = async (output, context) => {
|
|
10831
11020
|
if (output.statusCode >= 300) {
|
|
10832
11021
|
return deserializeAws_ec2DeleteIpamScopeCommandError(output, context);
|
|
@@ -13959,6 +14148,60 @@ const deserializeAws_ec2DescribeIpamPoolsCommandError = async (output, context)
|
|
|
13959
14148
|
errorCode,
|
|
13960
14149
|
});
|
|
13961
14150
|
};
|
|
14151
|
+
export const deserializeAws_ec2DescribeIpamResourceDiscoveriesCommand = async (output, context) => {
|
|
14152
|
+
if (output.statusCode >= 300) {
|
|
14153
|
+
return deserializeAws_ec2DescribeIpamResourceDiscoveriesCommandError(output, context);
|
|
14154
|
+
}
|
|
14155
|
+
const data = await parseBody(output.body, context);
|
|
14156
|
+
let contents = {};
|
|
14157
|
+
contents = deserializeAws_ec2DescribeIpamResourceDiscoveriesResult(data, context);
|
|
14158
|
+
const response = {
|
|
14159
|
+
$metadata: deserializeMetadata(output),
|
|
14160
|
+
...contents,
|
|
14161
|
+
};
|
|
14162
|
+
return Promise.resolve(response);
|
|
14163
|
+
};
|
|
14164
|
+
const deserializeAws_ec2DescribeIpamResourceDiscoveriesCommandError = async (output, context) => {
|
|
14165
|
+
const parsedOutput = {
|
|
14166
|
+
...output,
|
|
14167
|
+
body: await parseErrorBody(output.body, context),
|
|
14168
|
+
};
|
|
14169
|
+
const errorCode = loadEc2ErrorCode(output, parsedOutput.body);
|
|
14170
|
+
const parsedBody = parsedOutput.body;
|
|
14171
|
+
throwDefaultError({
|
|
14172
|
+
output,
|
|
14173
|
+
parsedBody: parsedBody.Errors.Error,
|
|
14174
|
+
exceptionCtor: __BaseException,
|
|
14175
|
+
errorCode,
|
|
14176
|
+
});
|
|
14177
|
+
};
|
|
14178
|
+
export const deserializeAws_ec2DescribeIpamResourceDiscoveryAssociationsCommand = async (output, context) => {
|
|
14179
|
+
if (output.statusCode >= 300) {
|
|
14180
|
+
return deserializeAws_ec2DescribeIpamResourceDiscoveryAssociationsCommandError(output, context);
|
|
14181
|
+
}
|
|
14182
|
+
const data = await parseBody(output.body, context);
|
|
14183
|
+
let contents = {};
|
|
14184
|
+
contents = deserializeAws_ec2DescribeIpamResourceDiscoveryAssociationsResult(data, context);
|
|
14185
|
+
const response = {
|
|
14186
|
+
$metadata: deserializeMetadata(output),
|
|
14187
|
+
...contents,
|
|
14188
|
+
};
|
|
14189
|
+
return Promise.resolve(response);
|
|
14190
|
+
};
|
|
14191
|
+
const deserializeAws_ec2DescribeIpamResourceDiscoveryAssociationsCommandError = async (output, context) => {
|
|
14192
|
+
const parsedOutput = {
|
|
14193
|
+
...output,
|
|
14194
|
+
body: await parseErrorBody(output.body, context),
|
|
14195
|
+
};
|
|
14196
|
+
const errorCode = loadEc2ErrorCode(output, parsedOutput.body);
|
|
14197
|
+
const parsedBody = parsedOutput.body;
|
|
14198
|
+
throwDefaultError({
|
|
14199
|
+
output,
|
|
14200
|
+
parsedBody: parsedBody.Errors.Error,
|
|
14201
|
+
exceptionCtor: __BaseException,
|
|
14202
|
+
errorCode,
|
|
14203
|
+
});
|
|
14204
|
+
};
|
|
13962
14205
|
export const deserializeAws_ec2DescribeIpamsCommand = async (output, context) => {
|
|
13963
14206
|
if (output.statusCode >= 300) {
|
|
13964
14207
|
return deserializeAws_ec2DescribeIpamsCommandError(output, context);
|
|
@@ -16941,6 +17184,33 @@ const deserializeAws_ec2DisassociateInstanceEventWindowCommandError = async (out
|
|
|
16941
17184
|
errorCode,
|
|
16942
17185
|
});
|
|
16943
17186
|
};
|
|
17187
|
+
export const deserializeAws_ec2DisassociateIpamResourceDiscoveryCommand = async (output, context) => {
|
|
17188
|
+
if (output.statusCode >= 300) {
|
|
17189
|
+
return deserializeAws_ec2DisassociateIpamResourceDiscoveryCommandError(output, context);
|
|
17190
|
+
}
|
|
17191
|
+
const data = await parseBody(output.body, context);
|
|
17192
|
+
let contents = {};
|
|
17193
|
+
contents = deserializeAws_ec2DisassociateIpamResourceDiscoveryResult(data, context);
|
|
17194
|
+
const response = {
|
|
17195
|
+
$metadata: deserializeMetadata(output),
|
|
17196
|
+
...contents,
|
|
17197
|
+
};
|
|
17198
|
+
return Promise.resolve(response);
|
|
17199
|
+
};
|
|
17200
|
+
const deserializeAws_ec2DisassociateIpamResourceDiscoveryCommandError = async (output, context) => {
|
|
17201
|
+
const parsedOutput = {
|
|
17202
|
+
...output,
|
|
17203
|
+
body: await parseErrorBody(output.body, context),
|
|
17204
|
+
};
|
|
17205
|
+
const errorCode = loadEc2ErrorCode(output, parsedOutput.body);
|
|
17206
|
+
const parsedBody = parsedOutput.body;
|
|
17207
|
+
throwDefaultError({
|
|
17208
|
+
output,
|
|
17209
|
+
parsedBody: parsedBody.Errors.Error,
|
|
17210
|
+
exceptionCtor: __BaseException,
|
|
17211
|
+
errorCode,
|
|
17212
|
+
});
|
|
17213
|
+
};
|
|
16944
17214
|
export const deserializeAws_ec2DisassociateRouteTableCommand = async (output, context) => {
|
|
16945
17215
|
if (output.statusCode >= 300) {
|
|
16946
17216
|
return deserializeAws_ec2DisassociateRouteTableCommandError(output, context);
|
|
@@ -18039,6 +18309,60 @@ const deserializeAws_ec2GetIpamAddressHistoryCommandError = async (output, conte
|
|
|
18039
18309
|
errorCode,
|
|
18040
18310
|
});
|
|
18041
18311
|
};
|
|
18312
|
+
export const deserializeAws_ec2GetIpamDiscoveredAccountsCommand = async (output, context) => {
|
|
18313
|
+
if (output.statusCode >= 300) {
|
|
18314
|
+
return deserializeAws_ec2GetIpamDiscoveredAccountsCommandError(output, context);
|
|
18315
|
+
}
|
|
18316
|
+
const data = await parseBody(output.body, context);
|
|
18317
|
+
let contents = {};
|
|
18318
|
+
contents = deserializeAws_ec2GetIpamDiscoveredAccountsResult(data, context);
|
|
18319
|
+
const response = {
|
|
18320
|
+
$metadata: deserializeMetadata(output),
|
|
18321
|
+
...contents,
|
|
18322
|
+
};
|
|
18323
|
+
return Promise.resolve(response);
|
|
18324
|
+
};
|
|
18325
|
+
const deserializeAws_ec2GetIpamDiscoveredAccountsCommandError = async (output, context) => {
|
|
18326
|
+
const parsedOutput = {
|
|
18327
|
+
...output,
|
|
18328
|
+
body: await parseErrorBody(output.body, context),
|
|
18329
|
+
};
|
|
18330
|
+
const errorCode = loadEc2ErrorCode(output, parsedOutput.body);
|
|
18331
|
+
const parsedBody = parsedOutput.body;
|
|
18332
|
+
throwDefaultError({
|
|
18333
|
+
output,
|
|
18334
|
+
parsedBody: parsedBody.Errors.Error,
|
|
18335
|
+
exceptionCtor: __BaseException,
|
|
18336
|
+
errorCode,
|
|
18337
|
+
});
|
|
18338
|
+
};
|
|
18339
|
+
export const deserializeAws_ec2GetIpamDiscoveredResourceCidrsCommand = async (output, context) => {
|
|
18340
|
+
if (output.statusCode >= 300) {
|
|
18341
|
+
return deserializeAws_ec2GetIpamDiscoveredResourceCidrsCommandError(output, context);
|
|
18342
|
+
}
|
|
18343
|
+
const data = await parseBody(output.body, context);
|
|
18344
|
+
let contents = {};
|
|
18345
|
+
contents = deserializeAws_ec2GetIpamDiscoveredResourceCidrsResult(data, context);
|
|
18346
|
+
const response = {
|
|
18347
|
+
$metadata: deserializeMetadata(output),
|
|
18348
|
+
...contents,
|
|
18349
|
+
};
|
|
18350
|
+
return Promise.resolve(response);
|
|
18351
|
+
};
|
|
18352
|
+
const deserializeAws_ec2GetIpamDiscoveredResourceCidrsCommandError = async (output, context) => {
|
|
18353
|
+
const parsedOutput = {
|
|
18354
|
+
...output,
|
|
18355
|
+
body: await parseErrorBody(output.body, context),
|
|
18356
|
+
};
|
|
18357
|
+
const errorCode = loadEc2ErrorCode(output, parsedOutput.body);
|
|
18358
|
+
const parsedBody = parsedOutput.body;
|
|
18359
|
+
throwDefaultError({
|
|
18360
|
+
output,
|
|
18361
|
+
parsedBody: parsedBody.Errors.Error,
|
|
18362
|
+
exceptionCtor: __BaseException,
|
|
18363
|
+
errorCode,
|
|
18364
|
+
});
|
|
18365
|
+
};
|
|
18042
18366
|
export const deserializeAws_ec2GetIpamPoolAllocationsCommand = async (output, context) => {
|
|
18043
18367
|
if (output.statusCode >= 300) {
|
|
18044
18368
|
return deserializeAws_ec2GetIpamPoolAllocationsCommandError(output, context);
|
|
@@ -19539,6 +19863,33 @@ const deserializeAws_ec2ModifyIpamResourceCidrCommandError = async (output, cont
|
|
|
19539
19863
|
errorCode,
|
|
19540
19864
|
});
|
|
19541
19865
|
};
|
|
19866
|
+
export const deserializeAws_ec2ModifyIpamResourceDiscoveryCommand = async (output, context) => {
|
|
19867
|
+
if (output.statusCode >= 300) {
|
|
19868
|
+
return deserializeAws_ec2ModifyIpamResourceDiscoveryCommandError(output, context);
|
|
19869
|
+
}
|
|
19870
|
+
const data = await parseBody(output.body, context);
|
|
19871
|
+
let contents = {};
|
|
19872
|
+
contents = deserializeAws_ec2ModifyIpamResourceDiscoveryResult(data, context);
|
|
19873
|
+
const response = {
|
|
19874
|
+
$metadata: deserializeMetadata(output),
|
|
19875
|
+
...contents,
|
|
19876
|
+
};
|
|
19877
|
+
return Promise.resolve(response);
|
|
19878
|
+
};
|
|
19879
|
+
const deserializeAws_ec2ModifyIpamResourceDiscoveryCommandError = async (output, context) => {
|
|
19880
|
+
const parsedOutput = {
|
|
19881
|
+
...output,
|
|
19882
|
+
body: await parseErrorBody(output.body, context),
|
|
19883
|
+
};
|
|
19884
|
+
const errorCode = loadEc2ErrorCode(output, parsedOutput.body);
|
|
19885
|
+
const parsedBody = parsedOutput.body;
|
|
19886
|
+
throwDefaultError({
|
|
19887
|
+
output,
|
|
19888
|
+
parsedBody: parsedBody.Errors.Error,
|
|
19889
|
+
exceptionCtor: __BaseException,
|
|
19890
|
+
errorCode,
|
|
19891
|
+
});
|
|
19892
|
+
};
|
|
19542
19893
|
export const deserializeAws_ec2ModifyIpamScopeCommand = async (output, context) => {
|
|
19543
19894
|
if (output.statusCode >= 300) {
|
|
19544
19895
|
return deserializeAws_ec2ModifyIpamScopeCommandError(output, context);
|
|
@@ -22968,6 +23319,35 @@ const serializeAws_ec2AssociateInstanceEventWindowRequest = (input, context) =>
|
|
|
22968
23319
|
}
|
|
22969
23320
|
return entries;
|
|
22970
23321
|
};
|
|
23322
|
+
const serializeAws_ec2AssociateIpamResourceDiscoveryRequest = (input, context) => {
|
|
23323
|
+
const entries = {};
|
|
23324
|
+
if (input.DryRun != null) {
|
|
23325
|
+
entries["DryRun"] = input.DryRun;
|
|
23326
|
+
}
|
|
23327
|
+
if (input.IpamId != null) {
|
|
23328
|
+
entries["IpamId"] = input.IpamId;
|
|
23329
|
+
}
|
|
23330
|
+
if (input.IpamResourceDiscoveryId != null) {
|
|
23331
|
+
entries["IpamResourceDiscoveryId"] = input.IpamResourceDiscoveryId;
|
|
23332
|
+
}
|
|
23333
|
+
if (input.TagSpecifications != null) {
|
|
23334
|
+
const memberEntries = serializeAws_ec2TagSpecificationList(input.TagSpecifications, context);
|
|
23335
|
+
if (input.TagSpecifications?.length === 0) {
|
|
23336
|
+
entries.TagSpecification = [];
|
|
23337
|
+
}
|
|
23338
|
+
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
23339
|
+
const loc = `TagSpecification.${key.substring(key.indexOf(".") + 1)}`;
|
|
23340
|
+
entries[loc] = value;
|
|
23341
|
+
});
|
|
23342
|
+
}
|
|
23343
|
+
if (input.ClientToken === undefined) {
|
|
23344
|
+
input.ClientToken = generateIdempotencyToken();
|
|
23345
|
+
}
|
|
23346
|
+
if (input.ClientToken != null) {
|
|
23347
|
+
entries["ClientToken"] = input.ClientToken;
|
|
23348
|
+
}
|
|
23349
|
+
return entries;
|
|
23350
|
+
};
|
|
22971
23351
|
const serializeAws_ec2AssociateRouteTableRequest = (input, context) => {
|
|
22972
23352
|
const entries = {};
|
|
22973
23353
|
if (input.DryRun != null) {
|
|
@@ -24823,6 +25203,9 @@ const serializeAws_ec2CreateIpamPoolRequest = (input, context) => {
|
|
|
24823
25203
|
if (input.AwsService != null) {
|
|
24824
25204
|
entries["AwsService"] = input.AwsService;
|
|
24825
25205
|
}
|
|
25206
|
+
if (input.PublicIpSource != null) {
|
|
25207
|
+
entries["PublicIpSource"] = input.PublicIpSource;
|
|
25208
|
+
}
|
|
24826
25209
|
return entries;
|
|
24827
25210
|
};
|
|
24828
25211
|
const serializeAws_ec2CreateIpamRequest = (input, context) => {
|
|
@@ -24861,6 +25244,42 @@ const serializeAws_ec2CreateIpamRequest = (input, context) => {
|
|
|
24861
25244
|
}
|
|
24862
25245
|
return entries;
|
|
24863
25246
|
};
|
|
25247
|
+
const serializeAws_ec2CreateIpamResourceDiscoveryRequest = (input, context) => {
|
|
25248
|
+
const entries = {};
|
|
25249
|
+
if (input.DryRun != null) {
|
|
25250
|
+
entries["DryRun"] = input.DryRun;
|
|
25251
|
+
}
|
|
25252
|
+
if (input.Description != null) {
|
|
25253
|
+
entries["Description"] = input.Description;
|
|
25254
|
+
}
|
|
25255
|
+
if (input.OperatingRegions != null) {
|
|
25256
|
+
const memberEntries = serializeAws_ec2AddIpamOperatingRegionSet(input.OperatingRegions, context);
|
|
25257
|
+
if (input.OperatingRegions?.length === 0) {
|
|
25258
|
+
entries.OperatingRegion = [];
|
|
25259
|
+
}
|
|
25260
|
+
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
25261
|
+
const loc = `OperatingRegion.${key.substring(key.indexOf(".") + 1)}`;
|
|
25262
|
+
entries[loc] = value;
|
|
25263
|
+
});
|
|
25264
|
+
}
|
|
25265
|
+
if (input.TagSpecifications != null) {
|
|
25266
|
+
const memberEntries = serializeAws_ec2TagSpecificationList(input.TagSpecifications, context);
|
|
25267
|
+
if (input.TagSpecifications?.length === 0) {
|
|
25268
|
+
entries.TagSpecification = [];
|
|
25269
|
+
}
|
|
25270
|
+
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
25271
|
+
const loc = `TagSpecification.${key.substring(key.indexOf(".") + 1)}`;
|
|
25272
|
+
entries[loc] = value;
|
|
25273
|
+
});
|
|
25274
|
+
}
|
|
25275
|
+
if (input.ClientToken === undefined) {
|
|
25276
|
+
input.ClientToken = generateIdempotencyToken();
|
|
25277
|
+
}
|
|
25278
|
+
if (input.ClientToken != null) {
|
|
25279
|
+
entries["ClientToken"] = input.ClientToken;
|
|
25280
|
+
}
|
|
25281
|
+
return entries;
|
|
25282
|
+
};
|
|
24864
25283
|
const serializeAws_ec2CreateIpamScopeRequest = (input, context) => {
|
|
24865
25284
|
const entries = {};
|
|
24866
25285
|
if (input.DryRun != null) {
|
|
@@ -27243,6 +27662,16 @@ const serializeAws_ec2DeleteIpamRequest = (input, context) => {
|
|
|
27243
27662
|
}
|
|
27244
27663
|
return entries;
|
|
27245
27664
|
};
|
|
27665
|
+
const serializeAws_ec2DeleteIpamResourceDiscoveryRequest = (input, context) => {
|
|
27666
|
+
const entries = {};
|
|
27667
|
+
if (input.DryRun != null) {
|
|
27668
|
+
entries["DryRun"] = input.DryRun;
|
|
27669
|
+
}
|
|
27670
|
+
if (input.IpamResourceDiscoveryId != null) {
|
|
27671
|
+
entries["IpamResourceDiscoveryId"] = input.IpamResourceDiscoveryId;
|
|
27672
|
+
}
|
|
27673
|
+
return entries;
|
|
27674
|
+
};
|
|
27246
27675
|
const serializeAws_ec2DeleteIpamScopeRequest = (input, context) => {
|
|
27247
27676
|
const entries = {};
|
|
27248
27677
|
if (input.DryRun != null) {
|
|
@@ -29566,6 +29995,72 @@ const serializeAws_ec2DescribeIpamPoolsRequest = (input, context) => {
|
|
|
29566
29995
|
}
|
|
29567
29996
|
return entries;
|
|
29568
29997
|
};
|
|
29998
|
+
const serializeAws_ec2DescribeIpamResourceDiscoveriesRequest = (input, context) => {
|
|
29999
|
+
const entries = {};
|
|
30000
|
+
if (input.DryRun != null) {
|
|
30001
|
+
entries["DryRun"] = input.DryRun;
|
|
30002
|
+
}
|
|
30003
|
+
if (input.IpamResourceDiscoveryIds != null) {
|
|
30004
|
+
const memberEntries = serializeAws_ec2ValueStringList(input.IpamResourceDiscoveryIds, context);
|
|
30005
|
+
if (input.IpamResourceDiscoveryIds?.length === 0) {
|
|
30006
|
+
entries.IpamResourceDiscoveryId = [];
|
|
30007
|
+
}
|
|
30008
|
+
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
30009
|
+
const loc = `IpamResourceDiscoveryId.${key.substring(key.indexOf(".") + 1)}`;
|
|
30010
|
+
entries[loc] = value;
|
|
30011
|
+
});
|
|
30012
|
+
}
|
|
30013
|
+
if (input.NextToken != null) {
|
|
30014
|
+
entries["NextToken"] = input.NextToken;
|
|
30015
|
+
}
|
|
30016
|
+
if (input.MaxResults != null) {
|
|
30017
|
+
entries["MaxResults"] = input.MaxResults;
|
|
30018
|
+
}
|
|
30019
|
+
if (input.Filters != null) {
|
|
30020
|
+
const memberEntries = serializeAws_ec2FilterList(input.Filters, context);
|
|
30021
|
+
if (input.Filters?.length === 0) {
|
|
30022
|
+
entries.Filter = [];
|
|
30023
|
+
}
|
|
30024
|
+
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
30025
|
+
const loc = `Filter.${key.substring(key.indexOf(".") + 1)}`;
|
|
30026
|
+
entries[loc] = value;
|
|
30027
|
+
});
|
|
30028
|
+
}
|
|
30029
|
+
return entries;
|
|
30030
|
+
};
|
|
30031
|
+
const serializeAws_ec2DescribeIpamResourceDiscoveryAssociationsRequest = (input, context) => {
|
|
30032
|
+
const entries = {};
|
|
30033
|
+
if (input.DryRun != null) {
|
|
30034
|
+
entries["DryRun"] = input.DryRun;
|
|
30035
|
+
}
|
|
30036
|
+
if (input.IpamResourceDiscoveryAssociationIds != null) {
|
|
30037
|
+
const memberEntries = serializeAws_ec2ValueStringList(input.IpamResourceDiscoveryAssociationIds, context);
|
|
30038
|
+
if (input.IpamResourceDiscoveryAssociationIds?.length === 0) {
|
|
30039
|
+
entries.IpamResourceDiscoveryAssociationId = [];
|
|
30040
|
+
}
|
|
30041
|
+
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
30042
|
+
const loc = `IpamResourceDiscoveryAssociationId.${key.substring(key.indexOf(".") + 1)}`;
|
|
30043
|
+
entries[loc] = value;
|
|
30044
|
+
});
|
|
30045
|
+
}
|
|
30046
|
+
if (input.NextToken != null) {
|
|
30047
|
+
entries["NextToken"] = input.NextToken;
|
|
30048
|
+
}
|
|
30049
|
+
if (input.MaxResults != null) {
|
|
30050
|
+
entries["MaxResults"] = input.MaxResults;
|
|
30051
|
+
}
|
|
30052
|
+
if (input.Filters != null) {
|
|
30053
|
+
const memberEntries = serializeAws_ec2FilterList(input.Filters, context);
|
|
30054
|
+
if (input.Filters?.length === 0) {
|
|
30055
|
+
entries.Filter = [];
|
|
30056
|
+
}
|
|
30057
|
+
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
30058
|
+
const loc = `Filter.${key.substring(key.indexOf(".") + 1)}`;
|
|
30059
|
+
entries[loc] = value;
|
|
30060
|
+
});
|
|
30061
|
+
}
|
|
30062
|
+
return entries;
|
|
30063
|
+
};
|
|
29569
30064
|
const serializeAws_ec2DescribeIpamScopesRequest = (input, context) => {
|
|
29570
30065
|
const entries = {};
|
|
29571
30066
|
if (input.DryRun != null) {
|
|
@@ -32673,6 +33168,16 @@ const serializeAws_ec2DisassociateInstanceEventWindowRequest = (input, context)
|
|
|
32673
33168
|
}
|
|
32674
33169
|
return entries;
|
|
32675
33170
|
};
|
|
33171
|
+
const serializeAws_ec2DisassociateIpamResourceDiscoveryRequest = (input, context) => {
|
|
33172
|
+
const entries = {};
|
|
33173
|
+
if (input.DryRun != null) {
|
|
33174
|
+
entries["DryRun"] = input.DryRun;
|
|
33175
|
+
}
|
|
33176
|
+
if (input.IpamResourceDiscoveryAssociationId != null) {
|
|
33177
|
+
entries["IpamResourceDiscoveryAssociationId"] = input.IpamResourceDiscoveryAssociationId;
|
|
33178
|
+
}
|
|
33179
|
+
return entries;
|
|
33180
|
+
};
|
|
32676
33181
|
const serializeAws_ec2DisassociateRouteTableRequest = (input, context) => {
|
|
32677
33182
|
const entries = {};
|
|
32678
33183
|
if (input.AssociationId != null) {
|
|
@@ -33875,6 +34380,64 @@ const serializeAws_ec2GetIpamAddressHistoryRequest = (input, context) => {
|
|
|
33875
34380
|
}
|
|
33876
34381
|
return entries;
|
|
33877
34382
|
};
|
|
34383
|
+
const serializeAws_ec2GetIpamDiscoveredAccountsRequest = (input, context) => {
|
|
34384
|
+
const entries = {};
|
|
34385
|
+
if (input.DryRun != null) {
|
|
34386
|
+
entries["DryRun"] = input.DryRun;
|
|
34387
|
+
}
|
|
34388
|
+
if (input.IpamResourceDiscoveryId != null) {
|
|
34389
|
+
entries["IpamResourceDiscoveryId"] = input.IpamResourceDiscoveryId;
|
|
34390
|
+
}
|
|
34391
|
+
if (input.DiscoveryRegion != null) {
|
|
34392
|
+
entries["DiscoveryRegion"] = input.DiscoveryRegion;
|
|
34393
|
+
}
|
|
34394
|
+
if (input.Filters != null) {
|
|
34395
|
+
const memberEntries = serializeAws_ec2FilterList(input.Filters, context);
|
|
34396
|
+
if (input.Filters?.length === 0) {
|
|
34397
|
+
entries.Filter = [];
|
|
34398
|
+
}
|
|
34399
|
+
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
34400
|
+
const loc = `Filter.${key.substring(key.indexOf(".") + 1)}`;
|
|
34401
|
+
entries[loc] = value;
|
|
34402
|
+
});
|
|
34403
|
+
}
|
|
34404
|
+
if (input.NextToken != null) {
|
|
34405
|
+
entries["NextToken"] = input.NextToken;
|
|
34406
|
+
}
|
|
34407
|
+
if (input.MaxResults != null) {
|
|
34408
|
+
entries["MaxResults"] = input.MaxResults;
|
|
34409
|
+
}
|
|
34410
|
+
return entries;
|
|
34411
|
+
};
|
|
34412
|
+
const serializeAws_ec2GetIpamDiscoveredResourceCidrsRequest = (input, context) => {
|
|
34413
|
+
const entries = {};
|
|
34414
|
+
if (input.DryRun != null) {
|
|
34415
|
+
entries["DryRun"] = input.DryRun;
|
|
34416
|
+
}
|
|
34417
|
+
if (input.IpamResourceDiscoveryId != null) {
|
|
34418
|
+
entries["IpamResourceDiscoveryId"] = input.IpamResourceDiscoveryId;
|
|
34419
|
+
}
|
|
34420
|
+
if (input.ResourceRegion != null) {
|
|
34421
|
+
entries["ResourceRegion"] = input.ResourceRegion;
|
|
34422
|
+
}
|
|
34423
|
+
if (input.Filters != null) {
|
|
34424
|
+
const memberEntries = serializeAws_ec2FilterList(input.Filters, context);
|
|
34425
|
+
if (input.Filters?.length === 0) {
|
|
34426
|
+
entries.Filter = [];
|
|
34427
|
+
}
|
|
34428
|
+
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
34429
|
+
const loc = `Filter.${key.substring(key.indexOf(".") + 1)}`;
|
|
34430
|
+
entries[loc] = value;
|
|
34431
|
+
});
|
|
34432
|
+
}
|
|
34433
|
+
if (input.NextToken != null) {
|
|
34434
|
+
entries["NextToken"] = input.NextToken;
|
|
34435
|
+
}
|
|
34436
|
+
if (input.MaxResults != null) {
|
|
34437
|
+
entries["MaxResults"] = input.MaxResults;
|
|
34438
|
+
}
|
|
34439
|
+
return entries;
|
|
34440
|
+
};
|
|
33878
34441
|
const serializeAws_ec2GetIpamPoolAllocationsRequest = (input, context) => {
|
|
33879
34442
|
const entries = {};
|
|
33880
34443
|
if (input.DryRun != null) {
|
|
@@ -37612,6 +38175,39 @@ const serializeAws_ec2ModifyIpamResourceCidrRequest = (input, context) => {
|
|
|
37612
38175
|
}
|
|
37613
38176
|
return entries;
|
|
37614
38177
|
};
|
|
38178
|
+
const serializeAws_ec2ModifyIpamResourceDiscoveryRequest = (input, context) => {
|
|
38179
|
+
const entries = {};
|
|
38180
|
+
if (input.DryRun != null) {
|
|
38181
|
+
entries["DryRun"] = input.DryRun;
|
|
38182
|
+
}
|
|
38183
|
+
if (input.IpamResourceDiscoveryId != null) {
|
|
38184
|
+
entries["IpamResourceDiscoveryId"] = input.IpamResourceDiscoveryId;
|
|
38185
|
+
}
|
|
38186
|
+
if (input.Description != null) {
|
|
38187
|
+
entries["Description"] = input.Description;
|
|
38188
|
+
}
|
|
38189
|
+
if (input.AddOperatingRegions != null) {
|
|
38190
|
+
const memberEntries = serializeAws_ec2AddIpamOperatingRegionSet(input.AddOperatingRegions, context);
|
|
38191
|
+
if (input.AddOperatingRegions?.length === 0) {
|
|
38192
|
+
entries.AddOperatingRegion = [];
|
|
38193
|
+
}
|
|
38194
|
+
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
38195
|
+
const loc = `AddOperatingRegion.${key.substring(key.indexOf(".") + 1)}`;
|
|
38196
|
+
entries[loc] = value;
|
|
38197
|
+
});
|
|
38198
|
+
}
|
|
38199
|
+
if (input.RemoveOperatingRegions != null) {
|
|
38200
|
+
const memberEntries = serializeAws_ec2RemoveIpamOperatingRegionSet(input.RemoveOperatingRegions, context);
|
|
38201
|
+
if (input.RemoveOperatingRegions?.length === 0) {
|
|
38202
|
+
entries.RemoveOperatingRegion = [];
|
|
38203
|
+
}
|
|
38204
|
+
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
38205
|
+
const loc = `RemoveOperatingRegion.${key.substring(key.indexOf(".") + 1)}`;
|
|
38206
|
+
entries[loc] = value;
|
|
38207
|
+
});
|
|
38208
|
+
}
|
|
38209
|
+
return entries;
|
|
38210
|
+
};
|
|
37615
38211
|
const serializeAws_ec2ModifyIpamScopeRequest = (input, context) => {
|
|
37616
38212
|
const entries = {};
|
|
37617
38213
|
if (input.DryRun != null) {
|
|
@@ -39791,6 +40387,15 @@ const serializeAws_ec2ProvisionIpamPoolCidrRequest = (input, context) => {
|
|
|
39791
40387
|
entries[loc] = value;
|
|
39792
40388
|
});
|
|
39793
40389
|
}
|
|
40390
|
+
if (input.NetmaskLength != null) {
|
|
40391
|
+
entries["NetmaskLength"] = input.NetmaskLength;
|
|
40392
|
+
}
|
|
40393
|
+
if (input.ClientToken === undefined) {
|
|
40394
|
+
input.ClientToken = generateIdempotencyToken();
|
|
40395
|
+
}
|
|
40396
|
+
if (input.ClientToken != null) {
|
|
40397
|
+
entries["ClientToken"] = input.ClientToken;
|
|
40398
|
+
}
|
|
39794
40399
|
return entries;
|
|
39795
40400
|
};
|
|
39796
40401
|
const serializeAws_ec2ProvisionPublicIpv4PoolCidrRequest = (input, context) => {
|
|
@@ -45013,6 +45618,15 @@ const deserializeAws_ec2AssociateInstanceEventWindowResult = (output, context) =
|
|
|
45013
45618
|
}
|
|
45014
45619
|
return contents;
|
|
45015
45620
|
};
|
|
45621
|
+
const deserializeAws_ec2AssociateIpamResourceDiscoveryResult = (output, context) => {
|
|
45622
|
+
const contents = {
|
|
45623
|
+
IpamResourceDiscoveryAssociation: undefined,
|
|
45624
|
+
};
|
|
45625
|
+
if (output["ipamResourceDiscoveryAssociation"] !== undefined) {
|
|
45626
|
+
contents.IpamResourceDiscoveryAssociation = deserializeAws_ec2IpamResourceDiscoveryAssociation(output["ipamResourceDiscoveryAssociation"], context);
|
|
45627
|
+
}
|
|
45628
|
+
return contents;
|
|
45629
|
+
};
|
|
45016
45630
|
const deserializeAws_ec2AssociateRouteTableResult = (output, context) => {
|
|
45017
45631
|
const contents = {
|
|
45018
45632
|
AssociationId: undefined,
|
|
@@ -47102,6 +47716,15 @@ const deserializeAws_ec2CreateIpamPoolResult = (output, context) => {
|
|
|
47102
47716
|
}
|
|
47103
47717
|
return contents;
|
|
47104
47718
|
};
|
|
47719
|
+
const deserializeAws_ec2CreateIpamResourceDiscoveryResult = (output, context) => {
|
|
47720
|
+
const contents = {
|
|
47721
|
+
IpamResourceDiscovery: undefined,
|
|
47722
|
+
};
|
|
47723
|
+
if (output["ipamResourceDiscovery"] !== undefined) {
|
|
47724
|
+
contents.IpamResourceDiscovery = deserializeAws_ec2IpamResourceDiscovery(output["ipamResourceDiscovery"], context);
|
|
47725
|
+
}
|
|
47726
|
+
return contents;
|
|
47727
|
+
};
|
|
47105
47728
|
const deserializeAws_ec2CreateIpamResult = (output, context) => {
|
|
47106
47729
|
const contents = {
|
|
47107
47730
|
Ipam: undefined,
|
|
@@ -47948,6 +48571,15 @@ const deserializeAws_ec2DeleteIpamPoolResult = (output, context) => {
|
|
|
47948
48571
|
}
|
|
47949
48572
|
return contents;
|
|
47950
48573
|
};
|
|
48574
|
+
const deserializeAws_ec2DeleteIpamResourceDiscoveryResult = (output, context) => {
|
|
48575
|
+
const contents = {
|
|
48576
|
+
IpamResourceDiscovery: undefined,
|
|
48577
|
+
};
|
|
48578
|
+
if (output["ipamResourceDiscovery"] !== undefined) {
|
|
48579
|
+
contents.IpamResourceDiscovery = deserializeAws_ec2IpamResourceDiscovery(output["ipamResourceDiscovery"], context);
|
|
48580
|
+
}
|
|
48581
|
+
return contents;
|
|
48582
|
+
};
|
|
47951
48583
|
const deserializeAws_ec2DeleteIpamResult = (output, context) => {
|
|
47952
48584
|
const contents = {
|
|
47953
48585
|
Ipam: undefined,
|
|
@@ -49469,6 +50101,40 @@ const deserializeAws_ec2DescribeIpamPoolsResult = (output, context) => {
|
|
|
49469
50101
|
}
|
|
49470
50102
|
return contents;
|
|
49471
50103
|
};
|
|
50104
|
+
const deserializeAws_ec2DescribeIpamResourceDiscoveriesResult = (output, context) => {
|
|
50105
|
+
const contents = {
|
|
50106
|
+
IpamResourceDiscoveries: undefined,
|
|
50107
|
+
NextToken: undefined,
|
|
50108
|
+
};
|
|
50109
|
+
if (output.ipamResourceDiscoverySet === "") {
|
|
50110
|
+
contents.IpamResourceDiscoveries = [];
|
|
50111
|
+
}
|
|
50112
|
+
else if (output["ipamResourceDiscoverySet"] !== undefined &&
|
|
50113
|
+
output["ipamResourceDiscoverySet"]["item"] !== undefined) {
|
|
50114
|
+
contents.IpamResourceDiscoveries = deserializeAws_ec2IpamResourceDiscoverySet(__getArrayIfSingleItem(output["ipamResourceDiscoverySet"]["item"]), context);
|
|
50115
|
+
}
|
|
50116
|
+
if (output["nextToken"] !== undefined) {
|
|
50117
|
+
contents.NextToken = __expectString(output["nextToken"]);
|
|
50118
|
+
}
|
|
50119
|
+
return contents;
|
|
50120
|
+
};
|
|
50121
|
+
const deserializeAws_ec2DescribeIpamResourceDiscoveryAssociationsResult = (output, context) => {
|
|
50122
|
+
const contents = {
|
|
50123
|
+
IpamResourceDiscoveryAssociations: undefined,
|
|
50124
|
+
NextToken: undefined,
|
|
50125
|
+
};
|
|
50126
|
+
if (output.ipamResourceDiscoveryAssociationSet === "") {
|
|
50127
|
+
contents.IpamResourceDiscoveryAssociations = [];
|
|
50128
|
+
}
|
|
50129
|
+
else if (output["ipamResourceDiscoveryAssociationSet"] !== undefined &&
|
|
50130
|
+
output["ipamResourceDiscoveryAssociationSet"]["item"] !== undefined) {
|
|
50131
|
+
contents.IpamResourceDiscoveryAssociations = deserializeAws_ec2IpamResourceDiscoveryAssociationSet(__getArrayIfSingleItem(output["ipamResourceDiscoveryAssociationSet"]["item"]), context);
|
|
50132
|
+
}
|
|
50133
|
+
if (output["nextToken"] !== undefined) {
|
|
50134
|
+
contents.NextToken = __expectString(output["nextToken"]);
|
|
50135
|
+
}
|
|
50136
|
+
return contents;
|
|
50137
|
+
};
|
|
49472
50138
|
const deserializeAws_ec2DescribeIpamScopesResult = (output, context) => {
|
|
49473
50139
|
const contents = {
|
|
49474
50140
|
NextToken: undefined,
|
|
@@ -51338,6 +52004,15 @@ const deserializeAws_ec2DisassociateInstanceEventWindowResult = (output, context
|
|
|
51338
52004
|
}
|
|
51339
52005
|
return contents;
|
|
51340
52006
|
};
|
|
52007
|
+
const deserializeAws_ec2DisassociateIpamResourceDiscoveryResult = (output, context) => {
|
|
52008
|
+
const contents = {
|
|
52009
|
+
IpamResourceDiscoveryAssociation: undefined,
|
|
52010
|
+
};
|
|
52011
|
+
if (output["ipamResourceDiscoveryAssociation"] !== undefined) {
|
|
52012
|
+
contents.IpamResourceDiscoveryAssociation = deserializeAws_ec2IpamResourceDiscoveryAssociation(output["ipamResourceDiscoveryAssociation"], context);
|
|
52013
|
+
}
|
|
52014
|
+
return contents;
|
|
52015
|
+
};
|
|
51341
52016
|
const deserializeAws_ec2DisassociateSubnetCidrBlockResult = (output, context) => {
|
|
51342
52017
|
const contents = {
|
|
51343
52018
|
Ipv6CidrBlockAssociation: undefined,
|
|
@@ -53387,6 +54062,40 @@ const deserializeAws_ec2GetIpamAddressHistoryResult = (output, context) => {
|
|
|
53387
54062
|
}
|
|
53388
54063
|
return contents;
|
|
53389
54064
|
};
|
|
54065
|
+
const deserializeAws_ec2GetIpamDiscoveredAccountsResult = (output, context) => {
|
|
54066
|
+
const contents = {
|
|
54067
|
+
IpamDiscoveredAccounts: undefined,
|
|
54068
|
+
NextToken: undefined,
|
|
54069
|
+
};
|
|
54070
|
+
if (output.ipamDiscoveredAccountSet === "") {
|
|
54071
|
+
contents.IpamDiscoveredAccounts = [];
|
|
54072
|
+
}
|
|
54073
|
+
else if (output["ipamDiscoveredAccountSet"] !== undefined &&
|
|
54074
|
+
output["ipamDiscoveredAccountSet"]["item"] !== undefined) {
|
|
54075
|
+
contents.IpamDiscoveredAccounts = deserializeAws_ec2IpamDiscoveredAccountSet(__getArrayIfSingleItem(output["ipamDiscoveredAccountSet"]["item"]), context);
|
|
54076
|
+
}
|
|
54077
|
+
if (output["nextToken"] !== undefined) {
|
|
54078
|
+
contents.NextToken = __expectString(output["nextToken"]);
|
|
54079
|
+
}
|
|
54080
|
+
return contents;
|
|
54081
|
+
};
|
|
54082
|
+
const deserializeAws_ec2GetIpamDiscoveredResourceCidrsResult = (output, context) => {
|
|
54083
|
+
const contents = {
|
|
54084
|
+
IpamDiscoveredResourceCidrs: undefined,
|
|
54085
|
+
NextToken: undefined,
|
|
54086
|
+
};
|
|
54087
|
+
if (output.ipamDiscoveredResourceCidrSet === "") {
|
|
54088
|
+
contents.IpamDiscoveredResourceCidrs = [];
|
|
54089
|
+
}
|
|
54090
|
+
else if (output["ipamDiscoveredResourceCidrSet"] !== undefined &&
|
|
54091
|
+
output["ipamDiscoveredResourceCidrSet"]["item"] !== undefined) {
|
|
54092
|
+
contents.IpamDiscoveredResourceCidrs = deserializeAws_ec2IpamDiscoveredResourceCidrSet(__getArrayIfSingleItem(output["ipamDiscoveredResourceCidrSet"]["item"]), context);
|
|
54093
|
+
}
|
|
54094
|
+
if (output["nextToken"] !== undefined) {
|
|
54095
|
+
contents.NextToken = __expectString(output["nextToken"]);
|
|
54096
|
+
}
|
|
54097
|
+
return contents;
|
|
54098
|
+
};
|
|
53390
54099
|
const deserializeAws_ec2GetIpamPoolAllocationsResult = (output, context) => {
|
|
53391
54100
|
const contents = {
|
|
53392
54101
|
IpamPoolAllocations: undefined,
|
|
@@ -56526,6 +57235,9 @@ const deserializeAws_ec2Ipam = (output, context) => {
|
|
|
56526
57235
|
OperatingRegions: undefined,
|
|
56527
57236
|
State: undefined,
|
|
56528
57237
|
Tags: undefined,
|
|
57238
|
+
DefaultResourceDiscoveryId: undefined,
|
|
57239
|
+
DefaultResourceDiscoveryAssociationId: undefined,
|
|
57240
|
+
ResourceDiscoveryAssociationCount: undefined,
|
|
56529
57241
|
};
|
|
56530
57242
|
if (output["ownerId"] !== undefined) {
|
|
56531
57243
|
contents.OwnerId = __expectString(output["ownerId"]);
|
|
@@ -56566,6 +57278,15 @@ const deserializeAws_ec2Ipam = (output, context) => {
|
|
|
56566
57278
|
else if (output["tagSet"] !== undefined && output["tagSet"]["item"] !== undefined) {
|
|
56567
57279
|
contents.Tags = deserializeAws_ec2TagList(__getArrayIfSingleItem(output["tagSet"]["item"]), context);
|
|
56568
57280
|
}
|
|
57281
|
+
if (output["defaultResourceDiscoveryId"] !== undefined) {
|
|
57282
|
+
contents.DefaultResourceDiscoveryId = __expectString(output["defaultResourceDiscoveryId"]);
|
|
57283
|
+
}
|
|
57284
|
+
if (output["defaultResourceDiscoveryAssociationId"] !== undefined) {
|
|
57285
|
+
contents.DefaultResourceDiscoveryAssociationId = __expectString(output["defaultResourceDiscoveryAssociationId"]);
|
|
57286
|
+
}
|
|
57287
|
+
if (output["resourceDiscoveryAssociationCount"] !== undefined) {
|
|
57288
|
+
contents.ResourceDiscoveryAssociationCount = __strictParseInt32(output["resourceDiscoveryAssociationCount"]);
|
|
57289
|
+
}
|
|
56569
57290
|
return contents;
|
|
56570
57291
|
};
|
|
56571
57292
|
const deserializeAws_ec2IpamAddressHistoryRecord = (output, context) => {
|
|
@@ -56624,6 +57345,106 @@ const deserializeAws_ec2IpamAddressHistoryRecordSet = (output, context) => {
|
|
|
56624
57345
|
return deserializeAws_ec2IpamAddressHistoryRecord(entry, context);
|
|
56625
57346
|
});
|
|
56626
57347
|
};
|
|
57348
|
+
const deserializeAws_ec2IpamDiscoveredAccount = (output, context) => {
|
|
57349
|
+
const contents = {
|
|
57350
|
+
AccountId: undefined,
|
|
57351
|
+
DiscoveryRegion: undefined,
|
|
57352
|
+
FailureReason: undefined,
|
|
57353
|
+
LastAttemptedDiscoveryTime: undefined,
|
|
57354
|
+
LastSuccessfulDiscoveryTime: undefined,
|
|
57355
|
+
};
|
|
57356
|
+
if (output["accountId"] !== undefined) {
|
|
57357
|
+
contents.AccountId = __expectString(output["accountId"]);
|
|
57358
|
+
}
|
|
57359
|
+
if (output["discoveryRegion"] !== undefined) {
|
|
57360
|
+
contents.DiscoveryRegion = __expectString(output["discoveryRegion"]);
|
|
57361
|
+
}
|
|
57362
|
+
if (output["failureReason"] !== undefined) {
|
|
57363
|
+
contents.FailureReason = deserializeAws_ec2IpamDiscoveryFailureReason(output["failureReason"], context);
|
|
57364
|
+
}
|
|
57365
|
+
if (output["lastAttemptedDiscoveryTime"] !== undefined) {
|
|
57366
|
+
contents.LastAttemptedDiscoveryTime = __expectNonNull(__parseRfc3339DateTime(output["lastAttemptedDiscoveryTime"]));
|
|
57367
|
+
}
|
|
57368
|
+
if (output["lastSuccessfulDiscoveryTime"] !== undefined) {
|
|
57369
|
+
contents.LastSuccessfulDiscoveryTime = __expectNonNull(__parseRfc3339DateTime(output["lastSuccessfulDiscoveryTime"]));
|
|
57370
|
+
}
|
|
57371
|
+
return contents;
|
|
57372
|
+
};
|
|
57373
|
+
const deserializeAws_ec2IpamDiscoveredAccountSet = (output, context) => {
|
|
57374
|
+
return (output || [])
|
|
57375
|
+
.filter((e) => e != null)
|
|
57376
|
+
.map((entry) => {
|
|
57377
|
+
return deserializeAws_ec2IpamDiscoveredAccount(entry, context);
|
|
57378
|
+
});
|
|
57379
|
+
};
|
|
57380
|
+
const deserializeAws_ec2IpamDiscoveredResourceCidr = (output, context) => {
|
|
57381
|
+
const contents = {
|
|
57382
|
+
IpamResourceDiscoveryId: undefined,
|
|
57383
|
+
ResourceRegion: undefined,
|
|
57384
|
+
ResourceId: undefined,
|
|
57385
|
+
ResourceOwnerId: undefined,
|
|
57386
|
+
ResourceCidr: undefined,
|
|
57387
|
+
ResourceType: undefined,
|
|
57388
|
+
ResourceTags: undefined,
|
|
57389
|
+
IpUsage: undefined,
|
|
57390
|
+
VpcId: undefined,
|
|
57391
|
+
SampleTime: undefined,
|
|
57392
|
+
};
|
|
57393
|
+
if (output["ipamResourceDiscoveryId"] !== undefined) {
|
|
57394
|
+
contents.IpamResourceDiscoveryId = __expectString(output["ipamResourceDiscoveryId"]);
|
|
57395
|
+
}
|
|
57396
|
+
if (output["resourceRegion"] !== undefined) {
|
|
57397
|
+
contents.ResourceRegion = __expectString(output["resourceRegion"]);
|
|
57398
|
+
}
|
|
57399
|
+
if (output["resourceId"] !== undefined) {
|
|
57400
|
+
contents.ResourceId = __expectString(output["resourceId"]);
|
|
57401
|
+
}
|
|
57402
|
+
if (output["resourceOwnerId"] !== undefined) {
|
|
57403
|
+
contents.ResourceOwnerId = __expectString(output["resourceOwnerId"]);
|
|
57404
|
+
}
|
|
57405
|
+
if (output["resourceCidr"] !== undefined) {
|
|
57406
|
+
contents.ResourceCidr = __expectString(output["resourceCidr"]);
|
|
57407
|
+
}
|
|
57408
|
+
if (output["resourceType"] !== undefined) {
|
|
57409
|
+
contents.ResourceType = __expectString(output["resourceType"]);
|
|
57410
|
+
}
|
|
57411
|
+
if (output.resourceTagSet === "") {
|
|
57412
|
+
contents.ResourceTags = [];
|
|
57413
|
+
}
|
|
57414
|
+
else if (output["resourceTagSet"] !== undefined && output["resourceTagSet"]["item"] !== undefined) {
|
|
57415
|
+
contents.ResourceTags = deserializeAws_ec2IpamResourceTagList(__getArrayIfSingleItem(output["resourceTagSet"]["item"]), context);
|
|
57416
|
+
}
|
|
57417
|
+
if (output["ipUsage"] !== undefined) {
|
|
57418
|
+
contents.IpUsage = __strictParseFloat(output["ipUsage"]);
|
|
57419
|
+
}
|
|
57420
|
+
if (output["vpcId"] !== undefined) {
|
|
57421
|
+
contents.VpcId = __expectString(output["vpcId"]);
|
|
57422
|
+
}
|
|
57423
|
+
if (output["sampleTime"] !== undefined) {
|
|
57424
|
+
contents.SampleTime = __expectNonNull(__parseRfc3339DateTime(output["sampleTime"]));
|
|
57425
|
+
}
|
|
57426
|
+
return contents;
|
|
57427
|
+
};
|
|
57428
|
+
const deserializeAws_ec2IpamDiscoveredResourceCidrSet = (output, context) => {
|
|
57429
|
+
return (output || [])
|
|
57430
|
+
.filter((e) => e != null)
|
|
57431
|
+
.map((entry) => {
|
|
57432
|
+
return deserializeAws_ec2IpamDiscoveredResourceCidr(entry, context);
|
|
57433
|
+
});
|
|
57434
|
+
};
|
|
57435
|
+
const deserializeAws_ec2IpamDiscoveryFailureReason = (output, context) => {
|
|
57436
|
+
const contents = {
|
|
57437
|
+
Code: undefined,
|
|
57438
|
+
Message: undefined,
|
|
57439
|
+
};
|
|
57440
|
+
if (output["code"] !== undefined) {
|
|
57441
|
+
contents.Code = __expectString(output["code"]);
|
|
57442
|
+
}
|
|
57443
|
+
if (output["message"] !== undefined) {
|
|
57444
|
+
contents.Message = __expectString(output["message"]);
|
|
57445
|
+
}
|
|
57446
|
+
return contents;
|
|
57447
|
+
};
|
|
56627
57448
|
const deserializeAws_ec2IpamOperatingRegion = (output, context) => {
|
|
56628
57449
|
const contents = {
|
|
56629
57450
|
RegionName: undefined,
|
|
@@ -56664,6 +57485,7 @@ const deserializeAws_ec2IpamPool = (output, context) => {
|
|
|
56664
57485
|
AllocationResourceTags: undefined,
|
|
56665
57486
|
Tags: undefined,
|
|
56666
57487
|
AwsService: undefined,
|
|
57488
|
+
PublicIpSource: undefined,
|
|
56667
57489
|
};
|
|
56668
57490
|
if (output["ownerId"] !== undefined) {
|
|
56669
57491
|
contents.OwnerId = __expectString(output["ownerId"]);
|
|
@@ -56738,6 +57560,9 @@ const deserializeAws_ec2IpamPool = (output, context) => {
|
|
|
56738
57560
|
if (output["awsService"] !== undefined) {
|
|
56739
57561
|
contents.AwsService = __expectString(output["awsService"]);
|
|
56740
57562
|
}
|
|
57563
|
+
if (output["publicIpSource"] !== undefined) {
|
|
57564
|
+
contents.PublicIpSource = __expectString(output["publicIpSource"]);
|
|
57565
|
+
}
|
|
56741
57566
|
return contents;
|
|
56742
57567
|
};
|
|
56743
57568
|
const deserializeAws_ec2IpamPoolAllocation = (output, context) => {
|
|
@@ -56785,6 +57610,8 @@ const deserializeAws_ec2IpamPoolCidr = (output, context) => {
|
|
|
56785
57610
|
Cidr: undefined,
|
|
56786
57611
|
State: undefined,
|
|
56787
57612
|
FailureReason: undefined,
|
|
57613
|
+
IpamPoolCidrId: undefined,
|
|
57614
|
+
NetmaskLength: undefined,
|
|
56788
57615
|
};
|
|
56789
57616
|
if (output["cidr"] !== undefined) {
|
|
56790
57617
|
contents.Cidr = __expectString(output["cidr"]);
|
|
@@ -56795,6 +57622,12 @@ const deserializeAws_ec2IpamPoolCidr = (output, context) => {
|
|
|
56795
57622
|
if (output["failureReason"] !== undefined) {
|
|
56796
57623
|
contents.FailureReason = deserializeAws_ec2IpamPoolCidrFailureReason(output["failureReason"], context);
|
|
56797
57624
|
}
|
|
57625
|
+
if (output["ipamPoolCidrId"] !== undefined) {
|
|
57626
|
+
contents.IpamPoolCidrId = __expectString(output["ipamPoolCidrId"]);
|
|
57627
|
+
}
|
|
57628
|
+
if (output["netmaskLength"] !== undefined) {
|
|
57629
|
+
contents.NetmaskLength = __strictParseInt32(output["netmaskLength"]);
|
|
57630
|
+
}
|
|
56798
57631
|
return contents;
|
|
56799
57632
|
};
|
|
56800
57633
|
const deserializeAws_ec2IpamPoolCidrFailureReason = (output, context) => {
|
|
@@ -56899,6 +57732,119 @@ const deserializeAws_ec2IpamResourceCidrSet = (output, context) => {
|
|
|
56899
57732
|
return deserializeAws_ec2IpamResourceCidr(entry, context);
|
|
56900
57733
|
});
|
|
56901
57734
|
};
|
|
57735
|
+
const deserializeAws_ec2IpamResourceDiscovery = (output, context) => {
|
|
57736
|
+
const contents = {
|
|
57737
|
+
OwnerId: undefined,
|
|
57738
|
+
IpamResourceDiscoveryId: undefined,
|
|
57739
|
+
IpamResourceDiscoveryArn: undefined,
|
|
57740
|
+
IpamResourceDiscoveryRegion: undefined,
|
|
57741
|
+
Description: undefined,
|
|
57742
|
+
OperatingRegions: undefined,
|
|
57743
|
+
IsDefault: undefined,
|
|
57744
|
+
State: undefined,
|
|
57745
|
+
Tags: undefined,
|
|
57746
|
+
};
|
|
57747
|
+
if (output["ownerId"] !== undefined) {
|
|
57748
|
+
contents.OwnerId = __expectString(output["ownerId"]);
|
|
57749
|
+
}
|
|
57750
|
+
if (output["ipamResourceDiscoveryId"] !== undefined) {
|
|
57751
|
+
contents.IpamResourceDiscoveryId = __expectString(output["ipamResourceDiscoveryId"]);
|
|
57752
|
+
}
|
|
57753
|
+
if (output["ipamResourceDiscoveryArn"] !== undefined) {
|
|
57754
|
+
contents.IpamResourceDiscoveryArn = __expectString(output["ipamResourceDiscoveryArn"]);
|
|
57755
|
+
}
|
|
57756
|
+
if (output["ipamResourceDiscoveryRegion"] !== undefined) {
|
|
57757
|
+
contents.IpamResourceDiscoveryRegion = __expectString(output["ipamResourceDiscoveryRegion"]);
|
|
57758
|
+
}
|
|
57759
|
+
if (output["description"] !== undefined) {
|
|
57760
|
+
contents.Description = __expectString(output["description"]);
|
|
57761
|
+
}
|
|
57762
|
+
if (output.operatingRegionSet === "") {
|
|
57763
|
+
contents.OperatingRegions = [];
|
|
57764
|
+
}
|
|
57765
|
+
else if (output["operatingRegionSet"] !== undefined && output["operatingRegionSet"]["item"] !== undefined) {
|
|
57766
|
+
contents.OperatingRegions = deserializeAws_ec2IpamOperatingRegionSet(__getArrayIfSingleItem(output["operatingRegionSet"]["item"]), context);
|
|
57767
|
+
}
|
|
57768
|
+
if (output["isDefault"] !== undefined) {
|
|
57769
|
+
contents.IsDefault = __parseBoolean(output["isDefault"]);
|
|
57770
|
+
}
|
|
57771
|
+
if (output["state"] !== undefined) {
|
|
57772
|
+
contents.State = __expectString(output["state"]);
|
|
57773
|
+
}
|
|
57774
|
+
if (output.tagSet === "") {
|
|
57775
|
+
contents.Tags = [];
|
|
57776
|
+
}
|
|
57777
|
+
else if (output["tagSet"] !== undefined && output["tagSet"]["item"] !== undefined) {
|
|
57778
|
+
contents.Tags = deserializeAws_ec2TagList(__getArrayIfSingleItem(output["tagSet"]["item"]), context);
|
|
57779
|
+
}
|
|
57780
|
+
return contents;
|
|
57781
|
+
};
|
|
57782
|
+
const deserializeAws_ec2IpamResourceDiscoveryAssociation = (output, context) => {
|
|
57783
|
+
const contents = {
|
|
57784
|
+
OwnerId: undefined,
|
|
57785
|
+
IpamResourceDiscoveryAssociationId: undefined,
|
|
57786
|
+
IpamResourceDiscoveryAssociationArn: undefined,
|
|
57787
|
+
IpamResourceDiscoveryId: undefined,
|
|
57788
|
+
IpamId: undefined,
|
|
57789
|
+
IpamArn: undefined,
|
|
57790
|
+
IpamRegion: undefined,
|
|
57791
|
+
IsDefault: undefined,
|
|
57792
|
+
ResourceDiscoveryStatus: undefined,
|
|
57793
|
+
State: undefined,
|
|
57794
|
+
Tags: undefined,
|
|
57795
|
+
};
|
|
57796
|
+
if (output["ownerId"] !== undefined) {
|
|
57797
|
+
contents.OwnerId = __expectString(output["ownerId"]);
|
|
57798
|
+
}
|
|
57799
|
+
if (output["ipamResourceDiscoveryAssociationId"] !== undefined) {
|
|
57800
|
+
contents.IpamResourceDiscoveryAssociationId = __expectString(output["ipamResourceDiscoveryAssociationId"]);
|
|
57801
|
+
}
|
|
57802
|
+
if (output["ipamResourceDiscoveryAssociationArn"] !== undefined) {
|
|
57803
|
+
contents.IpamResourceDiscoveryAssociationArn = __expectString(output["ipamResourceDiscoveryAssociationArn"]);
|
|
57804
|
+
}
|
|
57805
|
+
if (output["ipamResourceDiscoveryId"] !== undefined) {
|
|
57806
|
+
contents.IpamResourceDiscoveryId = __expectString(output["ipamResourceDiscoveryId"]);
|
|
57807
|
+
}
|
|
57808
|
+
if (output["ipamId"] !== undefined) {
|
|
57809
|
+
contents.IpamId = __expectString(output["ipamId"]);
|
|
57810
|
+
}
|
|
57811
|
+
if (output["ipamArn"] !== undefined) {
|
|
57812
|
+
contents.IpamArn = __expectString(output["ipamArn"]);
|
|
57813
|
+
}
|
|
57814
|
+
if (output["ipamRegion"] !== undefined) {
|
|
57815
|
+
contents.IpamRegion = __expectString(output["ipamRegion"]);
|
|
57816
|
+
}
|
|
57817
|
+
if (output["isDefault"] !== undefined) {
|
|
57818
|
+
contents.IsDefault = __parseBoolean(output["isDefault"]);
|
|
57819
|
+
}
|
|
57820
|
+
if (output["resourceDiscoveryStatus"] !== undefined) {
|
|
57821
|
+
contents.ResourceDiscoveryStatus = __expectString(output["resourceDiscoveryStatus"]);
|
|
57822
|
+
}
|
|
57823
|
+
if (output["state"] !== undefined) {
|
|
57824
|
+
contents.State = __expectString(output["state"]);
|
|
57825
|
+
}
|
|
57826
|
+
if (output.tagSet === "") {
|
|
57827
|
+
contents.Tags = [];
|
|
57828
|
+
}
|
|
57829
|
+
else if (output["tagSet"] !== undefined && output["tagSet"]["item"] !== undefined) {
|
|
57830
|
+
contents.Tags = deserializeAws_ec2TagList(__getArrayIfSingleItem(output["tagSet"]["item"]), context);
|
|
57831
|
+
}
|
|
57832
|
+
return contents;
|
|
57833
|
+
};
|
|
57834
|
+
const deserializeAws_ec2IpamResourceDiscoveryAssociationSet = (output, context) => {
|
|
57835
|
+
return (output || [])
|
|
57836
|
+
.filter((e) => e != null)
|
|
57837
|
+
.map((entry) => {
|
|
57838
|
+
return deserializeAws_ec2IpamResourceDiscoveryAssociation(entry, context);
|
|
57839
|
+
});
|
|
57840
|
+
};
|
|
57841
|
+
const deserializeAws_ec2IpamResourceDiscoverySet = (output, context) => {
|
|
57842
|
+
return (output || [])
|
|
57843
|
+
.filter((e) => e != null)
|
|
57844
|
+
.map((entry) => {
|
|
57845
|
+
return deserializeAws_ec2IpamResourceDiscovery(entry, context);
|
|
57846
|
+
});
|
|
57847
|
+
};
|
|
56902
57848
|
const deserializeAws_ec2IpamResourceTag = (output, context) => {
|
|
56903
57849
|
const contents = {
|
|
56904
57850
|
Key: undefined,
|
|
@@ -58783,6 +59729,15 @@ const deserializeAws_ec2ModifyIpamResourceCidrResult = (output, context) => {
|
|
|
58783
59729
|
}
|
|
58784
59730
|
return contents;
|
|
58785
59731
|
};
|
|
59732
|
+
const deserializeAws_ec2ModifyIpamResourceDiscoveryResult = (output, context) => {
|
|
59733
|
+
const contents = {
|
|
59734
|
+
IpamResourceDiscovery: undefined,
|
|
59735
|
+
};
|
|
59736
|
+
if (output["ipamResourceDiscovery"] !== undefined) {
|
|
59737
|
+
contents.IpamResourceDiscovery = deserializeAws_ec2IpamResourceDiscovery(output["ipamResourceDiscovery"], context);
|
|
59738
|
+
}
|
|
59739
|
+
return contents;
|
|
59740
|
+
};
|
|
58786
59741
|
const deserializeAws_ec2ModifyIpamResult = (output, context) => {
|
|
58787
59742
|
const contents = {
|
|
58788
59743
|
Ipam: undefined,
|