@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
@@ -4,6 +4,7 @@ exports.getRuntimeConfig = void 0;
4
4
  const tslib_1 = require("tslib");
5
5
  const package_json_1 = tslib_1.__importDefault(require("../package.json"));
6
6
  const sha256_browser_1 = require("@aws-crypto/sha256-browser");
7
+ const config_resolver_1 = require("@aws-sdk/config-resolver");
7
8
  const fetch_http_handler_1 = require("@aws-sdk/fetch-http-handler");
8
9
  const invalid_dependency_1 = require("@aws-sdk/invalid-dependency");
9
10
  const middleware_retry_1 = require("@aws-sdk/middleware-retry");
@@ -13,7 +14,7 @@ const util_user_agent_browser_1 = require("@aws-sdk/util-user-agent-browser");
13
14
  const util_utf8_browser_1 = require("@aws-sdk/util-utf8-browser");
14
15
  const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
15
16
  const getRuntimeConfig = (config) => {
16
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
17
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
17
18
  const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
18
19
  return {
19
20
  ...clientSharedValues,
@@ -30,8 +31,10 @@ const getRuntimeConfig = (config) => {
30
31
  retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (() => Promise.resolve(middleware_retry_1.DEFAULT_RETRY_MODE)),
31
32
  sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : sha256_browser_1.Sha256,
32
33
  streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : fetch_http_handler_1.streamCollector,
33
- utf8Decoder: (_m = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _m !== void 0 ? _m : util_utf8_browser_1.fromUtf8,
34
- utf8Encoder: (_o = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _o !== void 0 ? _o : util_utf8_browser_1.toUtf8,
34
+ useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : (() => Promise.resolve(config_resolver_1.DEFAULT_USE_DUALSTACK_ENDPOINT)),
35
+ useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : (() => Promise.resolve(config_resolver_1.DEFAULT_USE_FIPS_ENDPOINT)),
36
+ utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : util_utf8_browser_1.fromUtf8,
37
+ utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : util_utf8_browser_1.toUtf8,
35
38
  };
36
39
  };
37
40
  exports.getRuntimeConfig = getRuntimeConfig;
@@ -17,7 +17,7 @@ const util_utf8_node_1 = require("@aws-sdk/util-utf8-node");
17
17
  const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
18
18
  const smithy_client_1 = require("@aws-sdk/smithy-client");
19
19
  const getRuntimeConfig = (config) => {
20
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
20
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
21
21
  smithy_client_1.emitWarningIfUnsupportedVersion(process.version);
22
22
  const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
23
23
  return {
@@ -35,8 +35,10 @@ const getRuntimeConfig = (config) => {
35
35
  retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : node_config_provider_1.loadConfig(middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS),
36
36
  sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : hash_node_1.Hash.bind(null, "sha256"),
37
37
  streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : node_http_handler_1.streamCollector,
38
- utf8Decoder: (_m = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _m !== void 0 ? _m : util_utf8_node_1.fromUtf8,
39
- utf8Encoder: (_o = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _o !== void 0 ? _o : util_utf8_node_1.toUtf8,
38
+ useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : node_config_provider_1.loadConfig(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),
39
+ useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : node_config_provider_1.loadConfig(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),
40
+ utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : util_utf8_node_1.fromUtf8,
41
+ utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : util_utf8_node_1.toUtf8,
40
42
  };
41
43
  };
42
44
  exports.getRuntimeConfig = getRuntimeConfig;
@@ -0,0 +1,35 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tslib_1 = require("tslib");
4
+ tslib_1.__exportStar(require("./waitForBundleTaskComplete"), exports);
5
+ tslib_1.__exportStar(require("./waitForConversionTaskCancelled"), exports);
6
+ tslib_1.__exportStar(require("./waitForConversionTaskCompleted"), exports);
7
+ tslib_1.__exportStar(require("./waitForConversionTaskDeleted"), exports);
8
+ tslib_1.__exportStar(require("./waitForCustomerGatewayAvailable"), exports);
9
+ tslib_1.__exportStar(require("./waitForExportTaskCancelled"), exports);
10
+ tslib_1.__exportStar(require("./waitForExportTaskCompleted"), exports);
11
+ tslib_1.__exportStar(require("./waitForImageAvailable"), exports);
12
+ tslib_1.__exportStar(require("./waitForImageExists"), exports);
13
+ tslib_1.__exportStar(require("./waitForInstanceExists"), exports);
14
+ tslib_1.__exportStar(require("./waitForInstanceRunning"), exports);
15
+ tslib_1.__exportStar(require("./waitForInstanceStatusOk"), exports);
16
+ tslib_1.__exportStar(require("./waitForInstanceStopped"), exports);
17
+ tslib_1.__exportStar(require("./waitForInstanceTerminated"), exports);
18
+ tslib_1.__exportStar(require("./waitForKeyPairExists"), exports);
19
+ tslib_1.__exportStar(require("./waitForNatGatewayAvailable"), exports);
20
+ tslib_1.__exportStar(require("./waitForNetworkInterfaceAvailable"), exports);
21
+ tslib_1.__exportStar(require("./waitForSecurityGroupExists"), exports);
22
+ tslib_1.__exportStar(require("./waitForSnapshotCompleted"), exports);
23
+ tslib_1.__exportStar(require("./waitForSpotInstanceRequestFulfilled"), exports);
24
+ tslib_1.__exportStar(require("./waitForSubnetAvailable"), exports);
25
+ tslib_1.__exportStar(require("./waitForPasswordDataAvailable"), exports);
26
+ tslib_1.__exportStar(require("./waitForSystemStatusOk"), exports);
27
+ tslib_1.__exportStar(require("./waitForVolumeAvailable"), exports);
28
+ tslib_1.__exportStar(require("./waitForVolumeDeleted"), exports);
29
+ tslib_1.__exportStar(require("./waitForVolumeInUse"), exports);
30
+ tslib_1.__exportStar(require("./waitForVpcAvailable"), exports);
31
+ tslib_1.__exportStar(require("./waitForVpcExists"), exports);
32
+ tslib_1.__exportStar(require("./waitForVpcPeeringConnectionDeleted"), exports);
33
+ tslib_1.__exportStar(require("./waitForVpcPeeringConnectionExists"), exports);
34
+ tslib_1.__exportStar(require("./waitForVpnConnectionAvailable"), exports);
35
+ tslib_1.__exportStar(require("./waitForVpnConnectionDeleted"), exports);
package/dist-es/EC2.js CHANGED
@@ -346,12 +346,14 @@ import { GetEbsEncryptionByDefaultCommand, } from "./commands/GetEbsEncryptionBy
346
346
  import { GetFlowLogsIntegrationTemplateCommand, } from "./commands/GetFlowLogsIntegrationTemplateCommand";
347
347
  import { GetGroupsForCapacityReservationCommand, } from "./commands/GetGroupsForCapacityReservationCommand";
348
348
  import { GetHostReservationPurchasePreviewCommand, } from "./commands/GetHostReservationPurchasePreviewCommand";
349
+ import { GetInstanceTypesFromInstanceRequirementsCommand, } from "./commands/GetInstanceTypesFromInstanceRequirementsCommand";
349
350
  import { GetLaunchTemplateDataCommand, } from "./commands/GetLaunchTemplateDataCommand";
350
351
  import { GetManagedPrefixListAssociationsCommand, } from "./commands/GetManagedPrefixListAssociationsCommand";
351
352
  import { GetManagedPrefixListEntriesCommand, } from "./commands/GetManagedPrefixListEntriesCommand";
352
353
  import { GetPasswordDataCommand, } from "./commands/GetPasswordDataCommand";
353
354
  import { GetReservedInstancesExchangeQuoteCommand, } from "./commands/GetReservedInstancesExchangeQuoteCommand";
354
355
  import { GetSerialConsoleAccessStatusCommand, } from "./commands/GetSerialConsoleAccessStatusCommand";
356
+ import { GetSpotPlacementScoresCommand, } from "./commands/GetSpotPlacementScoresCommand";
355
357
  import { GetSubnetCidrReservationsCommand, } from "./commands/GetSubnetCidrReservationsCommand";
356
358
  import { GetTransitGatewayAttachmentPropagationsCommand, } from "./commands/GetTransitGatewayAttachmentPropagationsCommand";
357
359
  import { GetTransitGatewayMulticastDomainAssociationsCommand, } from "./commands/GetTransitGatewayMulticastDomainAssociationsCommand";
@@ -5334,6 +5336,20 @@ var EC2 = (function (_super) {
5334
5336
  return this.send(command, optionsOrCb);
5335
5337
  }
5336
5338
  };
5339
+ EC2.prototype.getInstanceTypesFromInstanceRequirements = function (args, optionsOrCb, cb) {
5340
+ var command = new GetInstanceTypesFromInstanceRequirementsCommand(args);
5341
+ if (typeof optionsOrCb === "function") {
5342
+ this.send(command, optionsOrCb);
5343
+ }
5344
+ else if (typeof cb === "function") {
5345
+ if (typeof optionsOrCb !== "object")
5346
+ throw new Error("Expect http options but get " + typeof optionsOrCb);
5347
+ this.send(command, optionsOrCb || {}, cb);
5348
+ }
5349
+ else {
5350
+ return this.send(command, optionsOrCb);
5351
+ }
5352
+ };
5337
5353
  EC2.prototype.getLaunchTemplateData = function (args, optionsOrCb, cb) {
5338
5354
  var command = new GetLaunchTemplateDataCommand(args);
5339
5355
  if (typeof optionsOrCb === "function") {
@@ -5418,6 +5434,20 @@ var EC2 = (function (_super) {
5418
5434
  return this.send(command, optionsOrCb);
5419
5435
  }
5420
5436
  };
5437
+ EC2.prototype.getSpotPlacementScores = function (args, optionsOrCb, cb) {
5438
+ var command = new GetSpotPlacementScoresCommand(args);
5439
+ if (typeof optionsOrCb === "function") {
5440
+ this.send(command, optionsOrCb);
5441
+ }
5442
+ else if (typeof cb === "function") {
5443
+ if (typeof optionsOrCb !== "object")
5444
+ throw new Error("Expect http options but get " + typeof optionsOrCb);
5445
+ this.send(command, optionsOrCb || {}, cb);
5446
+ }
5447
+ else {
5448
+ return this.send(command, optionsOrCb);
5449
+ }
5450
+ };
5421
5451
  EC2.prototype.getSubnetCidrReservations = function (args, optionsOrCb, cb) {
5422
5452
  var command = new GetSubnetCidrReservationsCommand(args);
5423
5453
  if (typeof optionsOrCb === "function") {
@@ -1,7 +1,8 @@
1
1
  import { __extends } from "tslib";
2
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import { CreateFleetRequest, CreateFleetResult } from "../models/models_0";
4
+ import { CreateFleetRequest } from "../models/models_0";
5
+ import { CreateFleetResult } from "../models/models_1";
5
6
  import { deserializeAws_ec2CreateFleetCommand, serializeAws_ec2CreateFleetCommand } from "../protocols/Aws_ec2";
6
7
  var CreateFleetCommand = (function (_super) {
7
8
  __extends(CreateFleetCommand, _super);
@@ -1,7 +1,7 @@
1
1
  import { __extends } from "tslib";
2
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import { CreateFlowLogsRequest, CreateFlowLogsResult } from "../models/models_0";
4
+ import { CreateFlowLogsRequest, CreateFlowLogsResult } from "../models/models_1";
5
5
  import { deserializeAws_ec2CreateFlowLogsCommand, serializeAws_ec2CreateFlowLogsCommand } from "../protocols/Aws_ec2";
6
6
  var CreateFlowLogsCommand = (function (_super) {
7
7
  __extends(CreateFlowLogsCommand, _super);
@@ -1,7 +1,7 @@
1
1
  import { __extends } from "tslib";
2
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import { CreateFpgaImageRequest, CreateFpgaImageResult } from "../models/models_0";
4
+ import { CreateFpgaImageRequest, CreateFpgaImageResult } from "../models/models_1";
5
5
  import { deserializeAws_ec2CreateFpgaImageCommand, serializeAws_ec2CreateFpgaImageCommand } from "../protocols/Aws_ec2";
6
6
  var CreateFpgaImageCommand = (function (_super) {
7
7
  __extends(CreateFpgaImageCommand, _super);
@@ -1,7 +1,7 @@
1
1
  import { __extends } from "tslib";
2
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import { CreateImageRequest, CreateImageResult } from "../models/models_0";
4
+ import { CreateImageRequest, CreateImageResult } from "../models/models_1";
5
5
  import { deserializeAws_ec2CreateImageCommand, serializeAws_ec2CreateImageCommand } from "../protocols/Aws_ec2";
6
6
  var CreateImageCommand = (function (_super) {
7
7
  __extends(CreateImageCommand, _super);
@@ -1,8 +1,7 @@
1
1
  import { __extends } from "tslib";
2
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import { CreateInstanceEventWindowRequest } from "../models/models_0";
5
- import { CreateInstanceEventWindowResult } from "../models/models_1";
4
+ import { CreateInstanceEventWindowRequest, CreateInstanceEventWindowResult } from "../models/models_1";
6
5
  import { deserializeAws_ec2CreateInstanceEventWindowCommand, serializeAws_ec2CreateInstanceEventWindowCommand, } from "../protocols/Aws_ec2";
7
6
  var CreateInstanceEventWindowCommand = (function (_super) {
8
7
  __extends(CreateInstanceEventWindowCommand, _super);
@@ -1,7 +1,7 @@
1
1
  import { __extends } from "tslib";
2
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import { CreateVpcEndpointServiceConfigurationRequest, CreateVpcEndpointServiceConfigurationResult, } from "../models/models_1";
4
+ import { CreateVpcEndpointServiceConfigurationRequest, CreateVpcEndpointServiceConfigurationResult, } from "../models/models_2";
5
5
  import { deserializeAws_ec2CreateVpcEndpointServiceConfigurationCommand, serializeAws_ec2CreateVpcEndpointServiceConfigurationCommand, } from "../protocols/Aws_ec2";
6
6
  var CreateVpcEndpointServiceConfigurationCommand = (function (_super) {
7
7
  __extends(CreateVpcEndpointServiceConfigurationCommand, _super);
@@ -1,7 +1,7 @@
1
1
  import { __extends } from "tslib";
2
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import { CreateVpcPeeringConnectionRequest, CreateVpcPeeringConnectionResult } from "../models/models_1";
4
+ import { CreateVpcPeeringConnectionRequest, CreateVpcPeeringConnectionResult } from "../models/models_2";
5
5
  import { deserializeAws_ec2CreateVpcPeeringConnectionCommand, serializeAws_ec2CreateVpcPeeringConnectionCommand, } from "../protocols/Aws_ec2";
6
6
  var CreateVpcPeeringConnectionCommand = (function (_super) {
7
7
  __extends(CreateVpcPeeringConnectionCommand, _super);
@@ -1,8 +1,7 @@
1
1
  import { __extends } from "tslib";
2
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import { CreateVpnConnectionRequest } from "../models/models_1";
5
- import { CreateVpnConnectionResult } from "../models/models_2";
4
+ import { CreateVpnConnectionRequest, CreateVpnConnectionResult } from "../models/models_2";
6
5
  import { deserializeAws_ec2CreateVpnConnectionCommand, serializeAws_ec2CreateVpnConnectionCommand, } from "../protocols/Aws_ec2";
7
6
  var CreateVpnConnectionCommand = (function (_super) {
8
7
  __extends(CreateVpnConnectionCommand, _super);
@@ -1,7 +1,8 @@
1
1
  import { __extends } from "tslib";
2
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import { DescribeHostsRequest, DescribeHostsResult } from "../models/models_2";
4
+ import { DescribeHostsRequest } from "../models/models_2";
5
+ import { DescribeHostsResult } from "../models/models_3";
5
6
  import { deserializeAws_ec2DescribeHostsCommand, serializeAws_ec2DescribeHostsCommand } from "../protocols/Aws_ec2";
6
7
  var DescribeHostsCommand = (function (_super) {
7
8
  __extends(DescribeHostsCommand, _super);
@@ -1,7 +1,7 @@
1
1
  import { __extends } from "tslib";
2
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import { DescribeIamInstanceProfileAssociationsRequest, DescribeIamInstanceProfileAssociationsResult, } from "../models/models_2";
4
+ import { DescribeIamInstanceProfileAssociationsRequest, DescribeIamInstanceProfileAssociationsResult, } from "../models/models_3";
5
5
  import { deserializeAws_ec2DescribeIamInstanceProfileAssociationsCommand, serializeAws_ec2DescribeIamInstanceProfileAssociationsCommand, } from "../protocols/Aws_ec2";
6
6
  var DescribeIamInstanceProfileAssociationsCommand = (function (_super) {
7
7
  __extends(DescribeIamInstanceProfileAssociationsCommand, _super);
@@ -1,7 +1,7 @@
1
1
  import { __extends } from "tslib";
2
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import { DescribeIdFormatRequest, DescribeIdFormatResult } from "../models/models_2";
4
+ import { DescribeIdFormatRequest, DescribeIdFormatResult } from "../models/models_3";
5
5
  import { deserializeAws_ec2DescribeIdFormatCommand, serializeAws_ec2DescribeIdFormatCommand, } from "../protocols/Aws_ec2";
6
6
  var DescribeIdFormatCommand = (function (_super) {
7
7
  __extends(DescribeIdFormatCommand, _super);
@@ -1,7 +1,7 @@
1
1
  import { __extends } from "tslib";
2
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import { DescribeIdentityIdFormatRequest, DescribeIdentityIdFormatResult } from "../models/models_2";
4
+ import { DescribeIdentityIdFormatRequest, DescribeIdentityIdFormatResult } from "../models/models_3";
5
5
  import { deserializeAws_ec2DescribeIdentityIdFormatCommand, serializeAws_ec2DescribeIdentityIdFormatCommand, } from "../protocols/Aws_ec2";
6
6
  var DescribeIdentityIdFormatCommand = (function (_super) {
7
7
  __extends(DescribeIdentityIdFormatCommand, _super);
@@ -1,7 +1,7 @@
1
1
  import { __extends } from "tslib";
2
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import { DescribeImageAttributeRequest, ImageAttribute } from "../models/models_2";
4
+ import { DescribeImageAttributeRequest, ImageAttribute } from "../models/models_3";
5
5
  import { deserializeAws_ec2DescribeImageAttributeCommand, serializeAws_ec2DescribeImageAttributeCommand, } from "../protocols/Aws_ec2";
6
6
  var DescribeImageAttributeCommand = (function (_super) {
7
7
  __extends(DescribeImageAttributeCommand, _super);
@@ -1,7 +1,7 @@
1
1
  import { __extends } from "tslib";
2
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import { DescribeImagesRequest, DescribeImagesResult } from "../models/models_2";
4
+ import { DescribeImagesRequest, DescribeImagesResult } from "../models/models_3";
5
5
  import { deserializeAws_ec2DescribeImagesCommand, serializeAws_ec2DescribeImagesCommand } from "../protocols/Aws_ec2";
6
6
  var DescribeImagesCommand = (function (_super) {
7
7
  __extends(DescribeImagesCommand, _super);
@@ -1,8 +1,7 @@
1
1
  import { __extends } from "tslib";
2
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import { DescribeImportImageTasksRequest } from "../models/models_2";
5
- import { DescribeImportImageTasksResult } from "../models/models_3";
4
+ import { DescribeImportImageTasksRequest, DescribeImportImageTasksResult } from "../models/models_3";
6
5
  import { deserializeAws_ec2DescribeImportImageTasksCommand, serializeAws_ec2DescribeImportImageTasksCommand, } from "../protocols/Aws_ec2";
7
6
  var DescribeImportImageTasksCommand = (function (_super) {
8
7
  __extends(DescribeImportImageTasksCommand, _super);
@@ -1,7 +1,7 @@
1
1
  import { __extends } from "tslib";
2
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import { DescribeTagsRequest, DescribeTagsResult } from "../models/models_3";
4
+ import { DescribeTagsRequest, DescribeTagsResult } from "../models/models_4";
5
5
  import { deserializeAws_ec2DescribeTagsCommand, serializeAws_ec2DescribeTagsCommand } from "../protocols/Aws_ec2";
6
6
  var DescribeTagsCommand = (function (_super) {
7
7
  __extends(DescribeTagsCommand, _super);
@@ -1,7 +1,7 @@
1
1
  import { __extends } from "tslib";
2
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import { DescribeTrafficMirrorFiltersRequest, DescribeTrafficMirrorFiltersResult } from "../models/models_3";
4
+ import { DescribeTrafficMirrorFiltersRequest, DescribeTrafficMirrorFiltersResult } from "../models/models_4";
5
5
  import { deserializeAws_ec2DescribeTrafficMirrorFiltersCommand, serializeAws_ec2DescribeTrafficMirrorFiltersCommand, } from "../protocols/Aws_ec2";
6
6
  var DescribeTrafficMirrorFiltersCommand = (function (_super) {
7
7
  __extends(DescribeTrafficMirrorFiltersCommand, _super);
@@ -1,7 +1,7 @@
1
1
  import { __extends } from "tslib";
2
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import { DescribeTrafficMirrorSessionsRequest, DescribeTrafficMirrorSessionsResult } from "../models/models_3";
4
+ import { DescribeTrafficMirrorSessionsRequest, DescribeTrafficMirrorSessionsResult } from "../models/models_4";
5
5
  import { deserializeAws_ec2DescribeTrafficMirrorSessionsCommand, serializeAws_ec2DescribeTrafficMirrorSessionsCommand, } from "../protocols/Aws_ec2";
6
6
  var DescribeTrafficMirrorSessionsCommand = (function (_super) {
7
7
  __extends(DescribeTrafficMirrorSessionsCommand, _super);
@@ -1,7 +1,7 @@
1
1
  import { __extends } from "tslib";
2
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import { DescribeTrafficMirrorTargetsRequest, DescribeTrafficMirrorTargetsResult } from "../models/models_3";
4
+ import { DescribeTrafficMirrorTargetsRequest, DescribeTrafficMirrorTargetsResult } from "../models/models_4";
5
5
  import { deserializeAws_ec2DescribeTrafficMirrorTargetsCommand, serializeAws_ec2DescribeTrafficMirrorTargetsCommand, } from "../protocols/Aws_ec2";
6
6
  var DescribeTrafficMirrorTargetsCommand = (function (_super) {
7
7
  __extends(DescribeTrafficMirrorTargetsCommand, _super);
@@ -1,7 +1,7 @@
1
1
  import { __extends } from "tslib";
2
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import { DescribeTransitGatewayAttachmentsRequest, DescribeTransitGatewayAttachmentsResult } from "../models/models_3";
4
+ import { DescribeTransitGatewayAttachmentsRequest, DescribeTransitGatewayAttachmentsResult } from "../models/models_4";
5
5
  import { deserializeAws_ec2DescribeTransitGatewayAttachmentsCommand, serializeAws_ec2DescribeTransitGatewayAttachmentsCommand, } from "../protocols/Aws_ec2";
6
6
  var DescribeTransitGatewayAttachmentsCommand = (function (_super) {
7
7
  __extends(DescribeTransitGatewayAttachmentsCommand, _super);
@@ -1,7 +1,7 @@
1
1
  import { __extends } from "tslib";
2
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import { DescribeTransitGatewayConnectPeersRequest, DescribeTransitGatewayConnectPeersResult, } from "../models/models_3";
4
+ import { DescribeTransitGatewayConnectPeersRequest, DescribeTransitGatewayConnectPeersResult, } from "../models/models_4";
5
5
  import { deserializeAws_ec2DescribeTransitGatewayConnectPeersCommand, serializeAws_ec2DescribeTransitGatewayConnectPeersCommand, } from "../protocols/Aws_ec2";
6
6
  var DescribeTransitGatewayConnectPeersCommand = (function (_super) {
7
7
  __extends(DescribeTransitGatewayConnectPeersCommand, _super);
@@ -1,7 +1,7 @@
1
1
  import { __extends } from "tslib";
2
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import { DescribeTransitGatewayConnectsRequest, DescribeTransitGatewayConnectsResult } from "../models/models_3";
4
+ import { DescribeTransitGatewayConnectsRequest, DescribeTransitGatewayConnectsResult } from "../models/models_4";
5
5
  import { deserializeAws_ec2DescribeTransitGatewayConnectsCommand, serializeAws_ec2DescribeTransitGatewayConnectsCommand, } from "../protocols/Aws_ec2";
6
6
  var DescribeTransitGatewayConnectsCommand = (function (_super) {
7
7
  __extends(DescribeTransitGatewayConnectsCommand, _super);
@@ -1,7 +1,7 @@
1
1
  import { __extends } from "tslib";
2
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import { DescribeTransitGatewayMulticastDomainsRequest, DescribeTransitGatewayMulticastDomainsResult, } from "../models/models_3";
4
+ import { DescribeTransitGatewayMulticastDomainsRequest, DescribeTransitGatewayMulticastDomainsResult, } from "../models/models_4";
5
5
  import { deserializeAws_ec2DescribeTransitGatewayMulticastDomainsCommand, serializeAws_ec2DescribeTransitGatewayMulticastDomainsCommand, } from "../protocols/Aws_ec2";
6
6
  var DescribeTransitGatewayMulticastDomainsCommand = (function (_super) {
7
7
  __extends(DescribeTransitGatewayMulticastDomainsCommand, _super);
@@ -1,7 +1,7 @@
1
1
  import { __extends } from "tslib";
2
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import { DescribeTransitGatewayPeeringAttachmentsRequest, DescribeTransitGatewayPeeringAttachmentsResult, } from "../models/models_3";
4
+ import { DescribeTransitGatewayPeeringAttachmentsRequest, DescribeTransitGatewayPeeringAttachmentsResult, } from "../models/models_4";
5
5
  import { deserializeAws_ec2DescribeTransitGatewayPeeringAttachmentsCommand, serializeAws_ec2DescribeTransitGatewayPeeringAttachmentsCommand, } from "../protocols/Aws_ec2";
6
6
  var DescribeTransitGatewayPeeringAttachmentsCommand = (function (_super) {
7
7
  __extends(DescribeTransitGatewayPeeringAttachmentsCommand, _super);
@@ -1,7 +1,7 @@
1
1
  import { __extends } from "tslib";
2
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import { DescribeTransitGatewayRouteTablesRequest, DescribeTransitGatewayRouteTablesResult } from "../models/models_3";
4
+ import { DescribeTransitGatewayRouteTablesRequest, DescribeTransitGatewayRouteTablesResult } from "../models/models_4";
5
5
  import { deserializeAws_ec2DescribeTransitGatewayRouteTablesCommand, serializeAws_ec2DescribeTransitGatewayRouteTablesCommand, } from "../protocols/Aws_ec2";
6
6
  var DescribeTransitGatewayRouteTablesCommand = (function (_super) {
7
7
  __extends(DescribeTransitGatewayRouteTablesCommand, _super);
@@ -1,7 +1,7 @@
1
1
  import { __extends } from "tslib";
2
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import { DescribeTransitGatewayVpcAttachmentsRequest, DescribeTransitGatewayVpcAttachmentsResult, } from "../models/models_3";
4
+ import { DescribeTransitGatewayVpcAttachmentsRequest, DescribeTransitGatewayVpcAttachmentsResult, } from "../models/models_4";
5
5
  import { deserializeAws_ec2DescribeTransitGatewayVpcAttachmentsCommand, serializeAws_ec2DescribeTransitGatewayVpcAttachmentsCommand, } from "../protocols/Aws_ec2";
6
6
  var DescribeTransitGatewayVpcAttachmentsCommand = (function (_super) {
7
7
  __extends(DescribeTransitGatewayVpcAttachmentsCommand, _super);
@@ -1,7 +1,7 @@
1
1
  import { __extends } from "tslib";
2
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import { DescribeTransitGatewaysRequest, DescribeTransitGatewaysResult } from "../models/models_3";
4
+ import { DescribeTransitGatewaysRequest, DescribeTransitGatewaysResult } from "../models/models_4";
5
5
  import { deserializeAws_ec2DescribeTransitGatewaysCommand, serializeAws_ec2DescribeTransitGatewaysCommand, } from "../protocols/Aws_ec2";
6
6
  var DescribeTransitGatewaysCommand = (function (_super) {
7
7
  __extends(DescribeTransitGatewaysCommand, _super);
@@ -1,7 +1,7 @@
1
1
  import { __extends } from "tslib";
2
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import { DescribeTrunkInterfaceAssociationsRequest, DescribeTrunkInterfaceAssociationsResult, } from "../models/models_3";
4
+ import { DescribeTrunkInterfaceAssociationsRequest, DescribeTrunkInterfaceAssociationsResult, } from "../models/models_4";
5
5
  import { deserializeAws_ec2DescribeTrunkInterfaceAssociationsCommand, serializeAws_ec2DescribeTrunkInterfaceAssociationsCommand, } from "../protocols/Aws_ec2";
6
6
  var DescribeTrunkInterfaceAssociationsCommand = (function (_super) {
7
7
  __extends(DescribeTrunkInterfaceAssociationsCommand, _super);
@@ -1,7 +1,7 @@
1
1
  import { __extends } from "tslib";
2
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import { DescribeVolumeAttributeRequest, DescribeVolumeAttributeResult } from "../models/models_3";
4
+ import { DescribeVolumeAttributeRequest, DescribeVolumeAttributeResult } from "../models/models_4";
5
5
  import { deserializeAws_ec2DescribeVolumeAttributeCommand, serializeAws_ec2DescribeVolumeAttributeCommand, } from "../protocols/Aws_ec2";
6
6
  var DescribeVolumeAttributeCommand = (function (_super) {
7
7
  __extends(DescribeVolumeAttributeCommand, _super);
@@ -0,0 +1,39 @@
1
+ import { __extends } from "tslib";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { GetInstanceTypesFromInstanceRequirementsRequest, GetInstanceTypesFromInstanceRequirementsResult, } from "../models/models_4";
5
+ import { deserializeAws_ec2GetInstanceTypesFromInstanceRequirementsCommand, serializeAws_ec2GetInstanceTypesFromInstanceRequirementsCommand, } from "../protocols/Aws_ec2";
6
+ var GetInstanceTypesFromInstanceRequirementsCommand = (function (_super) {
7
+ __extends(GetInstanceTypesFromInstanceRequirementsCommand, _super);
8
+ function GetInstanceTypesFromInstanceRequirementsCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
12
+ }
13
+ GetInstanceTypesFromInstanceRequirementsCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
14
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "EC2Client";
18
+ var commandName = "GetInstanceTypesFromInstanceRequirementsCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
23
+ inputFilterSensitiveLog: GetInstanceTypesFromInstanceRequirementsRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: GetInstanceTypesFromInstanceRequirementsResult.filterSensitiveLog,
25
+ };
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ GetInstanceTypesFromInstanceRequirementsCommand.prototype.serialize = function (input, context) {
32
+ return serializeAws_ec2GetInstanceTypesFromInstanceRequirementsCommand(input, context);
33
+ };
34
+ GetInstanceTypesFromInstanceRequirementsCommand.prototype.deserialize = function (output, context) {
35
+ return deserializeAws_ec2GetInstanceTypesFromInstanceRequirementsCommand(output, context);
36
+ };
37
+ return GetInstanceTypesFromInstanceRequirementsCommand;
38
+ }($Command));
39
+ export { GetInstanceTypesFromInstanceRequirementsCommand };
@@ -0,0 +1,39 @@
1
+ import { __extends } from "tslib";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { GetSpotPlacementScoresRequest, GetSpotPlacementScoresResult } from "../models/models_4";
5
+ import { deserializeAws_ec2GetSpotPlacementScoresCommand, serializeAws_ec2GetSpotPlacementScoresCommand, } from "../protocols/Aws_ec2";
6
+ var GetSpotPlacementScoresCommand = (function (_super) {
7
+ __extends(GetSpotPlacementScoresCommand, _super);
8
+ function GetSpotPlacementScoresCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
12
+ }
13
+ GetSpotPlacementScoresCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
14
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "EC2Client";
18
+ var commandName = "GetSpotPlacementScoresCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
23
+ inputFilterSensitiveLog: GetSpotPlacementScoresRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: GetSpotPlacementScoresResult.filterSensitiveLog,
25
+ };
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ GetSpotPlacementScoresCommand.prototype.serialize = function (input, context) {
32
+ return serializeAws_ec2GetSpotPlacementScoresCommand(input, context);
33
+ };
34
+ GetSpotPlacementScoresCommand.prototype.deserialize = function (output, context) {
35
+ return deserializeAws_ec2GetSpotPlacementScoresCommand(output, context);
36
+ };
37
+ return GetSpotPlacementScoresCommand;
38
+ }($Command));
39
+ export { GetSpotPlacementScoresCommand };
@@ -1,7 +1,8 @@
1
1
  import { __extends } from "tslib";
2
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import { ModifyInstanceCreditSpecificationRequest, ModifyInstanceCreditSpecificationResult } from "../models/models_4";
4
+ import { ModifyInstanceCreditSpecificationRequest } from "../models/models_4";
5
+ import { ModifyInstanceCreditSpecificationResult } from "../models/models_5";
5
6
  import { deserializeAws_ec2ModifyInstanceCreditSpecificationCommand, serializeAws_ec2ModifyInstanceCreditSpecificationCommand, } from "../protocols/Aws_ec2";
6
7
  var ModifyInstanceCreditSpecificationCommand = (function (_super) {
7
8
  __extends(ModifyInstanceCreditSpecificationCommand, _super);
@@ -1,7 +1,7 @@
1
1
  import { __extends } from "tslib";
2
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import { ModifyInstanceEventStartTimeRequest, ModifyInstanceEventStartTimeResult } from "../models/models_4";
4
+ import { ModifyInstanceEventStartTimeRequest, ModifyInstanceEventStartTimeResult } from "../models/models_5";
5
5
  import { deserializeAws_ec2ModifyInstanceEventStartTimeCommand, serializeAws_ec2ModifyInstanceEventStartTimeCommand, } from "../protocols/Aws_ec2";
6
6
  var ModifyInstanceEventStartTimeCommand = (function (_super) {
7
7
  __extends(ModifyInstanceEventStartTimeCommand, _super);
@@ -1,7 +1,7 @@
1
1
  import { __extends } from "tslib";
2
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import { ModifyInstanceEventWindowRequest, ModifyInstanceEventWindowResult } from "../models/models_4";
4
+ import { ModifyInstanceEventWindowRequest, ModifyInstanceEventWindowResult } from "../models/models_5";
5
5
  import { deserializeAws_ec2ModifyInstanceEventWindowCommand, serializeAws_ec2ModifyInstanceEventWindowCommand, } from "../protocols/Aws_ec2";
6
6
  var ModifyInstanceEventWindowCommand = (function (_super) {
7
7
  __extends(ModifyInstanceEventWindowCommand, _super);
@@ -1,7 +1,7 @@
1
1
  import { __extends } from "tslib";
2
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import { ModifyInstanceMetadataOptionsRequest, ModifyInstanceMetadataOptionsResult } from "../models/models_4";
4
+ import { ModifyInstanceMetadataOptionsRequest, ModifyInstanceMetadataOptionsResult } from "../models/models_5";
5
5
  import { deserializeAws_ec2ModifyInstanceMetadataOptionsCommand, serializeAws_ec2ModifyInstanceMetadataOptionsCommand, } from "../protocols/Aws_ec2";
6
6
  var ModifyInstanceMetadataOptionsCommand = (function (_super) {
7
7
  __extends(ModifyInstanceMetadataOptionsCommand, _super);
@@ -1,7 +1,7 @@
1
1
  import { __extends } from "tslib";
2
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import { ModifyInstancePlacementRequest, ModifyInstancePlacementResult } from "../models/models_4";
4
+ import { ModifyInstancePlacementRequest, ModifyInstancePlacementResult } from "../models/models_5";
5
5
  import { deserializeAws_ec2ModifyInstancePlacementCommand, serializeAws_ec2ModifyInstancePlacementCommand, } from "../protocols/Aws_ec2";
6
6
  var ModifyInstancePlacementCommand = (function (_super) {
7
7
  __extends(ModifyInstancePlacementCommand, _super);
@@ -1,7 +1,7 @@
1
1
  import { __extends } from "tslib";
2
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import { ModifyLaunchTemplateRequest, ModifyLaunchTemplateResult } from "../models/models_4";
4
+ import { ModifyLaunchTemplateRequest, ModifyLaunchTemplateResult } from "../models/models_5";
5
5
  import { deserializeAws_ec2ModifyLaunchTemplateCommand, serializeAws_ec2ModifyLaunchTemplateCommand, } from "../protocols/Aws_ec2";
6
6
  var ModifyLaunchTemplateCommand = (function (_super) {
7
7
  __extends(ModifyLaunchTemplateCommand, _super);