@aws-sdk/client-ec2 3.226.0 → 3.231.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/endpoint/ruleset.js +0 -9
- package/dist-cjs/models/models_0.js +1 -0
- package/dist-cjs/protocols/Aws_ec2.js +14 -0
- package/dist-cjs/runtimeConfig.browser.js +3 -3
- package/dist-cjs/runtimeConfig.js +2 -1
- package/dist-es/endpoint/ruleset.js +0 -9
- package/dist-es/models/models_0.js +1 -0
- package/dist-es/protocols/Aws_ec2.js +14 -0
- package/dist-es/runtimeConfig.browser.js +1 -1
- package/dist-es/runtimeConfig.js +2 -1
- package/dist-types/EC2.d.ts +359 -425
- package/dist-types/commands/AcceptVpcPeeringConnectionCommand.d.ts +1 -1
- package/dist-types/commands/AssignIpv6AddressesCommand.d.ts +2 -2
- package/dist-types/commands/AssignPrivateIpAddressesCommand.d.ts +5 -5
- package/dist-types/commands/AssociateAddressCommand.d.ts +0 -1
- package/dist-types/commands/AssociateClientVpnTargetNetworkCommand.d.ts +1 -1
- package/dist-types/commands/AssociateEnclaveCertificateIamRoleCommand.d.ts +2 -4
- package/dist-types/commands/AssociateRouteTableCommand.d.ts +1 -1
- package/dist-types/commands/AssociateTransitGatewayMulticastDomainCommand.d.ts +1 -1
- package/dist-types/commands/AssociateTrunkInterfaceCommand.d.ts +3 -4
- package/dist-types/commands/AssociateVpcCidrBlockCommand.d.ts +2 -2
- package/dist-types/commands/AttachClassicLinkVpcCommand.d.ts +5 -5
- package/dist-types/commands/AttachVpnGatewayCommand.d.ts +1 -1
- package/dist-types/commands/AuthorizeSecurityGroupEgressCommand.d.ts +1 -1
- package/dist-types/commands/AuthorizeSecurityGroupIngressCommand.d.ts +1 -2
- package/dist-types/commands/BundleInstanceCommand.d.ts +1 -1
- package/dist-types/commands/CancelCapacityReservationCommand.d.ts +1 -1
- package/dist-types/commands/CancelCapacityReservationFleetsCommand.d.ts +7 -7
- package/dist-types/commands/CancelSpotFleetRequestsCommand.d.ts +1 -1
- package/dist-types/commands/CancelSpotInstanceRequestsCommand.d.ts +2 -2
- package/dist-types/commands/CopyImageCommand.d.ts +2 -5
- package/dist-types/commands/CopySnapshotCommand.d.ts +1 -4
- package/dist-types/commands/CreateCapacityReservationCommand.d.ts +3 -5
- package/dist-types/commands/CreateCustomerGatewayCommand.d.ts +2 -2
- package/dist-types/commands/CreateDefaultVpcCommand.d.ts +5 -5
- package/dist-types/commands/CreateDhcpOptionsCommand.d.ts +5 -6
- package/dist-types/commands/CreateFlowLogsCommand.d.ts +3 -6
- package/dist-types/commands/CreateImageCommand.d.ts +6 -10
- package/dist-types/commands/CreateInstanceEventWindowCommand.d.ts +1 -3
- package/dist-types/commands/CreateKeyPairCommand.d.ts +1 -1
- package/dist-types/commands/CreateLaunchTemplateCommand.d.ts +2 -2
- package/dist-types/commands/CreateLaunchTemplateVersionCommand.d.ts +3 -3
- package/dist-types/commands/CreateNetworkAclCommand.d.ts +1 -1
- package/dist-types/commands/CreateNetworkAclEntryCommand.d.ts +2 -2
- package/dist-types/commands/CreateNetworkInterfaceCommand.d.ts +2 -2
- package/dist-types/commands/CreateNetworkInterfacePermissionCommand.d.ts +1 -1
- package/dist-types/commands/CreatePlacementGroupCommand.d.ts +2 -2
- package/dist-types/commands/CreateReplaceRootVolumeTaskCommand.d.ts +0 -1
- package/dist-types/commands/CreateReservedInstancesListingCommand.d.ts +2 -2
- package/dist-types/commands/CreateRouteCommand.d.ts +6 -6
- package/dist-types/commands/CreateSecurityGroupCommand.d.ts +1 -2
- package/dist-types/commands/CreateSnapshotCommand.d.ts +0 -3
- package/dist-types/commands/CreateSnapshotsCommand.d.ts +0 -2
- package/dist-types/commands/CreateSubnetCommand.d.ts +7 -7
- package/dist-types/commands/CreateTagsCommand.d.ts +0 -1
- package/dist-types/commands/CreateTransitGatewayConnectCommand.d.ts +1 -1
- package/dist-types/commands/CreateTransitGatewayConnectPeerCommand.d.ts +2 -2
- package/dist-types/commands/CreateTransitGatewayMulticastDomainCommand.d.ts +1 -1
- package/dist-types/commands/CreateTransitGatewayPeeringAttachmentCommand.d.ts +1 -1
- package/dist-types/commands/CreateVpcCommand.d.ts +1 -1
- package/dist-types/commands/CreateVpcEndpointConnectionNotificationCommand.d.ts +1 -1
- package/dist-types/commands/CreateVpcEndpointServiceConfigurationCommand.d.ts +6 -6
- package/dist-types/commands/CreateVpnConnectionCommand.d.ts +6 -6
- package/dist-types/commands/CreateVpnConnectionRouteCommand.d.ts +1 -1
- package/dist-types/commands/CreateVpnGatewayCommand.d.ts +1 -1
- package/dist-types/commands/DeleteCarrierGatewayCommand.d.ts +2 -2
- package/dist-types/commands/DeleteFleetsCommand.d.ts +0 -1
- package/dist-types/commands/DeleteSecurityGroupCommand.d.ts +1 -2
- package/dist-types/commands/DeleteVpcEndpointsCommand.d.ts +7 -7
- package/dist-types/commands/DeleteVpnConnectionCommand.d.ts +2 -2
- package/dist-types/commands/DeregisterImageCommand.d.ts +1 -4
- package/dist-types/commands/DescribeAccountAttributesCommand.d.ts +2 -2
- package/dist-types/commands/DescribeAggregateIdFormatCommand.d.ts +0 -1
- package/dist-types/commands/DescribeClassicLinkInstancesCommand.d.ts +3 -3
- package/dist-types/commands/DescribeCustomerGatewaysCommand.d.ts +1 -1
- package/dist-types/commands/DescribeDhcpOptionsCommand.d.ts +1 -1
- package/dist-types/commands/DescribeFlowLogsCommand.d.ts +1 -1
- package/dist-types/commands/DescribeHostReservationOfferingsCommand.d.ts +1 -1
- package/dist-types/commands/DescribeHostsCommand.d.ts +1 -1
- package/dist-types/commands/DescribeInstanceAttributeCommand.d.ts +1 -1
- package/dist-types/commands/DescribeInstanceCreditSpecificationsCommand.d.ts +5 -5
- package/dist-types/commands/DescribeInstanceStatusCommand.d.ts +8 -8
- package/dist-types/commands/DescribeInstancesCommand.d.ts +4 -4
- package/dist-types/commands/DescribeManagedPrefixListsCommand.d.ts +1 -1
- package/dist-types/commands/DescribeNetworkAclsCommand.d.ts +1 -1
- package/dist-types/commands/DescribePrefixListsCommand.d.ts +1 -1
- package/dist-types/commands/DescribeReservedInstancesListingsCommand.d.ts +3 -3
- package/dist-types/commands/DescribeReservedInstancesModificationsCommand.d.ts +1 -1
- package/dist-types/commands/DescribeRouteTablesCommand.d.ts +1 -1
- package/dist-types/commands/DescribeSecurityGroupsCommand.d.ts +1 -1
- package/dist-types/commands/DescribeSpotFleetRequestHistoryCommand.d.ts +2 -2
- package/dist-types/commands/DescribeSpotFleetRequestsCommand.d.ts +1 -1
- package/dist-types/commands/DescribeSpotInstanceRequestsCommand.d.ts +3 -3
- package/dist-types/commands/DescribeSpotPriceHistoryCommand.d.ts +1 -1
- package/dist-types/commands/DescribeTrunkInterfaceAssociationsCommand.d.ts +2 -2
- package/dist-types/commands/DescribeVpcClassicLinkCommand.d.ts +3 -3
- package/dist-types/commands/DescribeVpcEndpointServicesCommand.d.ts +1 -1
- package/dist-types/commands/DescribeVpnConnectionsCommand.d.ts +1 -1
- package/dist-types/commands/DescribeVpnGatewaysCommand.d.ts +1 -1
- package/dist-types/commands/DetachClassicLinkVpcCommand.d.ts +3 -3
- package/dist-types/commands/DetachVpnGatewayCommand.d.ts +1 -1
- package/dist-types/commands/DisableFastLaunchCommand.d.ts +3 -3
- package/dist-types/commands/DisableVpcClassicLinkDnsSupportCommand.d.ts +0 -1
- package/dist-types/commands/DisassociateAddressCommand.d.ts +1 -2
- package/dist-types/commands/DisassociateClientVpnTargetNetworkCommand.d.ts +9 -9
- package/dist-types/commands/DisassociateIamInstanceProfileCommand.d.ts +1 -1
- package/dist-types/commands/DisassociateRouteTableCommand.d.ts +1 -1
- package/dist-types/commands/DisassociateTrunkInterfaceCommand.d.ts +2 -2
- package/dist-types/commands/DisassociateVpcCidrBlockCommand.d.ts +1 -1
- package/dist-types/commands/EnableEbsEncryptionByDefaultCommand.d.ts +1 -1
- package/dist-types/commands/EnableFastLaunchCommand.d.ts +3 -3
- package/dist-types/commands/GetConsoleOutputCommand.d.ts +3 -3
- package/dist-types/commands/GetConsoleScreenshotCommand.d.ts +1 -1
- package/dist-types/commands/GetDefaultCreditSpecificationCommand.d.ts +1 -1
- package/dist-types/commands/GetFlowLogsIntegrationTemplateCommand.d.ts +5 -5
- package/dist-types/commands/GetHostReservationPurchasePreviewCommand.d.ts +1 -1
- package/dist-types/commands/GetInstanceUefiDataCommand.d.ts +2 -2
- package/dist-types/commands/GetLaunchTemplateDataCommand.d.ts +1 -1
- package/dist-types/commands/GetPasswordDataCommand.d.ts +4 -4
- package/dist-types/commands/ImportClientVpnClientCertificateRevocationListCommand.d.ts +1 -1
- package/dist-types/commands/ModifyCapacityReservationFleetCommand.d.ts +1 -1
- package/dist-types/commands/ModifyDefaultCreditSpecificationCommand.d.ts +2 -2
- package/dist-types/commands/ModifyEbsDefaultKmsKeyIdCommand.d.ts +1 -1
- package/dist-types/commands/ModifyHostsCommand.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 +2 -2
- package/dist-types/commands/ModifyInstanceCreditSpecificationCommand.d.ts +1 -1
- package/dist-types/commands/ModifyInstancePlacementCommand.d.ts +7 -7
- package/dist-types/commands/ModifyManagedPrefixListCommand.d.ts +2 -2
- package/dist-types/commands/ModifyReservedInstancesCommand.d.ts +1 -1
- package/dist-types/commands/ModifySpotFleetRequestCommand.d.ts +5 -5
- package/dist-types/commands/ModifySubnetAttributeCommand.d.ts +6 -9
- package/dist-types/commands/ModifyVpcEndpointServiceConfigurationCommand.d.ts +1 -1
- package/dist-types/commands/ModifyVpcEndpointServicePermissionsCommand.d.ts +1 -1
- package/dist-types/commands/ModifyVpcTenancyCommand.d.ts +2 -2
- package/dist-types/commands/ModifyVpnConnectionCommand.d.ts +13 -15
- package/dist-types/commands/ModifyVpnConnectionOptionsCommand.d.ts +1 -1
- package/dist-types/commands/MonitorInstancesCommand.d.ts +1 -1
- package/dist-types/commands/PurchaseReservedInstancesOfferingCommand.d.ts +2 -2
- package/dist-types/commands/RebootInstancesCommand.d.ts +2 -2
- package/dist-types/commands/RegisterImageCommand.d.ts +4 -7
- package/dist-types/commands/RegisterTransitGatewayMulticastGroupMembersCommand.d.ts +1 -1
- package/dist-types/commands/RegisterTransitGatewayMulticastGroupSourcesCommand.d.ts +2 -2
- package/dist-types/commands/ReleaseHostsCommand.d.ts +2 -2
- package/dist-types/commands/ReplaceIamInstanceProfileAssociationCommand.d.ts +1 -1
- package/dist-types/commands/ReplaceNetworkAclAssociationCommand.d.ts +1 -1
- package/dist-types/commands/ReportInstanceStatusCommand.d.ts +1 -1
- package/dist-types/commands/RequestSpotFleetCommand.d.ts +8 -9
- package/dist-types/commands/RequestSpotInstancesCommand.d.ts +5 -7
- package/dist-types/commands/ResetInstanceAttributeCommand.d.ts +1 -1
- package/dist-types/commands/RestoreSnapshotTierCommand.d.ts +0 -1
- package/dist-types/commands/RevokeSecurityGroupEgressCommand.d.ts +0 -2
- package/dist-types/commands/RevokeSecurityGroupIngressCommand.d.ts +1 -4
- package/dist-types/commands/RunInstancesCommand.d.ts +16 -16
- package/dist-types/commands/SendDiagnosticInterruptCommand.d.ts +3 -6
- package/dist-types/commands/StartInstancesCommand.d.ts +5 -7
- package/dist-types/commands/StartVpcEndpointServicePrivateDnsVerificationCommand.d.ts +2 -2
- package/dist-types/commands/StopInstancesCommand.d.ts +6 -6
- package/dist-types/commands/TerminateInstancesCommand.d.ts +19 -24
- package/dist-types/models/models_0.d.ts +74 -79
- package/dist-types/models/models_1.d.ts +198 -201
- package/dist-types/models/models_2.d.ts +71 -71
- package/dist-types/models/models_3.d.ts +349 -357
- package/dist-types/models/models_4.d.ts +441 -443
- package/dist-types/models/models_5.d.ts +119 -122
- package/dist-types/models/models_6.d.ts +173 -175
- package/dist-types/runtimeConfig.browser.d.ts +1 -1
- package/dist-types/runtimeConfig.d.ts +1 -1
- package/dist-types/runtimeConfig.native.d.ts +1 -1
- package/dist-types/ts3.4/models/models_0.d.ts +1 -0
- package/dist-types/ts3.4/models/models_3.d.ts +1 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -1
- package/dist-types/ts3.4/runtimeConfig.d.ts +4 -1
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -1
- package/package.json +7 -6
|
@@ -105,6 +105,7 @@ var ResourceType;
|
|
|
105
105
|
ResourceType["verified_access_trust_provider"] = "verified-access-trust-provider";
|
|
106
106
|
ResourceType["volume"] = "volume";
|
|
107
107
|
ResourceType["vpc"] = "vpc";
|
|
108
|
+
ResourceType["vpc_block_public_access_exclusion"] = "vpc-block-public-access-exclusion";
|
|
108
109
|
ResourceType["vpc_endpoint"] = "vpc-endpoint";
|
|
109
110
|
ResourceType["vpc_endpoint_connection"] = "vpc-endpoint-connection";
|
|
110
111
|
ResourceType["vpc_endpoint_connection_device_type"] = "vpc-endpoint-connection-device-type";
|
|
@@ -54169,6 +54169,7 @@ const deserializeAws_ec2FpgaImage = (output, context) => {
|
|
|
54169
54169
|
Tags: undefined,
|
|
54170
54170
|
Public: undefined,
|
|
54171
54171
|
DataRetentionSupport: undefined,
|
|
54172
|
+
InstanceTypes: undefined,
|
|
54172
54173
|
};
|
|
54173
54174
|
if (output["fpgaImageId"] !== undefined) {
|
|
54174
54175
|
contents.FpgaImageId = (0, smithy_client_1.expectString)(output["fpgaImageId"]);
|
|
@@ -54221,6 +54222,12 @@ const deserializeAws_ec2FpgaImage = (output, context) => {
|
|
|
54221
54222
|
if (output["dataRetentionSupport"] !== undefined) {
|
|
54222
54223
|
contents.DataRetentionSupport = (0, smithy_client_1.parseBoolean)(output["dataRetentionSupport"]);
|
|
54223
54224
|
}
|
|
54225
|
+
if (output.instanceTypes === "") {
|
|
54226
|
+
contents.InstanceTypes = [];
|
|
54227
|
+
}
|
|
54228
|
+
else if (output["instanceTypes"] !== undefined && output["instanceTypes"]["item"] !== undefined) {
|
|
54229
|
+
contents.InstanceTypes = deserializeAws_ec2InstanceTypesList((0, smithy_client_1.getArrayIfSingleItem)(output["instanceTypes"]["item"]), context);
|
|
54230
|
+
}
|
|
54224
54231
|
return contents;
|
|
54225
54232
|
};
|
|
54226
54233
|
const deserializeAws_ec2FpgaImageAttribute = (output, context) => {
|
|
@@ -57580,6 +57587,13 @@ const deserializeAws_ec2InstanceTypeOfferingsList = (output, context) => {
|
|
|
57580
57587
|
return deserializeAws_ec2InstanceTypeOffering(entry, context);
|
|
57581
57588
|
});
|
|
57582
57589
|
};
|
|
57590
|
+
const deserializeAws_ec2InstanceTypesList = (output, context) => {
|
|
57591
|
+
return (output || [])
|
|
57592
|
+
.filter((e) => e != null)
|
|
57593
|
+
.map((entry) => {
|
|
57594
|
+
return (0, smithy_client_1.expectString)(entry);
|
|
57595
|
+
});
|
|
57596
|
+
};
|
|
57583
57597
|
const deserializeAws_ec2InstanceUsage = (output, context) => {
|
|
57584
57598
|
const contents = {
|
|
57585
57599
|
AccountId: undefined,
|
|
@@ -7,8 +7,8 @@ const sha256_browser_1 = require("@aws-crypto/sha256-browser");
|
|
|
7
7
|
const config_resolver_1 = require("@aws-sdk/config-resolver");
|
|
8
8
|
const fetch_http_handler_1 = require("@aws-sdk/fetch-http-handler");
|
|
9
9
|
const invalid_dependency_1 = require("@aws-sdk/invalid-dependency");
|
|
10
|
-
const middleware_retry_1 = require("@aws-sdk/middleware-retry");
|
|
11
10
|
const util_body_length_browser_1 = require("@aws-sdk/util-body-length-browser");
|
|
11
|
+
const util_retry_1 = require("@aws-sdk/util-retry");
|
|
12
12
|
const util_user_agent_browser_1 = require("@aws-sdk/util-user-agent-browser");
|
|
13
13
|
const util_utf8_browser_1 = require("@aws-sdk/util-utf8-browser");
|
|
14
14
|
const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
|
|
@@ -27,10 +27,10 @@ const getRuntimeConfig = (config) => {
|
|
|
27
27
|
credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_) => () => Promise.reject(new Error("Credential is missing"))),
|
|
28
28
|
defaultUserAgentProvider: config?.defaultUserAgentProvider ??
|
|
29
29
|
(0, util_user_agent_browser_1.defaultUserAgent)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
|
|
30
|
-
maxAttempts: config?.maxAttempts ??
|
|
30
|
+
maxAttempts: config?.maxAttempts ?? util_retry_1.DEFAULT_MAX_ATTEMPTS,
|
|
31
31
|
region: config?.region ?? (0, invalid_dependency_1.invalidProvider)("Region is missing"),
|
|
32
32
|
requestHandler: config?.requestHandler ?? new fetch_http_handler_1.FetchHttpHandler(defaultConfigProvider),
|
|
33
|
-
retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode ||
|
|
33
|
+
retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || util_retry_1.DEFAULT_RETRY_MODE),
|
|
34
34
|
sha256: config?.sha256 ?? sha256_browser_1.Sha256,
|
|
35
35
|
streamCollector: config?.streamCollector ?? fetch_http_handler_1.streamCollector,
|
|
36
36
|
useDualstackEndpoint: config?.useDualstackEndpoint ?? (() => Promise.resolve(config_resolver_1.DEFAULT_USE_DUALSTACK_ENDPOINT)),
|
|
@@ -11,6 +11,7 @@ const middleware_retry_1 = require("@aws-sdk/middleware-retry");
|
|
|
11
11
|
const node_config_provider_1 = require("@aws-sdk/node-config-provider");
|
|
12
12
|
const node_http_handler_1 = require("@aws-sdk/node-http-handler");
|
|
13
13
|
const util_body_length_node_1 = require("@aws-sdk/util-body-length-node");
|
|
14
|
+
const util_retry_1 = require("@aws-sdk/util-retry");
|
|
14
15
|
const util_user_agent_node_1 = require("@aws-sdk/util-user-agent-node");
|
|
15
16
|
const util_utf8_node_1 = require("@aws-sdk/util-utf8-node");
|
|
16
17
|
const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
|
|
@@ -37,7 +38,7 @@ const getRuntimeConfig = (config) => {
|
|
|
37
38
|
retryMode: config?.retryMode ??
|
|
38
39
|
(0, node_config_provider_1.loadConfig)({
|
|
39
40
|
...middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS,
|
|
40
|
-
default: async () => (await defaultConfigProvider()).retryMode ||
|
|
41
|
+
default: async () => (await defaultConfigProvider()).retryMode || util_retry_1.DEFAULT_RETRY_MODE,
|
|
41
42
|
}),
|
|
42
43
|
sha256: config?.sha256 ?? hash_node_1.Hash.bind(null, "sha256"),
|
|
43
44
|
streamCollector: config?.streamCollector ?? node_http_handler_1.streamCollector,
|
|
@@ -97,6 +97,7 @@ export var ResourceType;
|
|
|
97
97
|
ResourceType["verified_access_trust_provider"] = "verified-access-trust-provider";
|
|
98
98
|
ResourceType["volume"] = "volume";
|
|
99
99
|
ResourceType["vpc"] = "vpc";
|
|
100
|
+
ResourceType["vpc_block_public_access_exclusion"] = "vpc-block-public-access-exclusion";
|
|
100
101
|
ResourceType["vpc_endpoint"] = "vpc-endpoint";
|
|
101
102
|
ResourceType["vpc_endpoint_connection"] = "vpc-endpoint-connection";
|
|
102
103
|
ResourceType["vpc_endpoint_connection_device_type"] = "vpc-endpoint-connection-device-type";
|
|
@@ -52991,6 +52991,7 @@ const deserializeAws_ec2FpgaImage = (output, context) => {
|
|
|
52991
52991
|
Tags: undefined,
|
|
52992
52992
|
Public: undefined,
|
|
52993
52993
|
DataRetentionSupport: undefined,
|
|
52994
|
+
InstanceTypes: undefined,
|
|
52994
52995
|
};
|
|
52995
52996
|
if (output["fpgaImageId"] !== undefined) {
|
|
52996
52997
|
contents.FpgaImageId = __expectString(output["fpgaImageId"]);
|
|
@@ -53043,6 +53044,12 @@ const deserializeAws_ec2FpgaImage = (output, context) => {
|
|
|
53043
53044
|
if (output["dataRetentionSupport"] !== undefined) {
|
|
53044
53045
|
contents.DataRetentionSupport = __parseBoolean(output["dataRetentionSupport"]);
|
|
53045
53046
|
}
|
|
53047
|
+
if (output.instanceTypes === "") {
|
|
53048
|
+
contents.InstanceTypes = [];
|
|
53049
|
+
}
|
|
53050
|
+
else if (output["instanceTypes"] !== undefined && output["instanceTypes"]["item"] !== undefined) {
|
|
53051
|
+
contents.InstanceTypes = deserializeAws_ec2InstanceTypesList(__getArrayIfSingleItem(output["instanceTypes"]["item"]), context);
|
|
53052
|
+
}
|
|
53046
53053
|
return contents;
|
|
53047
53054
|
};
|
|
53048
53055
|
const deserializeAws_ec2FpgaImageAttribute = (output, context) => {
|
|
@@ -56402,6 +56409,13 @@ const deserializeAws_ec2InstanceTypeOfferingsList = (output, context) => {
|
|
|
56402
56409
|
return deserializeAws_ec2InstanceTypeOffering(entry, context);
|
|
56403
56410
|
});
|
|
56404
56411
|
};
|
|
56412
|
+
const deserializeAws_ec2InstanceTypesList = (output, context) => {
|
|
56413
|
+
return (output || [])
|
|
56414
|
+
.filter((e) => e != null)
|
|
56415
|
+
.map((entry) => {
|
|
56416
|
+
return __expectString(entry);
|
|
56417
|
+
});
|
|
56418
|
+
};
|
|
56405
56419
|
const deserializeAws_ec2InstanceUsage = (output, context) => {
|
|
56406
56420
|
const contents = {
|
|
56407
56421
|
AccountId: undefined,
|
|
@@ -3,8 +3,8 @@ import { Sha256 } from "@aws-crypto/sha256-browser";
|
|
|
3
3
|
import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws-sdk/config-resolver";
|
|
4
4
|
import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler";
|
|
5
5
|
import { invalidProvider } from "@aws-sdk/invalid-dependency";
|
|
6
|
-
import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry";
|
|
7
6
|
import { calculateBodyLength } from "@aws-sdk/util-body-length-browser";
|
|
7
|
+
import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/util-retry";
|
|
8
8
|
import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser";
|
|
9
9
|
import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser";
|
|
10
10
|
import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
|
package/dist-es/runtimeConfig.js
CHANGED
|
@@ -3,10 +3,11 @@ import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts";
|
|
|
3
3
|
import { NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, } from "@aws-sdk/config-resolver";
|
|
4
4
|
import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node";
|
|
5
5
|
import { Hash } from "@aws-sdk/hash-node";
|
|
6
|
-
import {
|
|
6
|
+
import { NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS } from "@aws-sdk/middleware-retry";
|
|
7
7
|
import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider";
|
|
8
8
|
import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler";
|
|
9
9
|
import { calculateBodyLength } from "@aws-sdk/util-body-length-node";
|
|
10
|
+
import { DEFAULT_RETRY_MODE } from "@aws-sdk/util-retry";
|
|
10
11
|
import { defaultUserAgent } from "@aws-sdk/util-user-agent-node";
|
|
11
12
|
import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node";
|
|
12
13
|
import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
|