@aws-sdk/client-ec2 3.937.0 → 3.939.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 (75) hide show
  1. package/README.md +16 -0
  2. package/dist-cjs/index.js +357 -52
  3. package/dist-es/EC2.js +4 -0
  4. package/dist-es/commands/CreateInterruptibleCapacityReservationAllocationCommand.js +16 -0
  5. package/dist-es/commands/UpdateInterruptibleCapacityReservationAllocationCommand.js +16 -0
  6. package/dist-es/commands/index.js +2 -0
  7. package/dist-es/models/enums.js +13 -0
  8. package/dist-es/schemas/schemas_0.js +314 -52
  9. package/dist-types/EC2.d.ts +14 -0
  10. package/dist-types/EC2Client.d.ts +4 -2
  11. package/dist-types/commands/CreateCapacityReservationBySplittingCommand.d.ts +24 -0
  12. package/dist-types/commands/CreateCapacityReservationCommand.d.ts +12 -0
  13. package/dist-types/commands/CreateDhcpOptionsCommand.d.ts +1 -2
  14. package/dist-types/commands/CreateInterruptibleCapacityReservationAllocationCommand.d.ts +93 -0
  15. package/dist-types/commands/CreateLaunchTemplateCommand.d.ts +1 -1
  16. package/dist-types/commands/CreateLaunchTemplateVersionCommand.d.ts +2 -2
  17. package/dist-types/commands/CreateSpotDatafeedSubscriptionCommand.d.ts +2 -1
  18. package/dist-types/commands/CreateStoreImageTaskCommand.d.ts +1 -1
  19. package/dist-types/commands/DeleteTransitGatewayPrefixListReferenceCommand.d.ts +1 -1
  20. package/dist-types/commands/DeleteTransitGatewayRouteCommand.d.ts +1 -1
  21. package/dist-types/commands/DescribeCapacityReservationsCommand.d.ts +12 -0
  22. package/dist-types/commands/DescribeInstanceAttributeCommand.d.ts +2 -1
  23. package/dist-types/commands/DescribeInstanceStatusCommand.d.ts +7 -0
  24. package/dist-types/commands/DescribeInstancesCommand.d.ts +3 -1
  25. package/dist-types/commands/DescribeLaunchTemplateVersionsCommand.d.ts +1 -1
  26. package/dist-types/commands/DescribeVerifiedAccessInstanceLoggingConfigurationsCommand.d.ts +2 -1
  27. package/dist-types/commands/GetCapacityReservationUsageCommand.d.ts +12 -0
  28. package/dist-types/commands/GetIpamAddressHistoryCommand.d.ts +2 -1
  29. package/dist-types/commands/GetIpamDiscoveredAccountsCommand.d.ts +1 -2
  30. package/dist-types/commands/GetLaunchTemplateDataCommand.d.ts +1 -1
  31. package/dist-types/commands/ModifyVerifiedAccessTrustProviderCommand.d.ts +2 -1
  32. package/dist-types/commands/ModifyVolumeAttributeCommand.d.ts +1 -1
  33. package/dist-types/commands/ModifyVolumeCommand.d.ts +1 -1
  34. package/dist-types/commands/MoveCapacityReservationInstancesCommand.d.ts +24 -0
  35. package/dist-types/commands/PurchaseCapacityBlockCommand.d.ts +12 -0
  36. package/dist-types/commands/RunInstancesCommand.d.ts +2 -2
  37. package/dist-types/commands/UpdateInterruptibleCapacityReservationAllocationCommand.d.ts +83 -0
  38. package/dist-types/commands/index.d.ts +2 -0
  39. package/dist-types/models/enums.d.ts +29 -0
  40. package/dist-types/models/models_0.d.ts +90 -37
  41. package/dist-types/models/models_1.d.ts +108 -74
  42. package/dist-types/models/models_2.d.ts +73 -65
  43. package/dist-types/models/models_3.d.ts +68 -182
  44. package/dist-types/models/models_4.d.ts +182 -97
  45. package/dist-types/models/models_5.d.ts +117 -158
  46. package/dist-types/models/models_6.d.ts +160 -151
  47. package/dist-types/models/models_7.d.ts +222 -3
  48. package/dist-types/schemas/schemas_0.d.ts +8 -0
  49. package/dist-types/ts3.4/EC2.d.ts +46 -0
  50. package/dist-types/ts3.4/EC2Client.d.ts +12 -0
  51. package/dist-types/ts3.4/commands/CreateDhcpOptionsCommand.d.ts +4 -2
  52. package/dist-types/ts3.4/commands/CreateInterruptibleCapacityReservationAllocationCommand.d.ts +51 -0
  53. package/dist-types/ts3.4/commands/CreateSpotDatafeedSubscriptionCommand.d.ts +2 -4
  54. package/dist-types/ts3.4/commands/CreateStoreImageTaskCommand.d.ts +1 -1
  55. package/dist-types/ts3.4/commands/DeleteTransitGatewayPrefixListReferenceCommand.d.ts +1 -1
  56. package/dist-types/ts3.4/commands/DeleteTransitGatewayRouteCommand.d.ts +1 -1
  57. package/dist-types/ts3.4/commands/DescribeVerifiedAccessInstanceLoggingConfigurationsCommand.d.ts +2 -4
  58. package/dist-types/ts3.4/commands/GetIpamAddressHistoryCommand.d.ts +2 -4
  59. package/dist-types/ts3.4/commands/GetIpamDiscoveredAccountsCommand.d.ts +4 -2
  60. package/dist-types/ts3.4/commands/ModifyVerifiedAccessTrustProviderCommand.d.ts +2 -4
  61. package/dist-types/ts3.4/commands/ModifyVolumeAttributeCommand.d.ts +1 -1
  62. package/dist-types/ts3.4/commands/ModifyVolumeCommand.d.ts +1 -1
  63. package/dist-types/ts3.4/commands/UpdateInterruptibleCapacityReservationAllocationCommand.d.ts +51 -0
  64. package/dist-types/ts3.4/commands/index.d.ts +2 -0
  65. package/dist-types/ts3.4/models/enums.d.ts +17 -0
  66. package/dist-types/ts3.4/models/models_0.d.ts +16 -8
  67. package/dist-types/ts3.4/models/models_1.d.ts +24 -17
  68. package/dist-types/ts3.4/models/models_2.d.ts +17 -18
  69. package/dist-types/ts3.4/models/models_3.d.ts +21 -43
  70. package/dist-types/ts3.4/models/models_4.d.ts +47 -30
  71. package/dist-types/ts3.4/models/models_5.d.ts +37 -34
  72. package/dist-types/ts3.4/models/models_6.d.ts +33 -25
  73. package/dist-types/ts3.4/models/models_7.d.ts +42 -1
  74. package/dist-types/ts3.4/schemas/schemas_0.d.ts +8 -0
  75. package/package.json +2 -2
