@aws-sdk/client-ec2 3.224.0 → 3.229.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (176) hide show
  1. package/dist-cjs/endpoint/ruleset.js +0 -9
  2. package/dist-cjs/models/models_0.js +1 -0
  3. package/dist-cjs/protocols/Aws_ec2.js +14 -0
  4. package/dist-cjs/runtimeConfig.browser.js +3 -3
  5. package/dist-cjs/runtimeConfig.js +2 -1
  6. package/dist-es/endpoint/ruleset.js +0 -9
  7. package/dist-es/models/models_0.js +1 -0
  8. package/dist-es/protocols/Aws_ec2.js +14 -0
  9. package/dist-es/runtimeConfig.browser.js +1 -1
  10. package/dist-es/runtimeConfig.js +2 -1
  11. package/dist-types/EC2.d.ts +359 -425
  12. package/dist-types/commands/AcceptVpcPeeringConnectionCommand.d.ts +1 -1
  13. package/dist-types/commands/AssignIpv6AddressesCommand.d.ts +2 -2
  14. package/dist-types/commands/AssignPrivateIpAddressesCommand.d.ts +5 -5
  15. package/dist-types/commands/AssociateAddressCommand.d.ts +0 -1
  16. package/dist-types/commands/AssociateClientVpnTargetNetworkCommand.d.ts +1 -1
  17. package/dist-types/commands/AssociateEnclaveCertificateIamRoleCommand.d.ts +2 -4
  18. package/dist-types/commands/AssociateRouteTableCommand.d.ts +1 -1
  19. package/dist-types/commands/AssociateTransitGatewayMulticastDomainCommand.d.ts +1 -1
  20. package/dist-types/commands/AssociateTrunkInterfaceCommand.d.ts +3 -4
  21. package/dist-types/commands/AssociateVpcCidrBlockCommand.d.ts +2 -2
  22. package/dist-types/commands/AttachClassicLinkVpcCommand.d.ts +5 -5
  23. package/dist-types/commands/AttachVpnGatewayCommand.d.ts +1 -1
  24. package/dist-types/commands/AuthorizeSecurityGroupEgressCommand.d.ts +1 -1
  25. package/dist-types/commands/AuthorizeSecurityGroupIngressCommand.d.ts +1 -2
  26. package/dist-types/commands/BundleInstanceCommand.d.ts +1 -1
  27. package/dist-types/commands/CancelCapacityReservationCommand.d.ts +1 -1
  28. package/dist-types/commands/CancelCapacityReservationFleetsCommand.d.ts +7 -7
  29. package/dist-types/commands/CancelSpotFleetRequestsCommand.d.ts +1 -1
  30. package/dist-types/commands/CancelSpotInstanceRequestsCommand.d.ts +2 -2
  31. package/dist-types/commands/CopyImageCommand.d.ts +2 -5
  32. package/dist-types/commands/CopySnapshotCommand.d.ts +1 -4
  33. package/dist-types/commands/CreateCapacityReservationCommand.d.ts +3 -5
  34. package/dist-types/commands/CreateCustomerGatewayCommand.d.ts +2 -2
  35. package/dist-types/commands/CreateDefaultVpcCommand.d.ts +5 -5
  36. package/dist-types/commands/CreateDhcpOptionsCommand.d.ts +5 -6
  37. package/dist-types/commands/CreateFlowLogsCommand.d.ts +3 -6
  38. package/dist-types/commands/CreateImageCommand.d.ts +6 -10
  39. package/dist-types/commands/CreateInstanceEventWindowCommand.d.ts +1 -3
  40. package/dist-types/commands/CreateKeyPairCommand.d.ts +1 -1
  41. package/dist-types/commands/CreateLaunchTemplateCommand.d.ts +2 -2
  42. package/dist-types/commands/CreateLaunchTemplateVersionCommand.d.ts +3 -3
  43. package/dist-types/commands/CreateNetworkAclCommand.d.ts +1 -1
  44. package/dist-types/commands/CreateNetworkAclEntryCommand.d.ts +2 -2
  45. package/dist-types/commands/CreateNetworkInterfaceCommand.d.ts +2 -2
  46. package/dist-types/commands/CreateNetworkInterfacePermissionCommand.d.ts +1 -1
  47. package/dist-types/commands/CreatePlacementGroupCommand.d.ts +2 -2
  48. package/dist-types/commands/CreateReplaceRootVolumeTaskCommand.d.ts +0 -1
  49. package/dist-types/commands/CreateReservedInstancesListingCommand.d.ts +2 -2
  50. package/dist-types/commands/CreateRouteCommand.d.ts +6 -6
  51. package/dist-types/commands/CreateSecurityGroupCommand.d.ts +1 -2
  52. package/dist-types/commands/CreateSnapshotCommand.d.ts +0 -3
  53. package/dist-types/commands/CreateSnapshotsCommand.d.ts +0 -2
  54. package/dist-types/commands/CreateSubnetCommand.d.ts +7 -7
  55. package/dist-types/commands/CreateTagsCommand.d.ts +0 -1
  56. package/dist-types/commands/CreateTransitGatewayConnectCommand.d.ts +1 -1
  57. package/dist-types/commands/CreateTransitGatewayConnectPeerCommand.d.ts +2 -2
  58. package/dist-types/commands/CreateTransitGatewayMulticastDomainCommand.d.ts +1 -1
  59. package/dist-types/commands/CreateTransitGatewayPeeringAttachmentCommand.d.ts +1 -1
  60. package/dist-types/commands/CreateVpcCommand.d.ts +1 -1
  61. package/dist-types/commands/CreateVpcEndpointConnectionNotificationCommand.d.ts +1 -1
  62. package/dist-types/commands/CreateVpcEndpointServiceConfigurationCommand.d.ts +6 -6
  63. package/dist-types/commands/CreateVpnConnectionCommand.d.ts +6 -6
  64. package/dist-types/commands/CreateVpnConnectionRouteCommand.d.ts +1 -1
  65. package/dist-types/commands/CreateVpnGatewayCommand.d.ts +1 -1
  66. package/dist-types/commands/DeleteCarrierGatewayCommand.d.ts +2 -2
  67. package/dist-types/commands/DeleteFleetsCommand.d.ts +0 -1
  68. package/dist-types/commands/DeleteSecurityGroupCommand.d.ts +1 -2
  69. package/dist-types/commands/DeleteVpcEndpointsCommand.d.ts +7 -7
  70. package/dist-types/commands/DeleteVpnConnectionCommand.d.ts +2 -2
  71. package/dist-types/commands/DeregisterImageCommand.d.ts +1 -4
  72. package/dist-types/commands/DescribeAccountAttributesCommand.d.ts +2 -2
  73. package/dist-types/commands/DescribeAggregateIdFormatCommand.d.ts +0 -1
  74. package/dist-types/commands/DescribeClassicLinkInstancesCommand.d.ts +3 -3
  75. package/dist-types/commands/DescribeCustomerGatewaysCommand.d.ts +1 -1
  76. package/dist-types/commands/DescribeDhcpOptionsCommand.d.ts +1 -1
  77. package/dist-types/commands/DescribeFlowLogsCommand.d.ts +1 -1
  78. package/dist-types/commands/DescribeHostReservationOfferingsCommand.d.ts +1 -1
  79. package/dist-types/commands/DescribeHostsCommand.d.ts +1 -1
  80. package/dist-types/commands/DescribeInstanceAttributeCommand.d.ts +1 -1
  81. package/dist-types/commands/DescribeInstanceCreditSpecificationsCommand.d.ts +5 -5
  82. package/dist-types/commands/DescribeInstanceStatusCommand.d.ts +8 -8
  83. package/dist-types/commands/DescribeInstancesCommand.d.ts +4 -4
  84. package/dist-types/commands/DescribeManagedPrefixListsCommand.d.ts +1 -1
  85. package/dist-types/commands/DescribeNetworkAclsCommand.d.ts +1 -1
  86. package/dist-types/commands/DescribePrefixListsCommand.d.ts +1 -1
  87. package/dist-types/commands/DescribeReservedInstancesListingsCommand.d.ts +3 -3
  88. package/dist-types/commands/DescribeReservedInstancesModificationsCommand.d.ts +1 -1
  89. package/dist-types/commands/DescribeRouteTablesCommand.d.ts +1 -1
  90. package/dist-types/commands/DescribeSecurityGroupsCommand.d.ts +1 -1
  91. package/dist-types/commands/DescribeSpotFleetRequestHistoryCommand.d.ts +2 -2
  92. package/dist-types/commands/DescribeSpotFleetRequestsCommand.d.ts +1 -1
  93. package/dist-types/commands/DescribeSpotInstanceRequestsCommand.d.ts +3 -3
  94. package/dist-types/commands/DescribeSpotPriceHistoryCommand.d.ts +1 -1
  95. package/dist-types/commands/DescribeTrunkInterfaceAssociationsCommand.d.ts +2 -2
  96. package/dist-types/commands/DescribeVpcClassicLinkCommand.d.ts +3 -3
  97. package/dist-types/commands/DescribeVpcEndpointServicesCommand.d.ts +1 -1
  98. package/dist-types/commands/DescribeVpnConnectionsCommand.d.ts +1 -1
  99. package/dist-types/commands/DescribeVpnGatewaysCommand.d.ts +1 -1
  100. package/dist-types/commands/DetachClassicLinkVpcCommand.d.ts +3 -3
  101. package/dist-types/commands/DetachVpnGatewayCommand.d.ts +1 -1
  102. package/dist-types/commands/DisableFastLaunchCommand.d.ts +3 -3
  103. package/dist-types/commands/DisableVpcClassicLinkDnsSupportCommand.d.ts +0 -1
  104. package/dist-types/commands/DisassociateAddressCommand.d.ts +1 -2
  105. package/dist-types/commands/DisassociateClientVpnTargetNetworkCommand.d.ts +9 -9
  106. package/dist-types/commands/DisassociateIamInstanceProfileCommand.d.ts +1 -1
  107. package/dist-types/commands/DisassociateRouteTableCommand.d.ts +1 -1
  108. package/dist-types/commands/DisassociateTrunkInterfaceCommand.d.ts +2 -2
  109. package/dist-types/commands/DisassociateVpcCidrBlockCommand.d.ts +1 -1
  110. package/dist-types/commands/EnableEbsEncryptionByDefaultCommand.d.ts +1 -1
  111. package/dist-types/commands/EnableFastLaunchCommand.d.ts +3 -3
  112. package/dist-types/commands/GetConsoleOutputCommand.d.ts +3 -3
  113. package/dist-types/commands/GetConsoleScreenshotCommand.d.ts +1 -1
  114. package/dist-types/commands/GetDefaultCreditSpecificationCommand.d.ts +1 -1
  115. package/dist-types/commands/GetFlowLogsIntegrationTemplateCommand.d.ts +5 -5
  116. package/dist-types/commands/GetHostReservationPurchasePreviewCommand.d.ts +1 -1
  117. package/dist-types/commands/GetInstanceUefiDataCommand.d.ts +2 -2
  118. package/dist-types/commands/GetLaunchTemplateDataCommand.d.ts +1 -1
  119. package/dist-types/commands/GetPasswordDataCommand.d.ts +4 -4
  120. package/dist-types/commands/ImportClientVpnClientCertificateRevocationListCommand.d.ts +1 -1
  121. package/dist-types/commands/ModifyCapacityReservationFleetCommand.d.ts +1 -1
  122. package/dist-types/commands/ModifyDefaultCreditSpecificationCommand.d.ts +2 -2
  123. package/dist-types/commands/ModifyEbsDefaultKmsKeyIdCommand.d.ts +1 -1
  124. package/dist-types/commands/ModifyHostsCommand.d.ts +1 -1
  125. package/dist-types/commands/ModifyIdentityIdFormatCommand.d.ts +1 -1
  126. package/dist-types/commands/ModifyImageAttributeCommand.d.ts +1 -1
  127. package/dist-types/commands/ModifyInstanceAttributeCommand.d.ts +2 -2
  128. package/dist-types/commands/ModifyInstanceCreditSpecificationCommand.d.ts +1 -1
  129. package/dist-types/commands/ModifyInstancePlacementCommand.d.ts +7 -7
  130. package/dist-types/commands/ModifyManagedPrefixListCommand.d.ts +2 -2
  131. package/dist-types/commands/ModifyReservedInstancesCommand.d.ts +1 -1
  132. package/dist-types/commands/ModifySpotFleetRequestCommand.d.ts +5 -5
  133. package/dist-types/commands/ModifySubnetAttributeCommand.d.ts +6 -9
  134. package/dist-types/commands/ModifyVpcEndpointServiceConfigurationCommand.d.ts +1 -1
  135. package/dist-types/commands/ModifyVpcEndpointServicePermissionsCommand.d.ts +1 -1
  136. package/dist-types/commands/ModifyVpcTenancyCommand.d.ts +2 -2
  137. package/dist-types/commands/ModifyVpnConnectionCommand.d.ts +13 -15
  138. package/dist-types/commands/ModifyVpnConnectionOptionsCommand.d.ts +1 -1
  139. package/dist-types/commands/MonitorInstancesCommand.d.ts +1 -1
  140. package/dist-types/commands/PurchaseReservedInstancesOfferingCommand.d.ts +2 -2
  141. package/dist-types/commands/RebootInstancesCommand.d.ts +2 -2
  142. package/dist-types/commands/RegisterImageCommand.d.ts +4 -7
  143. package/dist-types/commands/RegisterTransitGatewayMulticastGroupMembersCommand.d.ts +1 -1
  144. package/dist-types/commands/RegisterTransitGatewayMulticastGroupSourcesCommand.d.ts +2 -2
  145. package/dist-types/commands/ReleaseHostsCommand.d.ts +2 -2
  146. package/dist-types/commands/ReplaceIamInstanceProfileAssociationCommand.d.ts +1 -1
  147. package/dist-types/commands/ReplaceNetworkAclAssociationCommand.d.ts +1 -1
  148. package/dist-types/commands/ReportInstanceStatusCommand.d.ts +1 -1
  149. package/dist-types/commands/RequestSpotFleetCommand.d.ts +8 -9
  150. package/dist-types/commands/RequestSpotInstancesCommand.d.ts +5 -7
  151. package/dist-types/commands/ResetInstanceAttributeCommand.d.ts +1 -1
  152. package/dist-types/commands/RestoreSnapshotTierCommand.d.ts +0 -1
  153. package/dist-types/commands/RevokeSecurityGroupEgressCommand.d.ts +0 -2
  154. package/dist-types/commands/RevokeSecurityGroupIngressCommand.d.ts +1 -4
  155. package/dist-types/commands/RunInstancesCommand.d.ts +16 -16
  156. package/dist-types/commands/SendDiagnosticInterruptCommand.d.ts +3 -6
  157. package/dist-types/commands/StartInstancesCommand.d.ts +5 -7
  158. package/dist-types/commands/StartVpcEndpointServicePrivateDnsVerificationCommand.d.ts +2 -2
  159. package/dist-types/commands/StopInstancesCommand.d.ts +6 -6
  160. package/dist-types/commands/TerminateInstancesCommand.d.ts +19 -24
  161. package/dist-types/models/models_0.d.ts +74 -79
  162. package/dist-types/models/models_1.d.ts +198 -201
  163. package/dist-types/models/models_2.d.ts +71 -71
  164. package/dist-types/models/models_3.d.ts +349 -357
  165. package/dist-types/models/models_4.d.ts +441 -443
  166. package/dist-types/models/models_5.d.ts +119 -122
  167. package/dist-types/models/models_6.d.ts +173 -175
  168. package/dist-types/runtimeConfig.browser.d.ts +1 -1
  169. package/dist-types/runtimeConfig.d.ts +1 -1
  170. package/dist-types/runtimeConfig.native.d.ts +1 -1
  171. package/dist-types/ts3.4/models/models_0.d.ts +1 -0
  172. package/dist-types/ts3.4/models/models_3.d.ts +1 -0
  173. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -1
  174. package/dist-types/ts3.4/runtimeConfig.d.ts +4 -1
  175. package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -1
  176. package/package.json +31 -30
@@ -56,15 +56,6 @@ exports.ruleSet = {
56
56
  },
57
57
  ],
58
58
  },
59
- {
60
- fn: "parseURL",
61
- argv: [
62
- {
63
- ref: "Endpoint",
64
- },
65
- ],
66
- assign: "url",
67
- },
68
59
  ],
69
60
  type: "tree",
70
61
  rules: [
@@ -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 ?? middleware_retry_1.DEFAULT_MAX_ATTEMPTS,
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 || middleware_retry_1.DEFAULT_RETRY_MODE),
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 || middleware_retry_1.DEFAULT_RETRY_MODE,
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,
@@ -53,15 +53,6 @@ export const ruleSet = {
53
53
  },
54
54
  ],
55
55
  },
56
- {
57
- fn: "parseURL",
58
- argv: [
59
- {
60
- ref: "Endpoint",
61
- },
62
- ],
63
- assign: "url",
64
- },
65
56
  ],
66
57
  type: "tree",
67
58
  rules: [
@@ -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";
@@ -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 { DEFAULT_RETRY_MODE, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS, } from "@aws-sdk/middleware-retry";
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";