@aws-sdk/client-ec2 3.36.1 → 3.40.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 (271) hide show
  1. package/CHANGELOG.md +46 -0
  2. package/dist-cjs/EC2.js +30 -0
  3. package/dist-cjs/commands/CreateFleetCommand.js +2 -1
  4. package/dist-cjs/commands/CreateFlowLogsCommand.js +3 -3
  5. package/dist-cjs/commands/CreateFpgaImageCommand.js +3 -3
  6. package/dist-cjs/commands/CreateImageCommand.js +3 -3
  7. package/dist-cjs/commands/CreateInstanceEventWindowCommand.js +1 -2
  8. package/dist-cjs/commands/CreateVpcEndpointServiceConfigurationCommand.js +3 -3
  9. package/dist-cjs/commands/CreateVpcPeeringConnectionCommand.js +3 -3
  10. package/dist-cjs/commands/CreateVpnConnectionCommand.js +1 -2
  11. package/dist-cjs/commands/DescribeHostsCommand.js +2 -1
  12. package/dist-cjs/commands/DescribeIamInstanceProfileAssociationsCommand.js +3 -3
  13. package/dist-cjs/commands/DescribeIdFormatCommand.js +3 -3
  14. package/dist-cjs/commands/DescribeIdentityIdFormatCommand.js +3 -3
  15. package/dist-cjs/commands/DescribeImageAttributeCommand.js +3 -3
  16. package/dist-cjs/commands/DescribeImagesCommand.js +3 -3
  17. package/dist-cjs/commands/DescribeImportImageTasksCommand.js +1 -2
  18. package/dist-cjs/commands/DescribeTagsCommand.js +3 -3
  19. package/dist-cjs/commands/DescribeTrafficMirrorFiltersCommand.js +3 -3
  20. package/dist-cjs/commands/DescribeTrafficMirrorSessionsCommand.js +3 -3
  21. package/dist-cjs/commands/DescribeTrafficMirrorTargetsCommand.js +3 -3
  22. package/dist-cjs/commands/DescribeTransitGatewayAttachmentsCommand.js +3 -3
  23. package/dist-cjs/commands/DescribeTransitGatewayConnectPeersCommand.js +3 -3
  24. package/dist-cjs/commands/DescribeTransitGatewayConnectsCommand.js +3 -3
  25. package/dist-cjs/commands/DescribeTransitGatewayMulticastDomainsCommand.js +3 -3
  26. package/dist-cjs/commands/DescribeTransitGatewayPeeringAttachmentsCommand.js +3 -3
  27. package/dist-cjs/commands/DescribeTransitGatewayRouteTablesCommand.js +3 -3
  28. package/dist-cjs/commands/DescribeTransitGatewayVpcAttachmentsCommand.js +3 -3
  29. package/dist-cjs/commands/DescribeTransitGatewaysCommand.js +3 -3
  30. package/dist-cjs/commands/DescribeTrunkInterfaceAssociationsCommand.js +3 -3
  31. package/dist-cjs/commands/DescribeVolumeAttributeCommand.js +3 -3
  32. package/dist-cjs/commands/GetInstanceTypesFromInstanceRequirementsCommand.js +36 -0
  33. package/dist-cjs/commands/GetSpotPlacementScoresCommand.js +36 -0
  34. package/dist-cjs/commands/ModifyInstanceCreditSpecificationCommand.js +2 -1
  35. package/dist-cjs/commands/ModifyInstanceEventStartTimeCommand.js +3 -3
  36. package/dist-cjs/commands/ModifyInstanceEventWindowCommand.js +3 -3
  37. package/dist-cjs/commands/ModifyInstanceMetadataOptionsCommand.js +3 -3
  38. package/dist-cjs/commands/ModifyInstancePlacementCommand.js +3 -3
  39. package/dist-cjs/commands/ModifyLaunchTemplateCommand.js +3 -3
  40. package/dist-cjs/commands/ModifyManagedPrefixListCommand.js +3 -3
  41. package/dist-cjs/commands/ModifyNetworkInterfaceAttributeCommand.js +2 -2
  42. package/dist-cjs/commands/ModifyReservedInstancesCommand.js +3 -3
  43. package/dist-cjs/commands/ModifySecurityGroupRulesCommand.js +3 -3
  44. package/dist-cjs/commands/ModifySnapshotAttributeCommand.js +2 -2
  45. package/dist-cjs/commands/ModifySpotFleetRequestCommand.js +3 -3
  46. package/dist-cjs/commands/ModifySubnetAttributeCommand.js +2 -2
  47. package/dist-cjs/commands/ModifyTrafficMirrorFilterNetworkServicesCommand.js +3 -3
  48. package/dist-cjs/commands/ModifyTrafficMirrorFilterRuleCommand.js +3 -3
  49. package/dist-cjs/commands/ModifyTrafficMirrorSessionCommand.js +1 -2
  50. package/dist-cjs/commands/index.js +476 -0
  51. package/dist-cjs/endpoints.js +187 -23
  52. package/dist-cjs/index.js +5 -609
  53. package/dist-cjs/models/models_0.js +144 -108
  54. package/dist-cjs/models/models_1.js +153 -181
  55. package/dist-cjs/models/models_2.js +188 -144
  56. package/dist-cjs/models/models_3.js +150 -192
  57. package/dist-cjs/models/models_4.js +234 -223
  58. package/dist-cjs/models/models_5.js +222 -4
  59. package/dist-cjs/pagination/GetInstanceTypesFromInstanceRequirementsPaginator.js +35 -0
  60. package/dist-cjs/pagination/GetSpotPlacementScoresPaginator.js +35 -0
  61. package/dist-cjs/pagination/index.js +109 -0
  62. package/dist-cjs/protocols/Aws_ec2.js +2226 -915
  63. package/dist-cjs/runtimeConfig.browser.js +6 -3
  64. package/dist-cjs/runtimeConfig.js +5 -3
  65. package/dist-cjs/waiters/index.js +35 -0
  66. package/dist-es/EC2.js +30 -0
  67. package/dist-es/commands/CreateFleetCommand.js +2 -1
  68. package/dist-es/commands/CreateFlowLogsCommand.js +1 -1
  69. package/dist-es/commands/CreateFpgaImageCommand.js +1 -1
  70. package/dist-es/commands/CreateImageCommand.js +1 -1
  71. package/dist-es/commands/CreateInstanceEventWindowCommand.js +1 -2
  72. package/dist-es/commands/CreateVpcEndpointServiceConfigurationCommand.js +1 -1
  73. package/dist-es/commands/CreateVpcPeeringConnectionCommand.js +1 -1
  74. package/dist-es/commands/CreateVpnConnectionCommand.js +1 -2
  75. package/dist-es/commands/DescribeHostsCommand.js +2 -1
  76. package/dist-es/commands/DescribeIamInstanceProfileAssociationsCommand.js +1 -1
  77. package/dist-es/commands/DescribeIdFormatCommand.js +1 -1
  78. package/dist-es/commands/DescribeIdentityIdFormatCommand.js +1 -1
  79. package/dist-es/commands/DescribeImageAttributeCommand.js +1 -1
  80. package/dist-es/commands/DescribeImagesCommand.js +1 -1
  81. package/dist-es/commands/DescribeImportImageTasksCommand.js +1 -2
  82. package/dist-es/commands/DescribeTagsCommand.js +1 -1
  83. package/dist-es/commands/DescribeTrafficMirrorFiltersCommand.js +1 -1
  84. package/dist-es/commands/DescribeTrafficMirrorSessionsCommand.js +1 -1
  85. package/dist-es/commands/DescribeTrafficMirrorTargetsCommand.js +1 -1
  86. package/dist-es/commands/DescribeTransitGatewayAttachmentsCommand.js +1 -1
  87. package/dist-es/commands/DescribeTransitGatewayConnectPeersCommand.js +1 -1
  88. package/dist-es/commands/DescribeTransitGatewayConnectsCommand.js +1 -1
  89. package/dist-es/commands/DescribeTransitGatewayMulticastDomainsCommand.js +1 -1
  90. package/dist-es/commands/DescribeTransitGatewayPeeringAttachmentsCommand.js +1 -1
  91. package/dist-es/commands/DescribeTransitGatewayRouteTablesCommand.js +1 -1
  92. package/dist-es/commands/DescribeTransitGatewayVpcAttachmentsCommand.js +1 -1
  93. package/dist-es/commands/DescribeTransitGatewaysCommand.js +1 -1
  94. package/dist-es/commands/DescribeTrunkInterfaceAssociationsCommand.js +1 -1
  95. package/dist-es/commands/DescribeVolumeAttributeCommand.js +1 -1
  96. package/dist-es/commands/GetInstanceTypesFromInstanceRequirementsCommand.js +39 -0
  97. package/dist-es/commands/GetSpotPlacementScoresCommand.js +39 -0
  98. package/dist-es/commands/ModifyInstanceCreditSpecificationCommand.js +2 -1
  99. package/dist-es/commands/ModifyInstanceEventStartTimeCommand.js +1 -1
  100. package/dist-es/commands/ModifyInstanceEventWindowCommand.js +1 -1
  101. package/dist-es/commands/ModifyInstanceMetadataOptionsCommand.js +1 -1
  102. package/dist-es/commands/ModifyInstancePlacementCommand.js +1 -1
  103. package/dist-es/commands/ModifyLaunchTemplateCommand.js +1 -1
  104. package/dist-es/commands/ModifyManagedPrefixListCommand.js +1 -1
  105. package/dist-es/commands/ModifyNetworkInterfaceAttributeCommand.js +1 -1
  106. package/dist-es/commands/ModifyReservedInstancesCommand.js +1 -1
  107. package/dist-es/commands/ModifySecurityGroupRulesCommand.js +1 -1
  108. package/dist-es/commands/ModifySnapshotAttributeCommand.js +1 -1
  109. package/dist-es/commands/ModifySpotFleetRequestCommand.js +1 -1
  110. package/dist-es/commands/ModifySubnetAttributeCommand.js +1 -1
  111. package/dist-es/commands/ModifyTrafficMirrorFilterNetworkServicesCommand.js +1 -1
  112. package/dist-es/commands/ModifyTrafficMirrorFilterRuleCommand.js +1 -1
  113. package/dist-es/commands/ModifyTrafficMirrorSessionCommand.js +1 -2
  114. package/dist-es/commands/index.js +473 -0
  115. package/dist-es/endpoints.js +187 -23
  116. package/dist-es/index.js +5 -609
  117. package/dist-es/models/models_0.js +116 -73
  118. package/dist-es/models/models_1.js +102 -124
  119. package/dist-es/models/models_2.js +128 -92
  120. package/dist-es/models/models_3.js +98 -124
  121. package/dist-es/models/models_4.js +152 -147
  122. package/dist-es/models/models_5.js +147 -0
  123. package/dist-es/pagination/GetInstanceTypesFromInstanceRequirementsPaginator.js +74 -0
  124. package/dist-es/pagination/GetSpotPlacementScoresPaginator.js +74 -0
  125. package/dist-es/pagination/index.js +106 -0
  126. package/dist-es/protocols/Aws_ec2.js +3652 -2148
  127. package/dist-es/runtimeConfig.browser.js +3 -2
  128. package/dist-es/runtimeConfig.js +3 -3
  129. package/dist-es/waiters/index.js +32 -0
  130. package/dist-types/EC2.d.ts +54 -22
  131. package/dist-types/EC2Client.d.ts +12 -2
  132. package/dist-types/commands/CreateFleetCommand.d.ts +2 -1
  133. package/dist-types/commands/CreateFlowLogsCommand.d.ts +1 -1
  134. package/dist-types/commands/CreateFpgaImageCommand.d.ts +2 -2
  135. package/dist-types/commands/CreateImageCommand.d.ts +1 -1
  136. package/dist-types/commands/CreateInstanceEventWindowCommand.d.ts +1 -2
  137. package/dist-types/commands/CreateLaunchTemplateCommand.d.ts +1 -1
  138. package/dist-types/commands/CreateTrafficMirrorFilterRuleCommand.d.ts +1 -1
  139. package/dist-types/commands/CreateVpcEndpointCommand.d.ts +6 -5
  140. package/dist-types/commands/CreateVpcEndpointServiceConfigurationCommand.d.ts +2 -2
  141. package/dist-types/commands/CreateVpcPeeringConnectionCommand.d.ts +1 -1
  142. package/dist-types/commands/CreateVpnConnectionCommand.d.ts +1 -2
  143. package/dist-types/commands/DescribeAvailabilityZonesCommand.d.ts +2 -2
  144. package/dist-types/commands/DescribeFleetHistoryCommand.d.ts +2 -1
  145. package/dist-types/commands/DescribeFpgaImagesCommand.d.ts +1 -1
  146. package/dist-types/commands/DescribeHostsCommand.d.ts +2 -1
  147. package/dist-types/commands/DescribeIamInstanceProfileAssociationsCommand.d.ts +1 -1
  148. package/dist-types/commands/DescribeIdFormatCommand.d.ts +2 -2
  149. package/dist-types/commands/DescribeIdentityIdFormatCommand.d.ts +1 -1
  150. package/dist-types/commands/DescribeImageAttributeCommand.d.ts +1 -1
  151. package/dist-types/commands/DescribeImagesCommand.d.ts +1 -1
  152. package/dist-types/commands/DescribeImportImageTasksCommand.d.ts +1 -2
  153. package/dist-types/commands/DescribeRegionsCommand.d.ts +3 -3
  154. package/dist-types/commands/DescribeSpotFleetRequestHistoryCommand.d.ts +2 -0
  155. package/dist-types/commands/DescribeTagsCommand.d.ts +1 -1
  156. package/dist-types/commands/DescribeTrafficMirrorFiltersCommand.d.ts +1 -1
  157. package/dist-types/commands/DescribeTrafficMirrorSessionsCommand.d.ts +1 -1
  158. package/dist-types/commands/DescribeTrafficMirrorTargetsCommand.d.ts +1 -1
  159. package/dist-types/commands/DescribeTransitGatewayAttachmentsCommand.d.ts +1 -1
  160. package/dist-types/commands/DescribeTransitGatewayConnectPeersCommand.d.ts +1 -1
  161. package/dist-types/commands/DescribeTransitGatewayConnectsCommand.d.ts +1 -1
  162. package/dist-types/commands/DescribeTransitGatewayMulticastDomainsCommand.d.ts +1 -1
  163. package/dist-types/commands/DescribeTransitGatewayPeeringAttachmentsCommand.d.ts +1 -1
  164. package/dist-types/commands/DescribeTransitGatewayRouteTablesCommand.d.ts +1 -1
  165. package/dist-types/commands/DescribeTransitGatewayVpcAttachmentsCommand.d.ts +1 -1
  166. package/dist-types/commands/DescribeTransitGatewaysCommand.d.ts +1 -1
  167. package/dist-types/commands/DescribeTrunkInterfaceAssociationsCommand.d.ts +1 -1
  168. package/dist-types/commands/DescribeVolumeAttributeCommand.d.ts +1 -1
  169. package/dist-types/commands/GetInstanceTypesFromInstanceRequirementsCommand.d.ts +44 -0
  170. package/dist-types/commands/GetSpotPlacementScoresCommand.d.ts +42 -0
  171. package/dist-types/commands/GetVpnConnectionDeviceSampleConfigurationCommand.d.ts +1 -1
  172. package/dist-types/commands/ModifyIdFormatCommand.d.ts +1 -1
  173. package/dist-types/commands/ModifyInstanceCreditSpecificationCommand.d.ts +2 -1
  174. package/dist-types/commands/ModifyInstanceEventStartTimeCommand.d.ts +1 -1
  175. package/dist-types/commands/ModifyInstanceEventWindowCommand.d.ts +1 -1
  176. package/dist-types/commands/ModifyInstanceMetadataOptionsCommand.d.ts +1 -1
  177. package/dist-types/commands/ModifyInstancePlacementCommand.d.ts +1 -1
  178. package/dist-types/commands/ModifyLaunchTemplateCommand.d.ts +1 -1
  179. package/dist-types/commands/ModifyManagedPrefixListCommand.d.ts +1 -1
  180. package/dist-types/commands/ModifyNetworkInterfaceAttributeCommand.d.ts +1 -1
  181. package/dist-types/commands/ModifyReservedInstancesCommand.d.ts +1 -1
  182. package/dist-types/commands/ModifySecurityGroupRulesCommand.d.ts +1 -1
  183. package/dist-types/commands/ModifySnapshotAttributeCommand.d.ts +1 -1
  184. package/dist-types/commands/ModifySpotFleetRequestCommand.d.ts +1 -1
  185. package/dist-types/commands/ModifySubnetAttributeCommand.d.ts +1 -1
  186. package/dist-types/commands/ModifyTrafficMirrorFilterNetworkServicesCommand.d.ts +1 -3
  187. package/dist-types/commands/ModifyTrafficMirrorFilterRuleCommand.d.ts +1 -1
  188. package/dist-types/commands/ModifyTrafficMirrorSessionCommand.d.ts +1 -2
  189. package/dist-types/commands/ModifyVpcEndpointServicePermissionsCommand.d.ts +1 -1
  190. package/dist-types/commands/index.d.ts +473 -0
  191. package/dist-types/index.d.ts +5 -609
  192. package/dist-types/models/models_0.d.ts +610 -699
  193. package/dist-types/models/models_1.d.ts +4710 -4496
  194. package/dist-types/models/models_2.d.ts +4647 -4707
  195. package/dist-types/models/models_3.d.ts +6978 -6938
  196. package/dist-types/models/models_4.d.ts +4834 -4487
  197. package/dist-types/models/models_5.d.ts +974 -20
  198. package/dist-types/pagination/GetInstanceTypesFromInstanceRequirementsPaginator.d.ts +4 -0
  199. package/dist-types/pagination/GetSpotPlacementScoresPaginator.d.ts +4 -0
  200. package/dist-types/pagination/index.d.ts +106 -0
  201. package/dist-types/protocols/Aws_ec2.d.ts +6 -0
  202. package/dist-types/runtimeConfig.browser.d.ts +2 -0
  203. package/dist-types/runtimeConfig.d.ts +2 -0
  204. package/dist-types/runtimeConfig.native.d.ts +2 -0
  205. package/dist-types/ts3.4/EC2.d.ts +10 -0
  206. package/dist-types/ts3.4/EC2Client.d.ts +8 -2
  207. package/dist-types/ts3.4/commands/CreateFleetCommand.d.ts +2 -1
  208. package/dist-types/ts3.4/commands/CreateFlowLogsCommand.d.ts +1 -1
  209. package/dist-types/ts3.4/commands/CreateFpgaImageCommand.d.ts +1 -1
  210. package/dist-types/ts3.4/commands/CreateImageCommand.d.ts +1 -1
  211. package/dist-types/ts3.4/commands/CreateInstanceEventWindowCommand.d.ts +1 -2
  212. package/dist-types/ts3.4/commands/CreateVpcEndpointServiceConfigurationCommand.d.ts +1 -1
  213. package/dist-types/ts3.4/commands/CreateVpcPeeringConnectionCommand.d.ts +1 -1
  214. package/dist-types/ts3.4/commands/CreateVpnConnectionCommand.d.ts +1 -2
  215. package/dist-types/ts3.4/commands/DescribeHostsCommand.d.ts +2 -1
  216. package/dist-types/ts3.4/commands/DescribeIamInstanceProfileAssociationsCommand.d.ts +1 -1
  217. package/dist-types/ts3.4/commands/DescribeIdFormatCommand.d.ts +1 -1
  218. package/dist-types/ts3.4/commands/DescribeIdentityIdFormatCommand.d.ts +1 -1
  219. package/dist-types/ts3.4/commands/DescribeImageAttributeCommand.d.ts +1 -1
  220. package/dist-types/ts3.4/commands/DescribeImagesCommand.d.ts +1 -1
  221. package/dist-types/ts3.4/commands/DescribeImportImageTasksCommand.d.ts +1 -2
  222. package/dist-types/ts3.4/commands/DescribeTagsCommand.d.ts +1 -1
  223. package/dist-types/ts3.4/commands/DescribeTrafficMirrorFiltersCommand.d.ts +1 -1
  224. package/dist-types/ts3.4/commands/DescribeTrafficMirrorSessionsCommand.d.ts +1 -1
  225. package/dist-types/ts3.4/commands/DescribeTrafficMirrorTargetsCommand.d.ts +1 -1
  226. package/dist-types/ts3.4/commands/DescribeTransitGatewayAttachmentsCommand.d.ts +1 -1
  227. package/dist-types/ts3.4/commands/DescribeTransitGatewayConnectPeersCommand.d.ts +1 -1
  228. package/dist-types/ts3.4/commands/DescribeTransitGatewayConnectsCommand.d.ts +1 -1
  229. package/dist-types/ts3.4/commands/DescribeTransitGatewayMulticastDomainsCommand.d.ts +1 -1
  230. package/dist-types/ts3.4/commands/DescribeTransitGatewayPeeringAttachmentsCommand.d.ts +1 -1
  231. package/dist-types/ts3.4/commands/DescribeTransitGatewayRouteTablesCommand.d.ts +1 -1
  232. package/dist-types/ts3.4/commands/DescribeTransitGatewayVpcAttachmentsCommand.d.ts +1 -1
  233. package/dist-types/ts3.4/commands/DescribeTransitGatewaysCommand.d.ts +1 -1
  234. package/dist-types/ts3.4/commands/DescribeTrunkInterfaceAssociationsCommand.d.ts +1 -1
  235. package/dist-types/ts3.4/commands/DescribeVolumeAttributeCommand.d.ts +1 -1
  236. package/dist-types/ts3.4/commands/GetInstanceTypesFromInstanceRequirementsCommand.d.ts +17 -0
  237. package/dist-types/ts3.4/commands/GetSpotPlacementScoresCommand.d.ts +17 -0
  238. package/dist-types/ts3.4/commands/ModifyInstanceCreditSpecificationCommand.d.ts +2 -1
  239. package/dist-types/ts3.4/commands/ModifyInstanceEventStartTimeCommand.d.ts +1 -1
  240. package/dist-types/ts3.4/commands/ModifyInstanceEventWindowCommand.d.ts +1 -1
  241. package/dist-types/ts3.4/commands/ModifyInstanceMetadataOptionsCommand.d.ts +1 -1
  242. package/dist-types/ts3.4/commands/ModifyInstancePlacementCommand.d.ts +1 -1
  243. package/dist-types/ts3.4/commands/ModifyLaunchTemplateCommand.d.ts +1 -1
  244. package/dist-types/ts3.4/commands/ModifyManagedPrefixListCommand.d.ts +1 -1
  245. package/dist-types/ts3.4/commands/ModifyNetworkInterfaceAttributeCommand.d.ts +1 -1
  246. package/dist-types/ts3.4/commands/ModifyReservedInstancesCommand.d.ts +1 -1
  247. package/dist-types/ts3.4/commands/ModifySecurityGroupRulesCommand.d.ts +1 -1
  248. package/dist-types/ts3.4/commands/ModifySnapshotAttributeCommand.d.ts +1 -1
  249. package/dist-types/ts3.4/commands/ModifySpotFleetRequestCommand.d.ts +1 -1
  250. package/dist-types/ts3.4/commands/ModifySubnetAttributeCommand.d.ts +1 -1
  251. package/dist-types/ts3.4/commands/ModifyTrafficMirrorFilterNetworkServicesCommand.d.ts +1 -1
  252. package/dist-types/ts3.4/commands/ModifyTrafficMirrorFilterRuleCommand.d.ts +1 -1
  253. package/dist-types/ts3.4/commands/ModifyTrafficMirrorSessionCommand.d.ts +1 -2
  254. package/dist-types/ts3.4/commands/index.d.ts +473 -0
  255. package/dist-types/ts3.4/index.d.ts +5 -609
  256. package/dist-types/ts3.4/models/models_0.d.ts +231 -266
  257. package/dist-types/ts3.4/models/models_1.d.ts +401 -417
  258. package/dist-types/ts3.4/models/models_2.d.ts +439 -413
  259. package/dist-types/ts3.4/models/models_3.d.ts +2348 -2330
  260. package/dist-types/ts3.4/models/models_4.d.ts +2003 -1964
  261. package/dist-types/ts3.4/models/models_5.d.ts +485 -7
  262. package/dist-types/ts3.4/pagination/GetInstanceTypesFromInstanceRequirementsPaginator.d.ts +4 -0
  263. package/dist-types/ts3.4/pagination/GetSpotPlacementScoresPaginator.d.ts +4 -0
  264. package/dist-types/ts3.4/pagination/index.d.ts +106 -0
  265. package/dist-types/ts3.4/protocols/Aws_ec2.d.ts +6 -0
  266. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +2 -0
  267. package/dist-types/ts3.4/runtimeConfig.d.ts +2 -0
  268. package/dist-types/ts3.4/runtimeConfig.native.d.ts +2 -0
  269. package/dist-types/ts3.4/waiters/index.d.ts +32 -0
  270. package/dist-types/waiters/index.d.ts +32 -0
  271. package/package.json +34 -34