package/dist-es/EC2.js CHANGED
@@ -84,6 +84,7 @@ import { CreateInstanceConnectEndpointCommand, } from "./commands/CreateInstance
84
84
  import { CreateInstanceEventWindowCommand, } from "./commands/CreateInstanceEventWindowCommand";
85
85
  import { CreateInstanceExportTaskCommand, } from "./commands/CreateInstanceExportTaskCommand";
86
86
  import { CreateInternetGatewayCommand, } from "./commands/CreateInternetGatewayCommand";
87
+ import { CreateInterruptibleCapacityReservationAllocationCommand, } from "./commands/CreateInterruptibleCapacityReservationAllocationCommand";
87
88
  import { CreateIpamCommand } from "./commands/CreateIpamCommand";
88
89
  import { CreateIpamExternalResourceVerificationTokenCommand, } from "./commands/CreateIpamExternalResourceVerificationTokenCommand";
89
90
  import { CreateIpamPolicyCommand, } from "./commands/CreateIpamPolicyCommand";
@@ -743,6 +744,7 @@ import { UnassignPrivateNatGatewayAddressCommand, } from "./commands/UnassignPri
743
744
  import { UnlockSnapshotCommand, } from "./commands/UnlockSnapshotCommand";
744
745
  import { UnmonitorInstancesCommand, } from "./commands/UnmonitorInstancesCommand";
745
746
  import { UpdateCapacityManagerOrganizationsAccessCommand, } from "./commands/UpdateCapacityManagerOrganizationsAccessCommand";
747
+ import { UpdateInterruptibleCapacityReservationAllocationCommand, } from "./commands/UpdateInterruptibleCapacityReservationAllocationCommand";
746
748
  import { UpdateSecurityGroupRuleDescriptionsEgressCommand, } from "./commands/UpdateSecurityGroupRuleDescriptionsEgressCommand";
747
749
  import { UpdateSecurityGroupRuleDescriptionsIngressCommand, } from "./commands/UpdateSecurityGroupRuleDescriptionsIngressCommand";
748
750
  import { WithdrawByoipCidrCommand, } from "./commands/WithdrawByoipCidrCommand";
