@aws-sdk/client-ec2 3.218.0 → 3.219.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 +75 -0
- package/dist-cjs/commands/CreateSubnetCidrReservationCommand.js +1 -2
- package/dist-cjs/commands/CreateSubnetCommand.js +3 -3
- package/dist-cjs/commands/DeregisterInstanceEventNotificationAttributesCommand.js +3 -3
- package/dist-cjs/commands/DescribeAwsNetworkPerformanceMetricSubscriptionsCommand.js +46 -0
- package/dist-cjs/commands/DescribeIpamScopesCommand.js +3 -3
- package/dist-cjs/commands/DescribeIpamsCommand.js +2 -1
- package/dist-cjs/commands/DescribeIpv6PoolsCommand.js +3 -3
- package/dist-cjs/commands/DescribeKeyPairsCommand.js +3 -3
- package/dist-cjs/commands/DisableAwsNetworkPerformanceMetricSubscriptionCommand.js +46 -0
- package/dist-cjs/commands/DisassociateIamInstanceProfileCommand.js +2 -1
- package/dist-cjs/commands/DisassociateInstanceEventWindowCommand.js +3 -3
- package/dist-cjs/commands/DisassociateRouteTableCommand.js +2 -2
- package/dist-cjs/commands/DisassociateSubnetCidrBlockCommand.js +3 -3
- package/dist-cjs/commands/DisassociateTransitGatewayMulticastDomainCommand.js +3 -3
- package/dist-cjs/commands/DisassociateTransitGatewayPolicyTableCommand.js +3 -3
- package/dist-cjs/commands/DisassociateTransitGatewayRouteTableCommand.js +1 -2
- package/dist-cjs/commands/EnableAwsNetworkPerformanceMetricSubscriptionCommand.js +46 -0
- package/dist-cjs/commands/EnableReachabilityAnalyzerOrganizationSharingCommand.js +46 -0
- package/dist-cjs/commands/GetAwsNetworkPerformanceDataCommand.js +46 -0
- package/dist-cjs/commands/ModifyTransitGatewayCommand.js +2 -1
- package/dist-cjs/commands/ModifyTransitGatewayPrefixListReferenceCommand.js +3 -3
- package/dist-cjs/commands/ModifyTransitGatewayVpcAttachmentCommand.js +3 -3
- package/dist-cjs/commands/ModifyVolumeAttributeCommand.js +2 -2
- package/dist-cjs/commands/ModifyVolumeCommand.js +3 -3
- package/dist-cjs/commands/ModifyVpcAttributeCommand.js +2 -2
- package/dist-cjs/commands/ModifyVpcEndpointCommand.js +3 -3
- package/dist-cjs/commands/ModifyVpcEndpointConnectionNotificationCommand.js +3 -3
- package/dist-cjs/commands/ModifyVpcEndpointServiceConfigurationCommand.js +3 -3
- package/dist-cjs/commands/ModifyVpcEndpointServicePayerResponsibilityCommand.js +3 -3
- package/dist-cjs/commands/ModifyVpcEndpointServicePermissionsCommand.js +3 -3
- package/dist-cjs/commands/index.js +5 -0
- package/dist-cjs/models/models_0.js +13 -14
- package/dist-cjs/models/models_1.js +23 -23
- package/dist-cjs/models/models_2.js +23 -22
- package/dist-cjs/models/models_3.js +51 -46
- package/dist-cjs/models/models_4.js +54 -54
- package/dist-cjs/models/models_5.js +90 -90
- package/dist-cjs/models/models_6.js +88 -4
- package/dist-cjs/pagination/DescribeAwsNetworkPerformanceMetricSubscriptionsPaginator.js +36 -0
- package/dist-cjs/pagination/GetAwsNetworkPerformanceDataPaginator.js +36 -0
- package/dist-cjs/pagination/index.js +3 -1
- package/dist-cjs/protocols/Aws_ec2.js +617 -18
- package/dist-es/EC2.js +75 -0
- package/dist-es/commands/CreateSubnetCidrReservationCommand.js +1 -2
- package/dist-es/commands/CreateSubnetCommand.js +1 -1
- package/dist-es/commands/DeregisterInstanceEventNotificationAttributesCommand.js +1 -1
- package/dist-es/commands/DescribeAwsNetworkPerformanceMetricSubscriptionsCommand.js +42 -0
- package/dist-es/commands/DescribeIpamScopesCommand.js +1 -1
- package/dist-es/commands/DescribeIpamsCommand.js +2 -1
- package/dist-es/commands/DescribeIpv6PoolsCommand.js +1 -1
- package/dist-es/commands/DescribeKeyPairsCommand.js +1 -1
- package/dist-es/commands/DisableAwsNetworkPerformanceMetricSubscriptionCommand.js +42 -0
- package/dist-es/commands/DisassociateIamInstanceProfileCommand.js +2 -1
- package/dist-es/commands/DisassociateInstanceEventWindowCommand.js +1 -1
- package/dist-es/commands/DisassociateRouteTableCommand.js +1 -1
- package/dist-es/commands/DisassociateSubnetCidrBlockCommand.js +1 -1
- package/dist-es/commands/DisassociateTransitGatewayMulticastDomainCommand.js +1 -1
- package/dist-es/commands/DisassociateTransitGatewayPolicyTableCommand.js +1 -1
- package/dist-es/commands/DisassociateTransitGatewayRouteTableCommand.js +1 -2
- package/dist-es/commands/EnableAwsNetworkPerformanceMetricSubscriptionCommand.js +42 -0
- package/dist-es/commands/EnableReachabilityAnalyzerOrganizationSharingCommand.js +42 -0
- package/dist-es/commands/GetAwsNetworkPerformanceDataCommand.js +42 -0
- package/dist-es/commands/ModifyTransitGatewayCommand.js +2 -1
- package/dist-es/commands/ModifyTransitGatewayPrefixListReferenceCommand.js +1 -1
- package/dist-es/commands/ModifyTransitGatewayVpcAttachmentCommand.js +1 -1
- package/dist-es/commands/ModifyVolumeAttributeCommand.js +1 -1
- package/dist-es/commands/ModifyVolumeCommand.js +1 -1
- package/dist-es/commands/ModifyVpcAttributeCommand.js +1 -1
- package/dist-es/commands/ModifyVpcEndpointCommand.js +1 -1
- package/dist-es/commands/ModifyVpcEndpointConnectionNotificationCommand.js +1 -1
- package/dist-es/commands/ModifyVpcEndpointServiceConfigurationCommand.js +1 -1
- package/dist-es/commands/ModifyVpcEndpointServicePayerResponsibilityCommand.js +1 -1
- package/dist-es/commands/ModifyVpcEndpointServicePermissionsCommand.js +1 -1
- package/dist-es/commands/index.js +5 -0
- package/dist-es/models/models_0.js +6 -8
- package/dist-es/models/models_1.js +14 -14
- package/dist-es/models/models_2.js +14 -12
- package/dist-es/models/models_3.js +38 -30
- package/dist-es/models/models_4.js +36 -36
- package/dist-es/models/models_5.js +63 -63
- package/dist-es/models/models_6.js +63 -0
- package/dist-es/pagination/DescribeAwsNetworkPerformanceMetricSubscriptionsPaginator.js +32 -0
- package/dist-es/pagination/GetAwsNetworkPerformanceDataPaginator.js +32 -0
- package/dist-es/pagination/index.js +3 -1
- package/dist-es/protocols/Aws_ec2.js +588 -0
- package/dist-types/EC2.d.ts +36 -3
- package/dist-types/EC2Client.d.ts +7 -2
- package/dist-types/commands/CreateReplaceRootVolumeTaskCommand.d.ts +1 -1
- package/dist-types/commands/CreateSubnetCidrReservationCommand.d.ts +1 -2
- package/dist-types/commands/CreateSubnetCommand.d.ts +1 -1
- package/dist-types/commands/DeregisterInstanceEventNotificationAttributesCommand.d.ts +1 -1
- package/dist-types/commands/DescribeAwsNetworkPerformanceMetricSubscriptionsCommand.d.ts +37 -0
- package/dist-types/commands/DescribeIpamScopesCommand.d.ts +1 -1
- package/dist-types/commands/DescribeIpamsCommand.d.ts +2 -1
- package/dist-types/commands/DescribeIpv6PoolsCommand.d.ts +1 -1
- package/dist-types/commands/DescribeKeyPairsCommand.d.ts +1 -1
- package/dist-types/commands/DescribeReplaceRootVolumeTasksCommand.d.ts +1 -1
- package/dist-types/commands/DisableAwsNetworkPerformanceMetricSubscriptionCommand.d.ts +37 -0
- package/dist-types/commands/DisassociateIamInstanceProfileCommand.d.ts +2 -1
- package/dist-types/commands/DisassociateInstanceEventWindowCommand.d.ts +1 -1
- package/dist-types/commands/DisassociateRouteTableCommand.d.ts +1 -1
- package/dist-types/commands/DisassociateSubnetCidrBlockCommand.d.ts +1 -1
- package/dist-types/commands/DisassociateTransitGatewayMulticastDomainCommand.d.ts +1 -1
- package/dist-types/commands/DisassociateTransitGatewayPolicyTableCommand.d.ts +1 -1
- package/dist-types/commands/DisassociateTransitGatewayRouteTableCommand.d.ts +1 -2
- package/dist-types/commands/EnableAwsNetworkPerformanceMetricSubscriptionCommand.d.ts +37 -0
- package/dist-types/commands/EnableReachabilityAnalyzerOrganizationSharingCommand.d.ts +20 -0
- package/dist-types/commands/GetAwsNetworkPerformanceDataCommand.d.ts +37 -0
- package/dist-types/commands/ModifyTransitGatewayCommand.d.ts +2 -1
- package/dist-types/commands/ModifyTransitGatewayPrefixListReferenceCommand.d.ts +1 -1
- package/dist-types/commands/ModifyTransitGatewayVpcAttachmentCommand.d.ts +1 -1
- package/dist-types/commands/ModifyVolumeAttributeCommand.d.ts +1 -1
- package/dist-types/commands/ModifyVolumeCommand.d.ts +1 -1
- package/dist-types/commands/ModifyVpcAttributeCommand.d.ts +1 -1
- package/dist-types/commands/ModifyVpcEndpointCommand.d.ts +1 -1
- package/dist-types/commands/ModifyVpcEndpointConnectionNotificationCommand.d.ts +1 -1
- package/dist-types/commands/ModifyVpcEndpointServiceConfigurationCommand.d.ts +1 -1
- package/dist-types/commands/ModifyVpcEndpointServicePayerResponsibilityCommand.d.ts +1 -1
- package/dist-types/commands/ModifyVpcEndpointServicePermissionsCommand.d.ts +1 -1
- package/dist-types/commands/UnassignPrivateIpAddressesCommand.d.ts +2 -1
- package/dist-types/commands/index.d.ts +5 -0
- package/dist-types/models/models_0.d.ts +47 -32
- package/dist-types/models/models_1.d.ts +135 -175
- package/dist-types/models/models_2.d.ts +124 -64
- package/dist-types/models/models_3.d.ts +191 -292
- package/dist-types/models/models_4.d.ts +373 -221
- package/dist-types/models/models_5.d.ts +396 -526
- package/dist-types/models/models_6.d.ts +539 -12
- package/dist-types/pagination/DescribeAwsNetworkPerformanceMetricSubscriptionsPaginator.d.ts +4 -0
- package/dist-types/pagination/GetAwsNetworkPerformanceDataPaginator.d.ts +4 -0
- package/dist-types/pagination/index.d.ts +3 -1
- package/dist-types/protocols/Aws_ec2.d.ts +15 -0
- package/dist-types/ts3.4/EC2.d.ts +109 -0
- package/dist-types/ts3.4/EC2Client.d.ts +30 -0
- package/dist-types/ts3.4/commands/CreateSubnetCidrReservationCommand.d.ts +4 -2
- package/dist-types/ts3.4/commands/CreateSubnetCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/DeregisterInstanceEventNotificationAttributesCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/DescribeAwsNetworkPerformanceMetricSubscriptionsCommand.d.ts +43 -0
- package/dist-types/ts3.4/commands/DescribeIpamScopesCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/DescribeIpamsCommand.d.ts +2 -1
- package/dist-types/ts3.4/commands/DescribeIpv6PoolsCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/DescribeKeyPairsCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/DisableAwsNetworkPerformanceMetricSubscriptionCommand.d.ts +43 -0
- package/dist-types/ts3.4/commands/DisassociateIamInstanceProfileCommand.d.ts +2 -4
- package/dist-types/ts3.4/commands/DisassociateInstanceEventWindowCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/DisassociateRouteTableCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/DisassociateSubnetCidrBlockCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/DisassociateTransitGatewayMulticastDomainCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/DisassociateTransitGatewayPolicyTableCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/DisassociateTransitGatewayRouteTableCommand.d.ts +4 -2
- package/dist-types/ts3.4/commands/EnableAwsNetworkPerformanceMetricSubscriptionCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/EnableReachabilityAnalyzerOrganizationSharingCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/GetAwsNetworkPerformanceDataCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/ModifyTransitGatewayCommand.d.ts +2 -4
- package/dist-types/ts3.4/commands/ModifyTransitGatewayPrefixListReferenceCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ModifyTransitGatewayVpcAttachmentCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ModifyVolumeAttributeCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ModifyVolumeCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ModifyVpcAttributeCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ModifyVpcEndpointCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ModifyVpcEndpointConnectionNotificationCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ModifyVpcEndpointServiceConfigurationCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ModifyVpcEndpointServicePayerResponsibilityCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ModifyVpcEndpointServicePermissionsCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/index.d.ts +5 -0
- package/dist-types/ts3.4/models/models_0.d.ts +14 -12
- package/dist-types/ts3.4/models/models_1.d.ts +28 -37
- package/dist-types/ts3.4/models/models_2.d.ts +36 -28
- package/dist-types/ts3.4/models/models_3.d.ts +67 -84
- package/dist-types/ts3.4/models/models_4.d.ts +103 -90
- package/dist-types/ts3.4/models/models_5.d.ts +165 -190
- package/dist-types/ts3.4/models/models_6.d.ts +195 -6
- package/dist-types/ts3.4/pagination/DescribeAwsNetworkPerformanceMetricSubscriptionsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/GetAwsNetworkPerformanceDataPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +3 -1
- package/dist-types/ts3.4/protocols/Aws_ec2.d.ts +60 -0
- package/package.json +1 -1
|
@@ -2487,6 +2487,18 @@ export const serializeAws_ec2DescribeAvailabilityZonesCommand = async (input, co
|
|
|
2487
2487
|
});
|
|
2488
2488
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
2489
2489
|
};
|
|
2490
|
+
export const serializeAws_ec2DescribeAwsNetworkPerformanceMetricSubscriptionsCommand = async (input, context) => {
|
|
2491
|
+
const headers = {
|
|
2492
|
+
"content-type": "application/x-www-form-urlencoded",
|
|
2493
|
+
};
|
|
2494
|
+
let body;
|
|
2495
|
+
body = buildFormUrlencodedString({
|
|
2496
|
+
...serializeAws_ec2DescribeAwsNetworkPerformanceMetricSubscriptionsRequest(input, context),
|
|
2497
|
+
Action: "DescribeAwsNetworkPerformanceMetricSubscriptions",
|
|
2498
|
+
Version: "2016-11-15",
|
|
2499
|
+
});
|
|
2500
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
2501
|
+
};
|
|
2490
2502
|
export const serializeAws_ec2DescribeBundleTasksCommand = async (input, context) => {
|
|
2491
2503
|
const headers = {
|
|
2492
2504
|
"content-type": "application/x-www-form-urlencoded",
|
|
@@ -4119,6 +4131,18 @@ export const serializeAws_ec2DisableAddressTransferCommand = async (input, conte
|
|
|
4119
4131
|
});
|
|
4120
4132
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
4121
4133
|
};
|
|
4134
|
+
export const serializeAws_ec2DisableAwsNetworkPerformanceMetricSubscriptionCommand = async (input, context) => {
|
|
4135
|
+
const headers = {
|
|
4136
|
+
"content-type": "application/x-www-form-urlencoded",
|
|
4137
|
+
};
|
|
4138
|
+
let body;
|
|
4139
|
+
body = buildFormUrlencodedString({
|
|
4140
|
+
...serializeAws_ec2DisableAwsNetworkPerformanceMetricSubscriptionRequest(input, context),
|
|
4141
|
+
Action: "DisableAwsNetworkPerformanceMetricSubscription",
|
|
4142
|
+
Version: "2016-11-15",
|
|
4143
|
+
});
|
|
4144
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
4145
|
+
};
|
|
4122
4146
|
export const serializeAws_ec2DisableEbsEncryptionByDefaultCommand = async (input, context) => {
|
|
4123
4147
|
const headers = {
|
|
4124
4148
|
"content-type": "application/x-www-form-urlencoded",
|
|
@@ -4395,6 +4419,18 @@ export const serializeAws_ec2EnableAddressTransferCommand = async (input, contex
|
|
|
4395
4419
|
});
|
|
4396
4420
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
4397
4421
|
};
|
|
4422
|
+
export const serializeAws_ec2EnableAwsNetworkPerformanceMetricSubscriptionCommand = async (input, context) => {
|
|
4423
|
+
const headers = {
|
|
4424
|
+
"content-type": "application/x-www-form-urlencoded",
|
|
4425
|
+
};
|
|
4426
|
+
let body;
|
|
4427
|
+
body = buildFormUrlencodedString({
|
|
4428
|
+
...serializeAws_ec2EnableAwsNetworkPerformanceMetricSubscriptionRequest(input, context),
|
|
4429
|
+
Action: "EnableAwsNetworkPerformanceMetricSubscription",
|
|
4430
|
+
Version: "2016-11-15",
|
|
4431
|
+
});
|
|
4432
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
4433
|
+
};
|
|
4398
4434
|
export const serializeAws_ec2EnableEbsEncryptionByDefaultCommand = async (input, context) => {
|
|
4399
4435
|
const headers = {
|
|
4400
4436
|
"content-type": "application/x-www-form-urlencoded",
|
|
@@ -4455,6 +4491,18 @@ export const serializeAws_ec2EnableIpamOrganizationAdminAccountCommand = async (
|
|
|
4455
4491
|
});
|
|
4456
4492
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
4457
4493
|
};
|
|
4494
|
+
export const serializeAws_ec2EnableReachabilityAnalyzerOrganizationSharingCommand = async (input, context) => {
|
|
4495
|
+
const headers = {
|
|
4496
|
+
"content-type": "application/x-www-form-urlencoded",
|
|
4497
|
+
};
|
|
4498
|
+
let body;
|
|
4499
|
+
body = buildFormUrlencodedString({
|
|
4500
|
+
...serializeAws_ec2EnableReachabilityAnalyzerOrganizationSharingRequest(input, context),
|
|
4501
|
+
Action: "EnableReachabilityAnalyzerOrganizationSharing",
|
|
4502
|
+
Version: "2016-11-15",
|
|
4503
|
+
});
|
|
4504
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
4505
|
+
};
|
|
4458
4506
|
export const serializeAws_ec2EnableSerialConsoleAccessCommand = async (input, context) => {
|
|
4459
4507
|
const headers = {
|
|
4460
4508
|
"content-type": "application/x-www-form-urlencoded",
|
|
@@ -4599,6 +4647,18 @@ export const serializeAws_ec2GetAssociatedIpv6PoolCidrsCommand = async (input, c
|
|
|
4599
4647
|
});
|
|
4600
4648
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
4601
4649
|
};
|
|
4650
|
+
export const serializeAws_ec2GetAwsNetworkPerformanceDataCommand = async (input, context) => {
|
|
4651
|
+
const headers = {
|
|
4652
|
+
"content-type": "application/x-www-form-urlencoded",
|
|
4653
|
+
};
|
|
4654
|
+
let body;
|
|
4655
|
+
body = buildFormUrlencodedString({
|
|
4656
|
+
...serializeAws_ec2GetAwsNetworkPerformanceDataRequest(input, context),
|
|
4657
|
+
Action: "GetAwsNetworkPerformanceData",
|
|
4658
|
+
Version: "2016-11-15",
|
|
4659
|
+
});
|
|
4660
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
4661
|
+
};
|
|
4602
4662
|
export const serializeAws_ec2GetCapacityReservationUsageCommand = async (input, context) => {
|
|
4603
4663
|
const headers = {
|
|
4604
4664
|
"content-type": "application/x-www-form-urlencoded",
|
|
@@ -12072,6 +12132,33 @@ const deserializeAws_ec2DescribeAvailabilityZonesCommandError = async (output, c
|
|
|
12072
12132
|
errorCode,
|
|
12073
12133
|
});
|
|
12074
12134
|
};
|
|
12135
|
+
export const deserializeAws_ec2DescribeAwsNetworkPerformanceMetricSubscriptionsCommand = async (output, context) => {
|
|
12136
|
+
if (output.statusCode >= 300) {
|
|
12137
|
+
return deserializeAws_ec2DescribeAwsNetworkPerformanceMetricSubscriptionsCommandError(output, context);
|
|
12138
|
+
}
|
|
12139
|
+
const data = await parseBody(output.body, context);
|
|
12140
|
+
let contents = {};
|
|
12141
|
+
contents = deserializeAws_ec2DescribeAwsNetworkPerformanceMetricSubscriptionsResult(data, context);
|
|
12142
|
+
const response = {
|
|
12143
|
+
$metadata: deserializeMetadata(output),
|
|
12144
|
+
...contents,
|
|
12145
|
+
};
|
|
12146
|
+
return Promise.resolve(response);
|
|
12147
|
+
};
|
|
12148
|
+
const deserializeAws_ec2DescribeAwsNetworkPerformanceMetricSubscriptionsCommandError = async (output, context) => {
|
|
12149
|
+
const parsedOutput = {
|
|
12150
|
+
...output,
|
|
12151
|
+
body: await parseErrorBody(output.body, context),
|
|
12152
|
+
};
|
|
12153
|
+
const errorCode = loadEc2ErrorCode(output, parsedOutput.body);
|
|
12154
|
+
const parsedBody = parsedOutput.body;
|
|
12155
|
+
throwDefaultError({
|
|
12156
|
+
output,
|
|
12157
|
+
parsedBody: parsedBody.Errors.Error,
|
|
12158
|
+
exceptionCtor: __BaseException,
|
|
12159
|
+
errorCode,
|
|
12160
|
+
});
|
|
12161
|
+
};
|
|
12075
12162
|
export const deserializeAws_ec2DescribeBundleTasksCommand = async (output, context) => {
|
|
12076
12163
|
if (output.statusCode >= 300) {
|
|
12077
12164
|
return deserializeAws_ec2DescribeBundleTasksCommandError(output, context);
|
|
@@ -15735,6 +15822,33 @@ const deserializeAws_ec2DisableAddressTransferCommandError = async (output, cont
|
|
|
15735
15822
|
errorCode,
|
|
15736
15823
|
});
|
|
15737
15824
|
};
|
|
15825
|
+
export const deserializeAws_ec2DisableAwsNetworkPerformanceMetricSubscriptionCommand = async (output, context) => {
|
|
15826
|
+
if (output.statusCode >= 300) {
|
|
15827
|
+
return deserializeAws_ec2DisableAwsNetworkPerformanceMetricSubscriptionCommandError(output, context);
|
|
15828
|
+
}
|
|
15829
|
+
const data = await parseBody(output.body, context);
|
|
15830
|
+
let contents = {};
|
|
15831
|
+
contents = deserializeAws_ec2DisableAwsNetworkPerformanceMetricSubscriptionResult(data, context);
|
|
15832
|
+
const response = {
|
|
15833
|
+
$metadata: deserializeMetadata(output),
|
|
15834
|
+
...contents,
|
|
15835
|
+
};
|
|
15836
|
+
return Promise.resolve(response);
|
|
15837
|
+
};
|
|
15838
|
+
const deserializeAws_ec2DisableAwsNetworkPerformanceMetricSubscriptionCommandError = async (output, context) => {
|
|
15839
|
+
const parsedOutput = {
|
|
15840
|
+
...output,
|
|
15841
|
+
body: await parseErrorBody(output.body, context),
|
|
15842
|
+
};
|
|
15843
|
+
const errorCode = loadEc2ErrorCode(output, parsedOutput.body);
|
|
15844
|
+
const parsedBody = parsedOutput.body;
|
|
15845
|
+
throwDefaultError({
|
|
15846
|
+
output,
|
|
15847
|
+
parsedBody: parsedBody.Errors.Error,
|
|
15848
|
+
exceptionCtor: __BaseException,
|
|
15849
|
+
errorCode,
|
|
15850
|
+
});
|
|
15851
|
+
};
|
|
15738
15852
|
export const deserializeAws_ec2DisableEbsEncryptionByDefaultCommand = async (output, context) => {
|
|
15739
15853
|
if (output.statusCode >= 300) {
|
|
15740
15854
|
return deserializeAws_ec2DisableEbsEncryptionByDefaultCommandError(output, context);
|
|
@@ -16347,6 +16461,33 @@ const deserializeAws_ec2EnableAddressTransferCommandError = async (output, conte
|
|
|
16347
16461
|
errorCode,
|
|
16348
16462
|
});
|
|
16349
16463
|
};
|
|
16464
|
+
export const deserializeAws_ec2EnableAwsNetworkPerformanceMetricSubscriptionCommand = async (output, context) => {
|
|
16465
|
+
if (output.statusCode >= 300) {
|
|
16466
|
+
return deserializeAws_ec2EnableAwsNetworkPerformanceMetricSubscriptionCommandError(output, context);
|
|
16467
|
+
}
|
|
16468
|
+
const data = await parseBody(output.body, context);
|
|
16469
|
+
let contents = {};
|
|
16470
|
+
contents = deserializeAws_ec2EnableAwsNetworkPerformanceMetricSubscriptionResult(data, context);
|
|
16471
|
+
const response = {
|
|
16472
|
+
$metadata: deserializeMetadata(output),
|
|
16473
|
+
...contents,
|
|
16474
|
+
};
|
|
16475
|
+
return Promise.resolve(response);
|
|
16476
|
+
};
|
|
16477
|
+
const deserializeAws_ec2EnableAwsNetworkPerformanceMetricSubscriptionCommandError = async (output, context) => {
|
|
16478
|
+
const parsedOutput = {
|
|
16479
|
+
...output,
|
|
16480
|
+
body: await parseErrorBody(output.body, context),
|
|
16481
|
+
};
|
|
16482
|
+
const errorCode = loadEc2ErrorCode(output, parsedOutput.body);
|
|
16483
|
+
const parsedBody = parsedOutput.body;
|
|
16484
|
+
throwDefaultError({
|
|
16485
|
+
output,
|
|
16486
|
+
parsedBody: parsedBody.Errors.Error,
|
|
16487
|
+
exceptionCtor: __BaseException,
|
|
16488
|
+
errorCode,
|
|
16489
|
+
});
|
|
16490
|
+
};
|
|
16350
16491
|
export const deserializeAws_ec2EnableEbsEncryptionByDefaultCommand = async (output, context) => {
|
|
16351
16492
|
if (output.statusCode >= 300) {
|
|
16352
16493
|
return deserializeAws_ec2EnableEbsEncryptionByDefaultCommandError(output, context);
|
|
@@ -16482,6 +16623,33 @@ const deserializeAws_ec2EnableIpamOrganizationAdminAccountCommandError = async (
|
|
|
16482
16623
|
errorCode,
|
|
16483
16624
|
});
|
|
16484
16625
|
};
|
|
16626
|
+
export const deserializeAws_ec2EnableReachabilityAnalyzerOrganizationSharingCommand = async (output, context) => {
|
|
16627
|
+
if (output.statusCode >= 300) {
|
|
16628
|
+
return deserializeAws_ec2EnableReachabilityAnalyzerOrganizationSharingCommandError(output, context);
|
|
16629
|
+
}
|
|
16630
|
+
const data = await parseBody(output.body, context);
|
|
16631
|
+
let contents = {};
|
|
16632
|
+
contents = deserializeAws_ec2EnableReachabilityAnalyzerOrganizationSharingResult(data, context);
|
|
16633
|
+
const response = {
|
|
16634
|
+
$metadata: deserializeMetadata(output),
|
|
16635
|
+
...contents,
|
|
16636
|
+
};
|
|
16637
|
+
return Promise.resolve(response);
|
|
16638
|
+
};
|
|
16639
|
+
const deserializeAws_ec2EnableReachabilityAnalyzerOrganizationSharingCommandError = async (output, context) => {
|
|
16640
|
+
const parsedOutput = {
|
|
16641
|
+
...output,
|
|
16642
|
+
body: await parseErrorBody(output.body, context),
|
|
16643
|
+
};
|
|
16644
|
+
const errorCode = loadEc2ErrorCode(output, parsedOutput.body);
|
|
16645
|
+
const parsedBody = parsedOutput.body;
|
|
16646
|
+
throwDefaultError({
|
|
16647
|
+
output,
|
|
16648
|
+
parsedBody: parsedBody.Errors.Error,
|
|
16649
|
+
exceptionCtor: __BaseException,
|
|
16650
|
+
errorCode,
|
|
16651
|
+
});
|
|
16652
|
+
};
|
|
16485
16653
|
export const deserializeAws_ec2EnableSerialConsoleAccessCommand = async (output, context) => {
|
|
16486
16654
|
if (output.statusCode >= 300) {
|
|
16487
16655
|
return deserializeAws_ec2EnableSerialConsoleAccessCommandError(output, context);
|
|
@@ -16800,6 +16968,33 @@ const deserializeAws_ec2GetAssociatedIpv6PoolCidrsCommandError = async (output,
|
|
|
16800
16968
|
errorCode,
|
|
16801
16969
|
});
|
|
16802
16970
|
};
|
|
16971
|
+
export const deserializeAws_ec2GetAwsNetworkPerformanceDataCommand = async (output, context) => {
|
|
16972
|
+
if (output.statusCode >= 300) {
|
|
16973
|
+
return deserializeAws_ec2GetAwsNetworkPerformanceDataCommandError(output, context);
|
|
16974
|
+
}
|
|
16975
|
+
const data = await parseBody(output.body, context);
|
|
16976
|
+
let contents = {};
|
|
16977
|
+
contents = deserializeAws_ec2GetAwsNetworkPerformanceDataResult(data, context);
|
|
16978
|
+
const response = {
|
|
16979
|
+
$metadata: deserializeMetadata(output),
|
|
16980
|
+
...contents,
|
|
16981
|
+
};
|
|
16982
|
+
return Promise.resolve(response);
|
|
16983
|
+
};
|
|
16984
|
+
const deserializeAws_ec2GetAwsNetworkPerformanceDataCommandError = async (output, context) => {
|
|
16985
|
+
const parsedOutput = {
|
|
16986
|
+
...output,
|
|
16987
|
+
body: await parseErrorBody(output.body, context),
|
|
16988
|
+
};
|
|
16989
|
+
const errorCode = loadEc2ErrorCode(output, parsedOutput.body);
|
|
16990
|
+
const parsedBody = parsedOutput.body;
|
|
16991
|
+
throwDefaultError({
|
|
16992
|
+
output,
|
|
16993
|
+
parsedBody: parsedBody.Errors.Error,
|
|
16994
|
+
exceptionCtor: __BaseException,
|
|
16995
|
+
errorCode,
|
|
16996
|
+
});
|
|
16997
|
+
};
|
|
16803
16998
|
export const deserializeAws_ec2GetCapacityReservationUsageCommand = async (output, context) => {
|
|
16804
16999
|
if (output.statusCode >= 300) {
|
|
16805
17000
|
return deserializeAws_ec2GetCapacityReservationUsageCommandError(output, context);
|
|
@@ -22067,6 +22262,13 @@ const serializeAws_ec2AttachNetworkInterfaceRequest = (input, context) => {
|
|
|
22067
22262
|
if (input.NetworkCardIndex != null) {
|
|
22068
22263
|
entries["NetworkCardIndex"] = input.NetworkCardIndex;
|
|
22069
22264
|
}
|
|
22265
|
+
if (input.EnaSrdSpecification != null) {
|
|
22266
|
+
const memberEntries = serializeAws_ec2EnaSrdSpecification(input.EnaSrdSpecification, context);
|
|
22267
|
+
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
22268
|
+
const loc = `EnaSrdSpecification.${key}`;
|
|
22269
|
+
entries[loc] = value;
|
|
22270
|
+
});
|
|
22271
|
+
}
|
|
22070
22272
|
return entries;
|
|
22071
22273
|
};
|
|
22072
22274
|
const serializeAws_ec2AttachVolumeRequest = (input, context) => {
|
|
@@ -25591,6 +25793,43 @@ const serializeAws_ec2CustomerGatewayIdStringList = (input, context) => {
|
|
|
25591
25793
|
}
|
|
25592
25794
|
return entries;
|
|
25593
25795
|
};
|
|
25796
|
+
const serializeAws_ec2DataQueries = (input, context) => {
|
|
25797
|
+
const entries = {};
|
|
25798
|
+
let counter = 1;
|
|
25799
|
+
for (const entry of input) {
|
|
25800
|
+
if (entry === null) {
|
|
25801
|
+
continue;
|
|
25802
|
+
}
|
|
25803
|
+
const memberEntries = serializeAws_ec2DataQuery(entry, context);
|
|
25804
|
+
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
25805
|
+
entries[`Member.${counter}.${key}`] = value;
|
|
25806
|
+
});
|
|
25807
|
+
counter++;
|
|
25808
|
+
}
|
|
25809
|
+
return entries;
|
|
25810
|
+
};
|
|
25811
|
+
const serializeAws_ec2DataQuery = (input, context) => {
|
|
25812
|
+
const entries = {};
|
|
25813
|
+
if (input.Id != null) {
|
|
25814
|
+
entries["Id"] = input.Id;
|
|
25815
|
+
}
|
|
25816
|
+
if (input.Source != null) {
|
|
25817
|
+
entries["Source"] = input.Source;
|
|
25818
|
+
}
|
|
25819
|
+
if (input.Destination != null) {
|
|
25820
|
+
entries["Destination"] = input.Destination;
|
|
25821
|
+
}
|
|
25822
|
+
if (input.Metric != null) {
|
|
25823
|
+
entries["Metric"] = input.Metric;
|
|
25824
|
+
}
|
|
25825
|
+
if (input.Statistic != null) {
|
|
25826
|
+
entries["Statistic"] = input.Statistic;
|
|
25827
|
+
}
|
|
25828
|
+
if (input.Period != null) {
|
|
25829
|
+
entries["Period"] = input.Period;
|
|
25830
|
+
}
|
|
25831
|
+
return entries;
|
|
25832
|
+
};
|
|
25594
25833
|
const serializeAws_ec2DedicatedHostIdList = (input, context) => {
|
|
25595
25834
|
const entries = {};
|
|
25596
25835
|
let counter = 1;
|
|
@@ -26692,6 +26931,29 @@ const serializeAws_ec2DescribeAvailabilityZonesRequest = (input, context) => {
|
|
|
26692
26931
|
}
|
|
26693
26932
|
return entries;
|
|
26694
26933
|
};
|
|
26934
|
+
const serializeAws_ec2DescribeAwsNetworkPerformanceMetricSubscriptionsRequest = (input, context) => {
|
|
26935
|
+
const entries = {};
|
|
26936
|
+
if (input.MaxResults != null) {
|
|
26937
|
+
entries["MaxResults"] = input.MaxResults;
|
|
26938
|
+
}
|
|
26939
|
+
if (input.NextToken != null) {
|
|
26940
|
+
entries["NextToken"] = input.NextToken;
|
|
26941
|
+
}
|
|
26942
|
+
if (input.Filters != null) {
|
|
26943
|
+
const memberEntries = serializeAws_ec2FilterList(input.Filters, context);
|
|
26944
|
+
if (input.Filters?.length === 0) {
|
|
26945
|
+
entries.Filter = [];
|
|
26946
|
+
}
|
|
26947
|
+
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
26948
|
+
const loc = `Filter.${key.substring(key.indexOf(".") + 1)}`;
|
|
26949
|
+
entries[loc] = value;
|
|
26950
|
+
});
|
|
26951
|
+
}
|
|
26952
|
+
if (input.DryRun != null) {
|
|
26953
|
+
entries["DryRun"] = input.DryRun;
|
|
26954
|
+
}
|
|
26955
|
+
return entries;
|
|
26956
|
+
};
|
|
26695
26957
|
const serializeAws_ec2DescribeBundleTasksRequest = (input, context) => {
|
|
26696
26958
|
const entries = {};
|
|
26697
26959
|
if (input.BundleIds != null) {
|
|
@@ -30724,6 +30986,25 @@ const serializeAws_ec2DisableAddressTransferRequest = (input, context) => {
|
|
|
30724
30986
|
}
|
|
30725
30987
|
return entries;
|
|
30726
30988
|
};
|
|
30989
|
+
const serializeAws_ec2DisableAwsNetworkPerformanceMetricSubscriptionRequest = (input, context) => {
|
|
30990
|
+
const entries = {};
|
|
30991
|
+
if (input.Source != null) {
|
|
30992
|
+
entries["Source"] = input.Source;
|
|
30993
|
+
}
|
|
30994
|
+
if (input.Destination != null) {
|
|
30995
|
+
entries["Destination"] = input.Destination;
|
|
30996
|
+
}
|
|
30997
|
+
if (input.Metric != null) {
|
|
30998
|
+
entries["Metric"] = input.Metric;
|
|
30999
|
+
}
|
|
31000
|
+
if (input.Statistic != null) {
|
|
31001
|
+
entries["Statistic"] = input.Statistic;
|
|
31002
|
+
}
|
|
31003
|
+
if (input.DryRun != null) {
|
|
31004
|
+
entries["DryRun"] = input.DryRun;
|
|
31005
|
+
}
|
|
31006
|
+
return entries;
|
|
31007
|
+
};
|
|
30727
31008
|
const serializeAws_ec2DisableEbsEncryptionByDefaultRequest = (input, context) => {
|
|
30728
31009
|
const entries = {};
|
|
30729
31010
|
if (input.DryRun != null) {
|
|
@@ -31209,6 +31490,25 @@ const serializeAws_ec2EnableAddressTransferRequest = (input, context) => {
|
|
|
31209
31490
|
}
|
|
31210
31491
|
return entries;
|
|
31211
31492
|
};
|
|
31493
|
+
const serializeAws_ec2EnableAwsNetworkPerformanceMetricSubscriptionRequest = (input, context) => {
|
|
31494
|
+
const entries = {};
|
|
31495
|
+
if (input.Source != null) {
|
|
31496
|
+
entries["Source"] = input.Source;
|
|
31497
|
+
}
|
|
31498
|
+
if (input.Destination != null) {
|
|
31499
|
+
entries["Destination"] = input.Destination;
|
|
31500
|
+
}
|
|
31501
|
+
if (input.Metric != null) {
|
|
31502
|
+
entries["Metric"] = input.Metric;
|
|
31503
|
+
}
|
|
31504
|
+
if (input.Statistic != null) {
|
|
31505
|
+
entries["Statistic"] = input.Statistic;
|
|
31506
|
+
}
|
|
31507
|
+
if (input.DryRun != null) {
|
|
31508
|
+
entries["DryRun"] = input.DryRun;
|
|
31509
|
+
}
|
|
31510
|
+
return entries;
|
|
31511
|
+
};
|
|
31212
31512
|
const serializeAws_ec2EnableEbsEncryptionByDefaultRequest = (input, context) => {
|
|
31213
31513
|
const entries = {};
|
|
31214
31514
|
if (input.DryRun != null) {
|
|
@@ -31296,6 +31596,13 @@ const serializeAws_ec2EnableIpamOrganizationAdminAccountRequest = (input, contex
|
|
|
31296
31596
|
}
|
|
31297
31597
|
return entries;
|
|
31298
31598
|
};
|
|
31599
|
+
const serializeAws_ec2EnableReachabilityAnalyzerOrganizationSharingRequest = (input, context) => {
|
|
31600
|
+
const entries = {};
|
|
31601
|
+
if (input.DryRun != null) {
|
|
31602
|
+
entries["DryRun"] = input.DryRun;
|
|
31603
|
+
}
|
|
31604
|
+
return entries;
|
|
31605
|
+
};
|
|
31299
31606
|
const serializeAws_ec2EnableSerialConsoleAccessRequest = (input, context) => {
|
|
31300
31607
|
const entries = {};
|
|
31301
31608
|
if (input.DryRun != null) {
|
|
@@ -31359,6 +31666,27 @@ const serializeAws_ec2EnableVpcClassicLinkRequest = (input, context) => {
|
|
|
31359
31666
|
}
|
|
31360
31667
|
return entries;
|
|
31361
31668
|
};
|
|
31669
|
+
const serializeAws_ec2EnaSrdSpecification = (input, context) => {
|
|
31670
|
+
const entries = {};
|
|
31671
|
+
if (input.EnaSrdEnabled != null) {
|
|
31672
|
+
entries["EnaSrdEnabled"] = input.EnaSrdEnabled;
|
|
31673
|
+
}
|
|
31674
|
+
if (input.EnaSrdUdpSpecification != null) {
|
|
31675
|
+
const memberEntries = serializeAws_ec2EnaSrdUdpSpecification(input.EnaSrdUdpSpecification, context);
|
|
31676
|
+
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
31677
|
+
const loc = `EnaSrdUdpSpecification.${key}`;
|
|
31678
|
+
entries[loc] = value;
|
|
31679
|
+
});
|
|
31680
|
+
}
|
|
31681
|
+
return entries;
|
|
31682
|
+
};
|
|
31683
|
+
const serializeAws_ec2EnaSrdUdpSpecification = (input, context) => {
|
|
31684
|
+
const entries = {};
|
|
31685
|
+
if (input.EnaSrdUdpEnabled != null) {
|
|
31686
|
+
entries["EnaSrdUdpEnabled"] = input.EnaSrdUdpEnabled;
|
|
31687
|
+
}
|
|
31688
|
+
return entries;
|
|
31689
|
+
};
|
|
31362
31690
|
const serializeAws_ec2EnclaveOptionsRequest = (input, context) => {
|
|
31363
31691
|
const entries = {};
|
|
31364
31692
|
if (input.Enabled != null) {
|
|
@@ -31810,6 +32138,35 @@ const serializeAws_ec2GetAssociatedIpv6PoolCidrsRequest = (input, context) => {
|
|
|
31810
32138
|
}
|
|
31811
32139
|
return entries;
|
|
31812
32140
|
};
|
|
32141
|
+
const serializeAws_ec2GetAwsNetworkPerformanceDataRequest = (input, context) => {
|
|
32142
|
+
const entries = {};
|
|
32143
|
+
if (input.DataQueries != null) {
|
|
32144
|
+
const memberEntries = serializeAws_ec2DataQueries(input.DataQueries, context);
|
|
32145
|
+
if (input.DataQueries?.length === 0) {
|
|
32146
|
+
entries.DataQuery = [];
|
|
32147
|
+
}
|
|
32148
|
+
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
32149
|
+
const loc = `DataQuery.${key.substring(key.indexOf(".") + 1)}`;
|
|
32150
|
+
entries[loc] = value;
|
|
32151
|
+
});
|
|
32152
|
+
}
|
|
32153
|
+
if (input.StartTime != null) {
|
|
32154
|
+
entries["StartTime"] = input.StartTime.toISOString().split(".")[0] + "Z";
|
|
32155
|
+
}
|
|
32156
|
+
if (input.EndTime != null) {
|
|
32157
|
+
entries["EndTime"] = input.EndTime.toISOString().split(".")[0] + "Z";
|
|
32158
|
+
}
|
|
32159
|
+
if (input.MaxResults != null) {
|
|
32160
|
+
entries["MaxResults"] = input.MaxResults;
|
|
32161
|
+
}
|
|
32162
|
+
if (input.NextToken != null) {
|
|
32163
|
+
entries["NextToken"] = input.NextToken;
|
|
32164
|
+
}
|
|
32165
|
+
if (input.DryRun != null) {
|
|
32166
|
+
entries["DryRun"] = input.DryRun;
|
|
32167
|
+
}
|
|
32168
|
+
return entries;
|
|
32169
|
+
};
|
|
31813
32170
|
const serializeAws_ec2GetCapacityReservationUsageRequest = (input, context) => {
|
|
31814
32171
|
const entries = {};
|
|
31815
32172
|
if (input.CapacityReservationId != null) {
|
|
@@ -35879,6 +36236,13 @@ const serializeAws_ec2ModifyNetworkInterfaceAttributeRequest = (input, context)
|
|
|
35879
36236
|
entries[loc] = value;
|
|
35880
36237
|
});
|
|
35881
36238
|
}
|
|
36239
|
+
if (input.EnaSrdSpecification != null) {
|
|
36240
|
+
const memberEntries = serializeAws_ec2EnaSrdSpecification(input.EnaSrdSpecification, context);
|
|
36241
|
+
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
36242
|
+
const loc = `EnaSrdSpecification.${key}`;
|
|
36243
|
+
entries[loc] = value;
|
|
36244
|
+
});
|
|
36245
|
+
}
|
|
35882
36246
|
return entries;
|
|
35883
36247
|
};
|
|
35884
36248
|
const serializeAws_ec2ModifyPrivateDnsNameOptionsRequest = (input, context) => {
|
|
@@ -40650,6 +41014,16 @@ const serializeAws_ec2StartNetworkInsightsAnalysisRequest = (input, context) =>
|
|
|
40650
41014
|
if (input.NetworkInsightsPathId != null) {
|
|
40651
41015
|
entries["NetworkInsightsPathId"] = input.NetworkInsightsPathId;
|
|
40652
41016
|
}
|
|
41017
|
+
if (input.AdditionalAccounts != null) {
|
|
41018
|
+
const memberEntries = serializeAws_ec2ValueStringList(input.AdditionalAccounts, context);
|
|
41019
|
+
if (input.AdditionalAccounts?.length === 0) {
|
|
41020
|
+
entries.AdditionalAccount = [];
|
|
41021
|
+
}
|
|
41022
|
+
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
41023
|
+
const loc = `AdditionalAccount.${key.substring(key.indexOf(".") + 1)}`;
|
|
41024
|
+
entries[loc] = value;
|
|
41025
|
+
});
|
|
41026
|
+
}
|
|
40653
41027
|
if (input.FilterInArns != null) {
|
|
40654
41028
|
const memberEntries = serializeAws_ec2ArnList(input.FilterInArns, context);
|
|
40655
41029
|
if (input.FilterInArns?.length === 0) {
|
|
@@ -42899,6 +43273,28 @@ const deserializeAws_ec2AttachClassicLinkVpcResult = (output, context) => {
|
|
|
42899
43273
|
}
|
|
42900
43274
|
return contents;
|
|
42901
43275
|
};
|
|
43276
|
+
const deserializeAws_ec2AttachmentEnaSrdSpecification = (output, context) => {
|
|
43277
|
+
const contents = {
|
|
43278
|
+
EnaSrdEnabled: undefined,
|
|
43279
|
+
EnaSrdUdpSpecification: undefined,
|
|
43280
|
+
};
|
|
43281
|
+
if (output["enaSrdEnabled"] !== undefined) {
|
|
43282
|
+
contents.EnaSrdEnabled = __parseBoolean(output["enaSrdEnabled"]);
|
|
43283
|
+
}
|
|
43284
|
+
if (output["enaSrdUdpSpecification"] !== undefined) {
|
|
43285
|
+
contents.EnaSrdUdpSpecification = deserializeAws_ec2AttachmentEnaSrdUdpSpecification(output["enaSrdUdpSpecification"], context);
|
|
43286
|
+
}
|
|
43287
|
+
return contents;
|
|
43288
|
+
};
|
|
43289
|
+
const deserializeAws_ec2AttachmentEnaSrdUdpSpecification = (output, context) => {
|
|
43290
|
+
const contents = {
|
|
43291
|
+
EnaSrdUdpEnabled: undefined,
|
|
43292
|
+
};
|
|
43293
|
+
if (output["enaSrdUdpEnabled"] !== undefined) {
|
|
43294
|
+
contents.EnaSrdUdpEnabled = __parseBoolean(output["enaSrdUdpEnabled"]);
|
|
43295
|
+
}
|
|
43296
|
+
return contents;
|
|
43297
|
+
};
|
|
42902
43298
|
const deserializeAws_ec2AttachNetworkInterfaceResult = (output, context) => {
|
|
42903
43299
|
const contents = {
|
|
42904
43300
|
AttachmentId: undefined,
|
|
@@ -45437,6 +45833,49 @@ const deserializeAws_ec2CustomerGatewayList = (output, context) => {
|
|
|
45437
45833
|
return deserializeAws_ec2CustomerGateway(entry, context);
|
|
45438
45834
|
});
|
|
45439
45835
|
};
|
|
45836
|
+
const deserializeAws_ec2DataResponse = (output, context) => {
|
|
45837
|
+
const contents = {
|
|
45838
|
+
Id: undefined,
|
|
45839
|
+
Source: undefined,
|
|
45840
|
+
Destination: undefined,
|
|
45841
|
+
Metric: undefined,
|
|
45842
|
+
Statistic: undefined,
|
|
45843
|
+
Period: undefined,
|
|
45844
|
+
MetricPoints: undefined,
|
|
45845
|
+
};
|
|
45846
|
+
if (output["id"] !== undefined) {
|
|
45847
|
+
contents.Id = __expectString(output["id"]);
|
|
45848
|
+
}
|
|
45849
|
+
if (output["source"] !== undefined) {
|
|
45850
|
+
contents.Source = __expectString(output["source"]);
|
|
45851
|
+
}
|
|
45852
|
+
if (output["destination"] !== undefined) {
|
|
45853
|
+
contents.Destination = __expectString(output["destination"]);
|
|
45854
|
+
}
|
|
45855
|
+
if (output["metric"] !== undefined) {
|
|
45856
|
+
contents.Metric = __expectString(output["metric"]);
|
|
45857
|
+
}
|
|
45858
|
+
if (output["statistic"] !== undefined) {
|
|
45859
|
+
contents.Statistic = __expectString(output["statistic"]);
|
|
45860
|
+
}
|
|
45861
|
+
if (output["period"] !== undefined) {
|
|
45862
|
+
contents.Period = __expectString(output["period"]);
|
|
45863
|
+
}
|
|
45864
|
+
if (output.metricPointSet === "") {
|
|
45865
|
+
contents.MetricPoints = [];
|
|
45866
|
+
}
|
|
45867
|
+
else if (output["metricPointSet"] !== undefined && output["metricPointSet"]["item"] !== undefined) {
|
|
45868
|
+
contents.MetricPoints = deserializeAws_ec2MetricPoints(__getArrayIfSingleItem(output["metricPointSet"]["item"]), context);
|
|
45869
|
+
}
|
|
45870
|
+
return contents;
|
|
45871
|
+
};
|
|
45872
|
+
const deserializeAws_ec2DataResponses = (output, context) => {
|
|
45873
|
+
return (output || [])
|
|
45874
|
+
.filter((e) => e != null)
|
|
45875
|
+
.map((entry) => {
|
|
45876
|
+
return deserializeAws_ec2DataResponse(entry, context);
|
|
45877
|
+
});
|
|
45878
|
+
};
|
|
45440
45879
|
const deserializeAws_ec2DedicatedHostIdList = (output, context) => {
|
|
45441
45880
|
return (output || [])
|
|
45442
45881
|
.filter((e) => e != null)
|
|
@@ -46202,6 +46641,22 @@ const deserializeAws_ec2DescribeAvailabilityZonesResult = (output, context) => {
|
|
|
46202
46641
|
}
|
|
46203
46642
|
return contents;
|
|
46204
46643
|
};
|
|
46644
|
+
const deserializeAws_ec2DescribeAwsNetworkPerformanceMetricSubscriptionsResult = (output, context) => {
|
|
46645
|
+
const contents = {
|
|
46646
|
+
NextToken: undefined,
|
|
46647
|
+
Subscriptions: undefined,
|
|
46648
|
+
};
|
|
46649
|
+
if (output["nextToken"] !== undefined) {
|
|
46650
|
+
contents.NextToken = __expectString(output["nextToken"]);
|
|
46651
|
+
}
|
|
46652
|
+
if (output.subscriptionSet === "") {
|
|
46653
|
+
contents.Subscriptions = [];
|
|
46654
|
+
}
|
|
46655
|
+
else if (output["subscriptionSet"] !== undefined && output["subscriptionSet"]["item"] !== undefined) {
|
|
46656
|
+
contents.Subscriptions = deserializeAws_ec2SubscriptionList(__getArrayIfSingleItem(output["subscriptionSet"]["item"]), context);
|
|
46657
|
+
}
|
|
46658
|
+
return contents;
|
|
46659
|
+
};
|
|
46205
46660
|
const deserializeAws_ec2DescribeBundleTasksResult = (output, context) => {
|
|
46206
46661
|
const contents = {
|
|
46207
46662
|
BundleTasks: undefined,
|
|
@@ -48558,6 +49013,15 @@ const deserializeAws_ec2DisableAddressTransferResult = (output, context) => {
|
|
|
48558
49013
|
}
|
|
48559
49014
|
return contents;
|
|
48560
49015
|
};
|
|
49016
|
+
const deserializeAws_ec2DisableAwsNetworkPerformanceMetricSubscriptionResult = (output, context) => {
|
|
49017
|
+
const contents = {
|
|
49018
|
+
Output: undefined,
|
|
49019
|
+
};
|
|
49020
|
+
if (output["output"] !== undefined) {
|
|
49021
|
+
contents.Output = __parseBoolean(output["output"]);
|
|
49022
|
+
}
|
|
49023
|
+
return contents;
|
|
49024
|
+
};
|
|
48561
49025
|
const deserializeAws_ec2DisableEbsEncryptionByDefaultResult = (output, context) => {
|
|
48562
49026
|
const contents = {
|
|
48563
49027
|
EbsEncryptionByDefault: undefined,
|
|
@@ -49275,6 +49739,15 @@ const deserializeAws_ec2EnableAddressTransferResult = (output, context) => {
|
|
|
49275
49739
|
}
|
|
49276
49740
|
return contents;
|
|
49277
49741
|
};
|
|
49742
|
+
const deserializeAws_ec2EnableAwsNetworkPerformanceMetricSubscriptionResult = (output, context) => {
|
|
49743
|
+
const contents = {
|
|
49744
|
+
Output: undefined,
|
|
49745
|
+
};
|
|
49746
|
+
if (output["output"] !== undefined) {
|
|
49747
|
+
contents.Output = __parseBoolean(output["output"]);
|
|
49748
|
+
}
|
|
49749
|
+
return contents;
|
|
49750
|
+
};
|
|
49278
49751
|
const deserializeAws_ec2EnableEbsEncryptionByDefaultResult = (output, context) => {
|
|
49279
49752
|
const contents = {
|
|
49280
49753
|
EbsEncryptionByDefault: undefined,
|
|
@@ -49475,6 +49948,15 @@ const deserializeAws_ec2EnableIpamOrganizationAdminAccountResult = (output, cont
|
|
|
49475
49948
|
}
|
|
49476
49949
|
return contents;
|
|
49477
49950
|
};
|
|
49951
|
+
const deserializeAws_ec2EnableReachabilityAnalyzerOrganizationSharingResult = (output, context) => {
|
|
49952
|
+
const contents = {
|
|
49953
|
+
ReturnValue: undefined,
|
|
49954
|
+
};
|
|
49955
|
+
if (output["returnValue"] !== undefined) {
|
|
49956
|
+
contents.ReturnValue = __parseBoolean(output["returnValue"]);
|
|
49957
|
+
}
|
|
49958
|
+
return contents;
|
|
49959
|
+
};
|
|
49478
49960
|
const deserializeAws_ec2EnableSerialConsoleAccessResult = (output, context) => {
|
|
49479
49961
|
const contents = {
|
|
49480
49962
|
SerialConsoleAccessEnabled: undefined,
|
|
@@ -50634,6 +51116,22 @@ const deserializeAws_ec2GetAssociatedIpv6PoolCidrsResult = (output, context) =>
|
|
|
50634
51116
|
}
|
|
50635
51117
|
return contents;
|
|
50636
51118
|
};
|
|
51119
|
+
const deserializeAws_ec2GetAwsNetworkPerformanceDataResult = (output, context) => {
|
|
51120
|
+
const contents = {
|
|
51121
|
+
DataResponses: undefined,
|
|
51122
|
+
NextToken: undefined,
|
|
51123
|
+
};
|
|
51124
|
+
if (output.dataResponseSet === "") {
|
|
51125
|
+
contents.DataResponses = [];
|
|
51126
|
+
}
|
|
51127
|
+
else if (output["dataResponseSet"] !== undefined && output["dataResponseSet"]["item"] !== undefined) {
|
|
51128
|
+
contents.DataResponses = deserializeAws_ec2DataResponses(__getArrayIfSingleItem(output["dataResponseSet"]["item"]), context);
|
|
51129
|
+
}
|
|
51130
|
+
if (output["nextToken"] !== undefined) {
|
|
51131
|
+
contents.NextToken = __expectString(output["nextToken"]);
|
|
51132
|
+
}
|
|
51133
|
+
return contents;
|
|
51134
|
+
};
|
|
50637
51135
|
const deserializeAws_ec2GetCapacityReservationUsageResult = (output, context) => {
|
|
50638
51136
|
const contents = {
|
|
50639
51137
|
NextToken: undefined,
|
|
@@ -55976,6 +56474,34 @@ const deserializeAws_ec2MemoryMiB = (output, context) => {
|
|
|
55976
56474
|
}
|
|
55977
56475
|
return contents;
|
|
55978
56476
|
};
|
|
56477
|
+
const deserializeAws_ec2MetricPoint = (output, context) => {
|
|
56478
|
+
const contents = {
|
|
56479
|
+
StartDate: undefined,
|
|
56480
|
+
EndDate: undefined,
|
|
56481
|
+
Value: undefined,
|
|
56482
|
+
Status: undefined,
|
|
56483
|
+
};
|
|
56484
|
+
if (output["startDate"] !== undefined) {
|
|
56485
|
+
contents.StartDate = __expectNonNull(__parseRfc3339DateTime(output["startDate"]));
|
|
56486
|
+
}
|
|
56487
|
+
if (output["endDate"] !== undefined) {
|
|
56488
|
+
contents.EndDate = __expectNonNull(__parseRfc3339DateTime(output["endDate"]));
|
|
56489
|
+
}
|
|
56490
|
+
if (output["value"] !== undefined) {
|
|
56491
|
+
contents.Value = __strictParseFloat(output["value"]);
|
|
56492
|
+
}
|
|
56493
|
+
if (output["status"] !== undefined) {
|
|
56494
|
+
contents.Status = __expectString(output["status"]);
|
|
56495
|
+
}
|
|
56496
|
+
return contents;
|
|
56497
|
+
};
|
|
56498
|
+
const deserializeAws_ec2MetricPoints = (output, context) => {
|
|
56499
|
+
return (output || [])
|
|
56500
|
+
.filter((e) => e != null)
|
|
56501
|
+
.map((entry) => {
|
|
56502
|
+
return deserializeAws_ec2MetricPoint(entry, context);
|
|
56503
|
+
});
|
|
56504
|
+
};
|
|
55979
56505
|
const deserializeAws_ec2ModifyAddressAttributeResult = (output, context) => {
|
|
55980
56506
|
const contents = {
|
|
55981
56507
|
Address: undefined,
|
|
@@ -56769,6 +57295,7 @@ const deserializeAws_ec2NetworkInfo = (output, context) => {
|
|
|
56769
57295
|
EfaSupported: undefined,
|
|
56770
57296
|
EfaInfo: undefined,
|
|
56771
57297
|
EncryptionInTransitSupported: undefined,
|
|
57298
|
+
EnaSrdSupported: undefined,
|
|
56772
57299
|
};
|
|
56773
57300
|
if (output["networkPerformance"] !== undefined) {
|
|
56774
57301
|
contents.NetworkPerformance = __expectString(output["networkPerformance"]);
|
|
@@ -56809,6 +57336,9 @@ const deserializeAws_ec2NetworkInfo = (output, context) => {
|
|
|
56809
57336
|
if (output["encryptionInTransitSupported"] !== undefined) {
|
|
56810
57337
|
contents.EncryptionInTransitSupported = __parseBoolean(output["encryptionInTransitSupported"]);
|
|
56811
57338
|
}
|
|
57339
|
+
if (output["enaSrdSupported"] !== undefined) {
|
|
57340
|
+
contents.EnaSrdSupported = __parseBoolean(output["enaSrdSupported"]);
|
|
57341
|
+
}
|
|
56812
57342
|
return contents;
|
|
56813
57343
|
};
|
|
56814
57344
|
const deserializeAws_ec2NetworkInsightsAccessScope = (output, context) => {
|
|
@@ -56933,6 +57463,7 @@ const deserializeAws_ec2NetworkInsightsAnalysis = (output, context) => {
|
|
|
56933
57463
|
NetworkInsightsAnalysisId: undefined,
|
|
56934
57464
|
NetworkInsightsAnalysisArn: undefined,
|
|
56935
57465
|
NetworkInsightsPathId: undefined,
|
|
57466
|
+
AdditionalAccounts: undefined,
|
|
56936
57467
|
FilterInArns: undefined,
|
|
56937
57468
|
StartDate: undefined,
|
|
56938
57469
|
Status: undefined,
|
|
@@ -56943,6 +57474,7 @@ const deserializeAws_ec2NetworkInsightsAnalysis = (output, context) => {
|
|
|
56943
57474
|
ReturnPathComponents: undefined,
|
|
56944
57475
|
Explanations: undefined,
|
|
56945
57476
|
AlternatePathHints: undefined,
|
|
57477
|
+
SuggestedAccounts: undefined,
|
|
56946
57478
|
Tags: undefined,
|
|
56947
57479
|
};
|
|
56948
57480
|
if (output["networkInsightsAnalysisId"] !== undefined) {
|
|
@@ -56954,6 +57486,12 @@ const deserializeAws_ec2NetworkInsightsAnalysis = (output, context) => {
|
|
|
56954
57486
|
if (output["networkInsightsPathId"] !== undefined) {
|
|
56955
57487
|
contents.NetworkInsightsPathId = __expectString(output["networkInsightsPathId"]);
|
|
56956
57488
|
}
|
|
57489
|
+
if (output.additionalAccountSet === "") {
|
|
57490
|
+
contents.AdditionalAccounts = [];
|
|
57491
|
+
}
|
|
57492
|
+
else if (output["additionalAccountSet"] !== undefined && output["additionalAccountSet"]["item"] !== undefined) {
|
|
57493
|
+
contents.AdditionalAccounts = deserializeAws_ec2ValueStringList(__getArrayIfSingleItem(output["additionalAccountSet"]["item"]), context);
|
|
57494
|
+
}
|
|
56957
57495
|
if (output.filterInArnSet === "") {
|
|
56958
57496
|
contents.FilterInArns = [];
|
|
56959
57497
|
}
|
|
@@ -57000,6 +57538,12 @@ const deserializeAws_ec2NetworkInsightsAnalysis = (output, context) => {
|
|
|
57000
57538
|
else if (output["alternatePathHintSet"] !== undefined && output["alternatePathHintSet"]["item"] !== undefined) {
|
|
57001
57539
|
contents.AlternatePathHints = deserializeAws_ec2AlternatePathHintList(__getArrayIfSingleItem(output["alternatePathHintSet"]["item"]), context);
|
|
57002
57540
|
}
|
|
57541
|
+
if (output.suggestedAccountSet === "") {
|
|
57542
|
+
contents.SuggestedAccounts = [];
|
|
57543
|
+
}
|
|
57544
|
+
else if (output["suggestedAccountSet"] !== undefined && output["suggestedAccountSet"]["item"] !== undefined) {
|
|
57545
|
+
contents.SuggestedAccounts = deserializeAws_ec2ValueStringList(__getArrayIfSingleItem(output["suggestedAccountSet"]["item"]), context);
|
|
57546
|
+
}
|
|
57003
57547
|
if (output.tagSet === "") {
|
|
57004
57548
|
contents.Tags = [];
|
|
57005
57549
|
}
|
|
@@ -57022,6 +57566,8 @@ const deserializeAws_ec2NetworkInsightsPath = (output, context) => {
|
|
|
57022
57566
|
CreatedDate: undefined,
|
|
57023
57567
|
Source: undefined,
|
|
57024
57568
|
Destination: undefined,
|
|
57569
|
+
SourceArn: undefined,
|
|
57570
|
+
DestinationArn: undefined,
|
|
57025
57571
|
SourceIp: undefined,
|
|
57026
57572
|
DestinationIp: undefined,
|
|
57027
57573
|
Protocol: undefined,
|
|
@@ -57043,6 +57589,12 @@ const deserializeAws_ec2NetworkInsightsPath = (output, context) => {
|
|
|
57043
57589
|
if (output["destination"] !== undefined) {
|
|
57044
57590
|
contents.Destination = __expectString(output["destination"]);
|
|
57045
57591
|
}
|
|
57592
|
+
if (output["sourceArn"] !== undefined) {
|
|
57593
|
+
contents.SourceArn = __expectString(output["sourceArn"]);
|
|
57594
|
+
}
|
|
57595
|
+
if (output["destinationArn"] !== undefined) {
|
|
57596
|
+
contents.DestinationArn = __expectString(output["destinationArn"]);
|
|
57597
|
+
}
|
|
57046
57598
|
if (output["sourceIp"] !== undefined) {
|
|
57047
57599
|
contents.SourceIp = __expectString(output["sourceIp"]);
|
|
57048
57600
|
}
|
|
@@ -57240,6 +57792,7 @@ const deserializeAws_ec2NetworkInterfaceAttachment = (output, context) => {
|
|
|
57240
57792
|
InstanceId: undefined,
|
|
57241
57793
|
InstanceOwnerId: undefined,
|
|
57242
57794
|
Status: undefined,
|
|
57795
|
+
EnaSrdSpecification: undefined,
|
|
57243
57796
|
};
|
|
57244
57797
|
if (output["attachTime"] !== undefined) {
|
|
57245
57798
|
contents.AttachTime = __expectNonNull(__parseRfc3339DateTime(output["attachTime"]));
|
|
@@ -57265,6 +57818,9 @@ const deserializeAws_ec2NetworkInterfaceAttachment = (output, context) => {
|
|
|
57265
57818
|
if (output["status"] !== undefined) {
|
|
57266
57819
|
contents.Status = __expectString(output["status"]);
|
|
57267
57820
|
}
|
|
57821
|
+
if (output["enaSrdSpecification"] !== undefined) {
|
|
57822
|
+
contents.EnaSrdSpecification = deserializeAws_ec2AttachmentEnaSrdSpecification(output["enaSrdSpecification"], context);
|
|
57823
|
+
}
|
|
57268
57824
|
return contents;
|
|
57269
57825
|
};
|
|
57270
57826
|
const deserializeAws_ec2NetworkInterfaceCount = (output, context) => {
|
|
@@ -61652,6 +62208,38 @@ const deserializeAws_ec2SubnetList = (output, context) => {
|
|
|
61652
62208
|
return deserializeAws_ec2Subnet(entry, context);
|
|
61653
62209
|
});
|
|
61654
62210
|
};
|
|
62211
|
+
const deserializeAws_ec2Subscription = (output, context) => {
|
|
62212
|
+
const contents = {
|
|
62213
|
+
Source: undefined,
|
|
62214
|
+
Destination: undefined,
|
|
62215
|
+
Metric: undefined,
|
|
62216
|
+
Statistic: undefined,
|
|
62217
|
+
Period: undefined,
|
|
62218
|
+
};
|
|
62219
|
+
if (output["source"] !== undefined) {
|
|
62220
|
+
contents.Source = __expectString(output["source"]);
|
|
62221
|
+
}
|
|
62222
|
+
if (output["destination"] !== undefined) {
|
|
62223
|
+
contents.Destination = __expectString(output["destination"]);
|
|
62224
|
+
}
|
|
62225
|
+
if (output["metric"] !== undefined) {
|
|
62226
|
+
contents.Metric = __expectString(output["metric"]);
|
|
62227
|
+
}
|
|
62228
|
+
if (output["statistic"] !== undefined) {
|
|
62229
|
+
contents.Statistic = __expectString(output["statistic"]);
|
|
62230
|
+
}
|
|
62231
|
+
if (output["period"] !== undefined) {
|
|
62232
|
+
contents.Period = __expectString(output["period"]);
|
|
62233
|
+
}
|
|
62234
|
+
return contents;
|
|
62235
|
+
};
|
|
62236
|
+
const deserializeAws_ec2SubscriptionList = (output, context) => {
|
|
62237
|
+
return (output || [])
|
|
62238
|
+
.filter((e) => e != null)
|
|
62239
|
+
.map((entry) => {
|
|
62240
|
+
return deserializeAws_ec2Subscription(entry, context);
|
|
62241
|
+
});
|
|
62242
|
+
};
|
|
61655
62243
|
const deserializeAws_ec2SuccessfulInstanceCreditSpecificationItem = (output, context) => {
|
|
61656
62244
|
const contents = {
|
|
61657
62245
|
InstanceId: undefined,
|