@@ -3,34 +3,132 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.defaultRegionInfoProvider = void 0;
4
4
  const config_resolver_1 = require("@aws-sdk/config-resolver");
5
5
  const regionHash = {
6
- "fips-ca-central-1": {
7
- hostname: "ec2-fips.ca-central-1.amazonaws.com",
8
- signingRegion: "ca-central-1",
6
+ "ap-south-1": {
7
+ variants: [
8
+ {
9
+ hostname: "ec2.ap-south-1.amazonaws.com",
10
+ tags: [],
11
+ },
12
+ {
13
+ hostname: "api.ec2.ap-south-1.aws",
14
+ tags: ["dualstack"],
15
+ },
16
+ ],
9
17
  },
10
- "fips-us-east-1": {
11
- hostname: "ec2-fips.us-east-1.amazonaws.com",
12
- signingRegion: "us-east-1",
18
+ "ca-central-1": {
19
+ variants: [
20
+ {
21
+ hostname: "ec2.ca-central-1.amazonaws.com",
22
+ tags: [],
23
+ },
24
+ {
25
+ hostname: "ec2-fips.ca-central-1.amazonaws.com",
26
+ tags: ["fips"],
27
+ },
28
+ ],
13
29
  },
14
- "fips-us-east-2": {
15
- hostname: "ec2-fips.us-east-2.amazonaws.com",
16
- signingRegion: "us-east-2",
30
+ "eu-west-1": {
31
+ variants: [
32
+ {
33
+ hostname: "ec2.eu-west-1.amazonaws.com",
34
+ tags: [],
35
+ },
36
+ {
37
+ hostname: "api.ec2.eu-west-1.aws",
38
+ tags: ["dualstack"],
39
+ },
40
+ ],
17
41
  },
18
- "fips-us-west-1": {
19
- hostname: "ec2-fips.us-west-1.amazonaws.com",
20
- signingRegion: "us-west-1",
42
+ "sa-east-1": {
43
+ variants: [
44
+ {
45
+ hostname: "ec2.sa-east-1.amazonaws.com",
46
+ tags: [],
47
+ },
48
+ {
49
+ hostname: "api.ec2.sa-east-1.aws",
50
+ tags: ["dualstack"],
51
+ },
52
+ ],
21
53
  },
22
- "fips-us-west-2": {
23
- hostname: "ec2-fips.us-west-2.amazonaws.com",
24
- signingRegion: "us-west-2",
54
+ "us-east-1": {
55
+ variants: [
56
+ {
57
+ hostname: "ec2.us-east-1.amazonaws.com",
58
+ tags: [],
59
+ },
60
+ {
61
+ hostname: "api.ec2.us-east-1.aws",
62
+ tags: ["dualstack"],
63
+ },
64
+ {
65
+ hostname: "ec2-fips.us-east-1.amazonaws.com",
66
+ tags: ["fips"],
67
+ },
68
+ ],
69
+ },
70
+ "us-east-2": {
71
+ variants: [
72
+ {
73
+ hostname: "ec2.us-east-2.amazonaws.com",
74
+ tags: [],
75
+ },
76
+ {
77
+ hostname: "api.ec2.us-east-2.aws",
78
+ tags: ["dualstack"],
79
+ },
80
+ {
81
+ hostname: "ec2-fips.us-east-2.amazonaws.com",
82
+ tags: ["fips"],
83
+ },
84
+ ],
25
85
  },
26
86
  "us-gov-east-1": {
27
- hostname: "ec2.us-gov-east-1.amazonaws.com",
87
+ variants: [
88
+ {
89
+ hostname: "ec2.us-gov-east-1.amazonaws.com",
90
+ tags: [],
91
+ },
92
+ ],
28
93
  signingRegion: "us-gov-east-1",
29
94
  },
30
95
  "us-gov-west-1": {
31
- hostname: "ec2.us-gov-west-1.amazonaws.com",
96
+ variants: [
97
+ {
98
+ hostname: "ec2.us-gov-west-1.amazonaws.com",
99
+ tags: [],
100
+ },
101
+ ],
32
102
  signingRegion: "us-gov-west-1",
33
103
  },
104
+ "us-west-1": {
105
+ variants: [
106
+ {
107
+ hostname: "ec2.us-west-1.amazonaws.com",
108
+ tags: [],
109
+ },
110
+ {
111
+ hostname: "ec2-fips.us-west-1.amazonaws.com",
112
+ tags: ["fips"],
113
+ },
114
+ ],
115
+ },
116
+ "us-west-2": {
117
+ variants: [
118
+ {
119
+ hostname: "ec2.us-west-2.amazonaws.com",
120
+ tags: [],
121
+ },
122
+ {
123
+ hostname: "api.ec2.us-west-2.aws",
124
+ tags: ["dualstack"],
125
+ },
126
+ {
127
+ hostname: "ec2-fips.us-west-2.amazonaws.com",
128
+ tags: ["fips"],
129
+ },
130
+ ],
131
+ },
34
132
  };
35
133
  const partitionHash = {
36
134
  aws: {
@@ -62,23 +160,89 @@ const partitionHash = {
62
160
  "us-west-1",
63
161
  "us-west-2",
64
162
  ],
65
- hostname: "ec2.{region}.amazonaws.com",
163
+ regionRegex: "^(us|eu|ap|sa|ca|me|af)\\-\\w+\\-\\d+$",
164
+ variants: [
165
+ {
166
+ hostname: "ec2.{region}.amazonaws.com",
167
+ tags: [],
168
+ },
169
+ {
170
+ hostname: "ec2-fips.{region}.amazonaws.com",
171
+ tags: ["fips"],
172
+ },
173
+ {
174
+ hostname: "ec2-fips.{region}.api.aws",
175
+ tags: ["dualstack", "fips"],
176
+ },
177
+ {
178
+ hostname: "ec2.{region}.api.aws",
179
+ tags: ["dualstack"],
180
+ },
181
+ ],
66
182
  },
67
183
  "aws-cn": {
68
184
  regions: ["cn-north-1", "cn-northwest-1"],
69
- hostname: "ec2.{region}.amazonaws.com.cn",
185
+ regionRegex: "^cn\\-\\w+\\-\\d+$",
186
+ variants: [
187
+ {
188
+ hostname: "ec2.{region}.amazonaws.com.cn",
189
+ tags: [],
190
+ },
191
+ {
192
+ hostname: "ec2-fips.{region}.amazonaws.com.cn",
193
+ tags: ["fips"],
194
+ },
195
+ {
196
+ hostname: "ec2-fips.{region}.api.amazonwebservices.com.cn",
197
+ tags: ["dualstack", "fips"],
198
+ },
199
+ {
200
+ hostname: "ec2.{region}.api.amazonwebservices.com.cn",
201
+ tags: ["dualstack"],
202
+ },
203
+ ],
70
204
  },
71
205
  "aws-iso": {
72
- regions: ["us-iso-east-1"],
73
- hostname: "ec2.{region}.c2s.ic.gov",
206
+ regions: ["us-iso-east-1", "us-iso-west-1"],
207
+ regionRegex: "^us\\-iso\\-\\w+\\-\\d+$",
208
+ variants: [
209
+ {
210
+ hostname: "ec2.{region}.c2s.ic.gov",
211
+ tags: [],
212
+ },
213
+ ],
74
214
  },
75
215
  "aws-iso-b": {
76
216
  regions: ["us-isob-east-1"],
77
- hostname: "ec2.{region}.sc2s.sgov.gov",
217
+ regionRegex: "^us\\-isob\\-\\w+\\-\\d+$",
218
+ variants: [
219
+ {
220
+ hostname: "ec2.{region}.sc2s.sgov.gov",
221
+ tags: [],
222
+ },
223
+ ],
78
224
  },
79
225
  "aws-us-gov": {
80
226
  regions: ["us-gov-east-1", "us-gov-west-1"],
81
- hostname: "ec2.{region}.amazonaws.com",
227
+ regionRegex: "^us\\-gov\\-\\w+\\-\\d+$",
228
+ variants: [
229
+ {
230
+ hostname: "ec2.{region}.amazonaws.com",
231
+ tags: [],
232
+ },
233
+ {
234
+ hostname: "ec2-fips.{region}.amazonaws.com",
235
+ tags: ["fips"],
236
+ },
237
+ {
238
+ hostname: "ec2-fips.{region}.api.aws",
239
+ tags: ["dualstack", "fips"],
240
+ },
241
+ {
242
+ hostname: "ec2.{region}.api.aws",
243
+ tags: ["dualstack"],
244
+ },
245
+ ],
82
246
  },
83
247
  };
84
248
  const defaultRegionInfoProvider = async (region, options) => config_resolver_1.getRegionInfo(region, {