@@ -833,6 +835,7 @@ const commands = {
833
835
  CreateInstanceEventWindowCommand,
834
836
  CreateInstanceExportTaskCommand,
835
837
  CreateInternetGatewayCommand,
838
+ CreateInterruptibleCapacityReservationAllocationCommand,
836
839
  CreateIpamCommand,
837
840
  CreateIpamExternalResourceVerificationTokenCommand,
838
841
  CreateIpamPolicyCommand,
@@ -1492,6 +1495,7 @@ const commands = {
1492
1495
  UnlockSnapshotCommand,
1493
1496
  UnmonitorInstancesCommand,
1494
1497
  UpdateCapacityManagerOrganizationsAccessCommand,
1498
+ UpdateInterruptibleCapacityReservationAllocationCommand,
1495
1499
  UpdateSecurityGroupRuleDescriptionsEgressCommand,
1496
1500
  UpdateSecurityGroupRuleDescriptionsIngressCommand,
1497
1501
  WithdrawByoipCidrCommand,
@@ -0,0 +1,16 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { Command as $Command } from "@smithy/smithy-client";
3
+ import { commonParams } from "../endpoint/EndpointParameters";
4
+ import { CreateInterruptibleCapacityReservationAllocation } from "../schemas/schemas_0";
5
+ export { $Command };
6
+ export class CreateInterruptibleCapacityReservationAllocationCommand extends $Command
7
+ .classBuilder()
8
+ .ep(commonParams)
9
+ .m(function (Command, cs, config, o) {
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
+ })
12
+ .s("AmazonEC2", "CreateInterruptibleCapacityReservationAllocation", {})
13
+ .n("EC2Client", "CreateInterruptibleCapacityReservationAllocationCommand")
14
+ .sc(CreateInterruptibleCapacityReservationAllocation)
15
+ .build() {
16
+ }
@@ -0,0 +1,16 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { Command as $Command } from "@smithy/smithy-client";
3
+ import { commonParams } from "../endpoint/EndpointParameters";
4
+ import { UpdateInterruptibleCapacityReservationAllocation } from "../schemas/schemas_0";
5
+ export { $Command };
6
+ export class UpdateInterruptibleCapacityReservationAllocationCommand extends $Command
7
+ .classBuilder()
8
+ .ep(commonParams)
9
+ .m(function (Command, cs, config, o) {
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
+ })
12
+ .s("AmazonEC2", "UpdateInterruptibleCapacityReservationAllocation", {})
13
+ .n("EC2Client", "UpdateInterruptibleCapacityReservationAllocationCommand")
14
+ .sc(UpdateInterruptibleCapacityReservationAllocation)
15
+ .build() {
16
+ }
@@ -83,6 +83,7 @@ export * from "./CreateInstanceConnectEndpointCommand";
83
83
  export * from "./CreateInstanceEventWindowCommand";
84
84
  export * from "./CreateInstanceExportTaskCommand";
85
85
  export * from "./CreateInternetGatewayCommand";
86
+ export * from "./CreateInterruptibleCapacityReservationAllocationCommand";
86
87
  export * from "./CreateIpamCommand";
87
88
  export * from "./CreateIpamExternalResourceVerificationTokenCommand";
88
89
  export * from "./CreateIpamPolicyCommand";
@@ -742,6 +743,7 @@ export * from "./UnassignPrivateNatGatewayAddressCommand";
742
743
  export * from "./UnlockSnapshotCommand";
743
744
  export * from "./UnmonitorInstancesCommand";
744
745
  export * from "./UpdateCapacityManagerOrganizationsAccessCommand";
746
+ export * from "./UpdateInterruptibleCapacityReservationAllocationCommand";
745
747
  export * from "./UpdateSecurityGroupRuleDescriptionsEgressCommand";
746
748
  export * from "./UpdateSecurityGroupRuleDescriptionsIngressCommand";
747
749
  export * from "./WithdrawByoipCidrCommand";
@@ -591,6 +591,17 @@ export const CapacityReservationTenancy = {
591
591
  dedicated: "dedicated",
592
592
  default: "default",
593
593
  };
594
+ export const InterruptionType = {
595
+ adhoc: "adhoc",
596
+ };
597
+ export const InterruptibleCapacityReservationAllocationStatus = {
598
+ active: "active",
599
+ canceled: "canceled",
600
+ canceling: "canceling",
601
+ failed: "failed",
602
+ pending: "pending",
603
+ updating: "updating",
604
+ };
594
605
  export const CapacityReservationType = {
595
606
  CAPACITY_BLOCK: "capacity-block",
596
607
  DEFAULT: "default",
@@ -2131,6 +2142,7 @@ export const ShutdownBehavior = {
2131
2142
  };
2132
2143
  export const MarketType = {
2133
2144
  capacity_block: "capacity-block",
2145
+ interruptible_capacity_reservation: "interruptible-capacity-reservation",
2134
2146
  spot: "spot",
2135
2147
  };
2136
2148
  export const InstanceInterruptionBehavior = {
@@ -2980,6 +2992,7 @@ export const InstanceBootModeValues = {
2980
2992
  };
2981
2993
  export const InstanceLifecycleType = {
2982
2994
  capacity_block: "capacity-block",
2995
+ interruptible_capacity_reservation: "interruptible-capacity-reservation",
2983
2996
  scheduled: "scheduled",
2984
2997
  spot: "spot",
2985
2998
  };