@aws-sdk/client-ec2 3.696.0 → 3.698.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +24 -0
- package/dist-cjs/index.js +741 -123
- package/dist-es/EC2.js +6 -0
- package/dist-es/commands/DescribeCapacityBlockExtensionHistoryCommand.js +22 -0
- package/dist-es/commands/DescribeCapacityBlockExtensionOfferingsCommand.js +22 -0
- package/dist-es/commands/PurchaseCapacityBlockExtensionCommand.js +22 -0
- package/dist-es/commands/index.js +3 -0
- package/dist-es/models/models_0.js +4 -14
- package/dist-es/models/models_1.js +19 -4
- package/dist-es/models/models_2.js +4 -0
- package/dist-es/models/models_3.js +5 -17
- package/dist-es/models/models_4.js +17 -0
- package/dist-es/models/models_5.js +0 -4
- package/dist-es/models/models_6.js +4 -11
- package/dist-es/models/models_7.js +11 -0
- package/dist-es/pagination/DescribeCapacityBlockExtensionHistoryPaginator.js +4 -0
- package/dist-es/pagination/DescribeCapacityBlockExtensionOfferingsPaginator.js +4 -0
- package/dist-es/pagination/index.js +3 -1
- package/dist-es/protocols/Aws_ec2.js +614 -64
- package/dist-types/EC2.d.ts +22 -0
- package/dist-types/EC2Client.d.ts +5 -2
- package/dist-types/commands/AcceptCapacityReservationBillingOwnershipCommand.d.ts +3 -3
- package/dist-types/commands/AssociateCapacityReservationBillingOwnerCommand.d.ts +4 -4
- package/dist-types/commands/CancelCapacityReservationCommand.d.ts +17 -2
- package/dist-types/commands/CancelCapacityReservationFleetsCommand.d.ts +7 -6
- package/dist-types/commands/CreateCapacityReservationBySplittingCommand.d.ts +16 -5
- package/dist-types/commands/CreateCapacityReservationCommand.d.ts +31 -16
- package/dist-types/commands/CreateFleetCommand.d.ts +30 -3
- package/dist-types/commands/CreateIpamResourceDiscoveryCommand.d.ts +5 -0
- package/dist-types/commands/CreateLaunchTemplateCommand.d.ts +11 -2
- package/dist-types/commands/CreateLaunchTemplateVersionCommand.d.ts +22 -4
- package/dist-types/commands/CreateNatGatewayCommand.d.ts +2 -1
- package/dist-types/commands/CreateNetworkAclCommand.d.ts +1 -1
- package/dist-types/commands/CreateNetworkAclEntryCommand.d.ts +1 -1
- package/dist-types/commands/DeleteFpgaImageCommand.d.ts +2 -1
- package/dist-types/commands/DeleteInstanceConnectEndpointCommand.d.ts +1 -1
- package/dist-types/commands/DeleteInstanceEventWindowCommand.d.ts +1 -1
- package/dist-types/commands/DeleteInternetGatewayCommand.d.ts +1 -1
- package/dist-types/commands/DeleteIpamCommand.d.ts +1 -1
- package/dist-types/commands/DeleteIpamExternalResourceVerificationTokenCommand.d.ts +1 -2
- package/dist-types/commands/DeleteIpamResourceDiscoveryCommand.d.ts +5 -0
- package/dist-types/commands/DescribeCapacityBlockExtensionHistoryCommand.d.ts +102 -0
- package/dist-types/commands/DescribeCapacityBlockExtensionOfferingsCommand.d.ts +92 -0
- package/dist-types/commands/DescribeCapacityBlockOfferingsCommand.d.ts +3 -1
- package/dist-types/commands/DescribeCapacityReservationBillingRequestsCommand.d.ts +3 -3
- package/dist-types/commands/DescribeCapacityReservationsCommand.d.ts +9 -3
- package/dist-types/commands/DescribeFleetsCommand.d.ts +30 -3
- package/dist-types/commands/DescribeFpgaImageAttributeCommand.d.ts +2 -1
- package/dist-types/commands/DescribeFpgaImagesCommand.d.ts +1 -1
- package/dist-types/commands/DescribeHostReservationOfferingsCommand.d.ts +1 -1
- package/dist-types/commands/DescribeHostReservationsCommand.d.ts +1 -1
- package/dist-types/commands/DescribeInstancesCommand.d.ts +1 -1
- package/dist-types/commands/DescribeIpamResourceDiscoveriesCommand.d.ts +5 -0
- package/dist-types/commands/DescribeLaunchTemplateVersionsCommand.d.ts +11 -2
- package/dist-types/commands/DescribeScheduledInstanceAvailabilityCommand.d.ts +2 -1
- package/dist-types/commands/DescribeScheduledInstancesCommand.d.ts +1 -1
- package/dist-types/commands/DescribeSecurityGroupReferencesCommand.d.ts +1 -1
- package/dist-types/commands/DescribeSecurityGroupRulesCommand.d.ts +1 -1
- package/dist-types/commands/DescribeSecurityGroupVpcAssociationsCommand.d.ts +1 -1
- package/dist-types/commands/DescribeSecurityGroupsCommand.d.ts +1 -1
- package/dist-types/commands/DescribeSpotFleetRequestsCommand.d.ts +20 -2
- package/dist-types/commands/DescribeVpcBlockPublicAccessOptionsCommand.d.ts +1 -1
- package/dist-types/commands/DisassociateCapacityReservationBillingOwnerCommand.d.ts +4 -4
- package/dist-types/commands/EnableVgwRoutePropagationCommand.d.ts +1 -1
- package/dist-types/commands/EnableVolumeIOCommand.d.ts +1 -1
- package/dist-types/commands/EnableVpcClassicLinkCommand.d.ts +1 -1
- package/dist-types/commands/EnableVpcClassicLinkDnsSupportCommand.d.ts +1 -1
- package/dist-types/commands/ExportClientVpnClientCertificateRevocationListCommand.d.ts +1 -1
- package/dist-types/commands/ExportClientVpnClientConfigurationCommand.d.ts +1 -1
- package/dist-types/commands/ExportImageCommand.d.ts +1 -1
- package/dist-types/commands/ExportTransitGatewayRoutesCommand.d.ts +1 -1
- package/dist-types/commands/GetCapacityReservationUsageCommand.d.ts +4 -4
- package/dist-types/commands/GetInstanceTypesFromInstanceRequirementsCommand.d.ts +10 -1
- package/dist-types/commands/GetIpamDiscoveredAccountsCommand.d.ts +1 -0
- package/dist-types/commands/GetLaunchTemplateDataCommand.d.ts +11 -2
- package/dist-types/commands/GetSpotPlacementScoresCommand.d.ts +10 -1
- package/dist-types/commands/ModifyCapacityReservationCommand.d.ts +33 -4
- package/dist-types/commands/ModifyCapacityReservationFleetCommand.d.ts +5 -4
- package/dist-types/commands/ModifyFleetCommand.d.ts +10 -1
- package/dist-types/commands/ModifyInstanceCapacityReservationAttributesCommand.d.ts +5 -4
- package/dist-types/commands/ModifyIpamResourceDiscoveryCommand.d.ts +15 -0
- package/dist-types/commands/ModifySpotFleetRequestCommand.d.ts +10 -1
- package/dist-types/commands/ModifyTrafficMirrorFilterNetworkServicesCommand.d.ts +1 -1
- package/dist-types/commands/ModifyTrafficMirrorFilterRuleCommand.d.ts +1 -1
- package/dist-types/commands/ModifyTrafficMirrorSessionCommand.d.ts +1 -1
- package/dist-types/commands/ModifyTransitGatewayCommand.d.ts +1 -1
- package/dist-types/commands/ModifyTransitGatewayPrefixListReferenceCommand.d.ts +1 -1
- package/dist-types/commands/ModifyTransitGatewayVpcAttachmentCommand.d.ts +1 -1
- package/dist-types/commands/ModifyVpcBlockPublicAccessOptionsCommand.d.ts +1 -1
- package/dist-types/commands/MoveCapacityReservationInstancesCommand.d.ts +17 -5
- package/dist-types/commands/PurchaseCapacityBlockCommand.d.ts +9 -3
- package/dist-types/commands/PurchaseCapacityBlockExtensionCommand.d.ts +90 -0
- package/dist-types/commands/RejectCapacityReservationBillingOwnershipCommand.d.ts +3 -3
- package/dist-types/commands/RequestSpotFleetCommand.d.ts +20 -2
- package/dist-types/commands/RunInstancesCommand.d.ts +2 -2
- package/dist-types/commands/index.d.ts +3 -0
- package/dist-types/models/models_0.d.ts +163 -67
- package/dist-types/models/models_1.d.ts +480 -499
- package/dist-types/models/models_2.d.ts +384 -179
- package/dist-types/models/models_3.d.ts +693 -758
- package/dist-types/models/models_4.d.ts +6178 -6293
- package/dist-types/models/models_5.d.ts +2712 -2367
- package/dist-types/models/models_6.d.ts +4288 -4301
- package/dist-types/models/models_7.d.ts +533 -28
- package/dist-types/pagination/DescribeCapacityBlockExtensionHistoryPaginator.d.ts +7 -0
- package/dist-types/pagination/DescribeCapacityBlockExtensionOfferingsPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +3 -1
- package/dist-types/protocols/Aws_ec2.d.ts +27 -0
- package/dist-types/ts3.4/EC2.d.ts +64 -0
- package/dist-types/ts3.4/EC2Client.d.ts +18 -0
- package/dist-types/ts3.4/commands/CreateNatGatewayCommand.d.ts +2 -4
- package/dist-types/ts3.4/commands/CreateNetworkAclCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/CreateNetworkAclEntryCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/DeleteFpgaImageCommand.d.ts +2 -4
- package/dist-types/ts3.4/commands/DeleteInstanceConnectEndpointCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/DeleteInstanceEventWindowCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/DeleteInternetGatewayCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/DeleteIpamCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/DeleteIpamExternalResourceVerificationTokenCommand.d.ts +4 -2
- package/dist-types/ts3.4/commands/DescribeCapacityBlockExtensionHistoryCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/DescribeCapacityBlockExtensionOfferingsCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/DescribeFpgaImageAttributeCommand.d.ts +2 -4
- package/dist-types/ts3.4/commands/DescribeFpgaImagesCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/DescribeHostReservationOfferingsCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/DescribeHostReservationsCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/DescribeScheduledInstanceAvailabilityCommand.d.ts +2 -4
- package/dist-types/ts3.4/commands/DescribeScheduledInstancesCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/DescribeSecurityGroupReferencesCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/DescribeSecurityGroupRulesCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/DescribeSecurityGroupVpcAssociationsCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/DescribeSecurityGroupsCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/EnableVgwRoutePropagationCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/EnableVolumeIOCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/EnableVpcClassicLinkCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/EnableVpcClassicLinkDnsSupportCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ExportClientVpnClientCertificateRevocationListCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ExportClientVpnClientConfigurationCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ExportImageCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ExportTransitGatewayRoutesCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ModifyTrafficMirrorFilterNetworkServicesCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ModifyTrafficMirrorFilterRuleCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ModifyTrafficMirrorSessionCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ModifyTransitGatewayCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ModifyTransitGatewayPrefixListReferenceCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ModifyTransitGatewayVpcAttachmentCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/PurchaseCapacityBlockExtensionCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/index.d.ts +3 -0
- package/dist-types/ts3.4/models/models_0.d.ts +12 -18
- package/dist-types/ts3.4/models/models_1.d.ts +54 -77
- package/dist-types/ts3.4/models/models_2.d.ts +78 -41
- package/dist-types/ts3.4/models/models_3.d.ts +102 -124
- package/dist-types/ts3.4/models/models_4.d.ts +127 -124
- package/dist-types/ts3.4/models/models_5.d.ts +126 -86
- package/dist-types/ts3.4/models/models_6.d.ts +97 -139
- package/dist-types/ts3.4/models/models_7.d.ts +149 -9
- package/dist-types/ts3.4/pagination/DescribeCapacityBlockExtensionHistoryPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/DescribeCapacityBlockExtensionOfferingsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +3 -1
- package/dist-types/ts3.4/protocols/Aws_ec2.d.ts +36 -0
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
2
|
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
3
|
import { EC2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../EC2Client";
|
|
4
|
-
import { ModifyTrafficMirrorSessionRequest, ModifyTrafficMirrorSessionResult } from "../models/
|
|
4
|
+
import { ModifyTrafficMirrorSessionRequest, ModifyTrafficMirrorSessionResult } from "../models/models_7";
|
|
5
5
|
/**
|
|
6
6
|
* @public
|
|
7
7
|
*/
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
2
|
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
3
|
import { EC2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../EC2Client";
|
|
4
|
-
import { ModifyTransitGatewayRequest, ModifyTransitGatewayResult } from "../models/
|
|
4
|
+
import { ModifyTransitGatewayRequest, ModifyTransitGatewayResult } from "../models/models_7";
|
|
5
5
|
/**
|
|
6
6
|
* @public
|
|
7
7
|
*/
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
2
|
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
3
|
import { EC2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../EC2Client";
|
|
4
|
-
import { ModifyTransitGatewayPrefixListReferenceRequest, ModifyTransitGatewayPrefixListReferenceResult } from "../models/
|
|
4
|
+
import { ModifyTransitGatewayPrefixListReferenceRequest, ModifyTransitGatewayPrefixListReferenceResult } from "../models/models_7";
|
|
5
5
|
/**
|
|
6
6
|
* @public
|
|
7
7
|
*/
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
2
|
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
3
|
import { EC2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../EC2Client";
|
|
4
|
-
import { ModifyTransitGatewayVpcAttachmentRequest, ModifyTransitGatewayVpcAttachmentResult } from "../models/
|
|
4
|
+
import { ModifyTransitGatewayVpcAttachmentRequest, ModifyTransitGatewayVpcAttachmentResult } from "../models/models_7";
|
|
5
5
|
/**
|
|
6
6
|
* @public
|
|
7
7
|
*/
|
|
@@ -27,7 +27,7 @@ declare const ModifyVpcBlockPublicAccessOptionsCommand_base: {
|
|
|
27
27
|
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
28
|
};
|
|
29
29
|
/**
|
|
30
|
-
* <p>Modify VPC Block Public Access (BPA) options. VPC Block
|
|
30
|
+
* <p>Modify VPC Block Public Access (BPA) options. VPC Block Public Access (BPA) enables you to block resources in VPCs and subnets that you own in a Region from reaching or being reached from the internet through internet gateways and egress-only internet gateways. To learn more about VPC BPA, see <a href="https://docs.aws.amazon.com/vpc/latest/userguide/security-vpc-bpa.html">Block public access to VPCs and subnets</a> in the <i>Amazon VPC User Guide</i>.</p>
|
|
31
31
|
* @example
|
|
32
32
|
* Use a bare-bones client and the command you need to make an API call.
|
|
33
33
|
* ```javascript
|
|
@@ -27,8 +27,9 @@ declare const MoveCapacityReservationInstancesCommand_base: {
|
|
|
27
27
|
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
28
|
};
|
|
29
29
|
/**
|
|
30
|
-
* <p>Move available capacity from a source Capacity Reservation to a destination Capacity
|
|
31
|
-
*
|
|
30
|
+
* <p>Move available capacity from a source Capacity Reservation to a destination Capacity
|
|
31
|
+
* Reservation. The source Capacity Reservation and the destination Capacity Reservation
|
|
32
|
+
* must be <code>active</code>, owned by your Amazon Web Services account, and share the following: </p>
|
|
32
33
|
* <ul>
|
|
33
34
|
* <li>
|
|
34
35
|
* <p>Instance type</p>
|
|
@@ -46,7 +47,8 @@ declare const MoveCapacityReservationInstancesCommand_base: {
|
|
|
46
47
|
* <p>Placement group</p>
|
|
47
48
|
* </li>
|
|
48
49
|
* <li>
|
|
49
|
-
* <p>Capacity Reservation end time - <code>At specific time</code> or
|
|
50
|
+
* <p>Capacity Reservation end time - <code>At specific time</code> or
|
|
51
|
+
* <code>Manually</code>.</p>
|
|
50
52
|
* </li>
|
|
51
53
|
* </ul>
|
|
52
54
|
* @example
|
|
@@ -78,7 +80,7 @@ declare const MoveCapacityReservationInstancesCommand_base: {
|
|
|
78
80
|
* // AvailableInstanceCount: Number("int"),
|
|
79
81
|
* // EbsOptimized: true || false,
|
|
80
82
|
* // EphemeralStorage: true || false,
|
|
81
|
-
* // State: "active" || "expired" || "cancelled" || "pending" || "failed" || "scheduled" || "payment-pending" || "payment-failed",
|
|
83
|
+
* // State: "active" || "expired" || "cancelled" || "pending" || "failed" || "scheduled" || "payment-pending" || "payment-failed" || "assessing" || "delayed" || "unsupported",
|
|
82
84
|
* // StartDate: new Date("TIMESTAMP"),
|
|
83
85
|
* // EndDate: new Date("TIMESTAMP"),
|
|
84
86
|
* // EndDateType: "unlimited" || "limited",
|
|
@@ -101,6 +103,11 @@ declare const MoveCapacityReservationInstancesCommand_base: {
|
|
|
101
103
|
* // ],
|
|
102
104
|
* // ReservationType: "default" || "capacity-block",
|
|
103
105
|
* // UnusedReservationBillingOwnerId: "STRING_VALUE",
|
|
106
|
+
* // CommitmentInfo: { // CapacityReservationCommitmentInfo
|
|
107
|
+
* // CommittedInstanceCount: Number("int"),
|
|
108
|
+
* // CommitmentEndDate: new Date("TIMESTAMP"),
|
|
109
|
+
* // },
|
|
110
|
+
* // DeliveryPreference: "fixed" || "incremental",
|
|
104
111
|
* // },
|
|
105
112
|
* // DestinationCapacityReservation: {
|
|
106
113
|
* // CapacityReservationId: "STRING_VALUE",
|
|
@@ -115,7 +122,7 @@ declare const MoveCapacityReservationInstancesCommand_base: {
|
|
|
115
122
|
* // AvailableInstanceCount: Number("int"),
|
|
116
123
|
* // EbsOptimized: true || false,
|
|
117
124
|
* // EphemeralStorage: true || false,
|
|
118
|
-
* // State: "active" || "expired" || "cancelled" || "pending" || "failed" || "scheduled" || "payment-pending" || "payment-failed",
|
|
125
|
+
* // State: "active" || "expired" || "cancelled" || "pending" || "failed" || "scheduled" || "payment-pending" || "payment-failed" || "assessing" || "delayed" || "unsupported",
|
|
119
126
|
* // StartDate: new Date("TIMESTAMP"),
|
|
120
127
|
* // EndDate: new Date("TIMESTAMP"),
|
|
121
128
|
* // EndDateType: "unlimited" || "limited",
|
|
@@ -138,6 +145,11 @@ declare const MoveCapacityReservationInstancesCommand_base: {
|
|
|
138
145
|
* // ],
|
|
139
146
|
* // ReservationType: "default" || "capacity-block",
|
|
140
147
|
* // UnusedReservationBillingOwnerId: "STRING_VALUE",
|
|
148
|
+
* // CommitmentInfo: {
|
|
149
|
+
* // CommittedInstanceCount: Number("int"),
|
|
150
|
+
* // CommitmentEndDate: new Date("TIMESTAMP"),
|
|
151
|
+
* // },
|
|
152
|
+
* // DeliveryPreference: "fixed" || "incremental",
|
|
141
153
|
* // },
|
|
142
154
|
* // InstanceCount: Number("int"),
|
|
143
155
|
* // };
|
|
@@ -27,8 +27,9 @@ declare const PurchaseCapacityBlockCommand_base: {
|
|
|
27
27
|
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
28
|
};
|
|
29
29
|
/**
|
|
30
|
-
* <p>Purchase the Capacity Block for use with your account.
|
|
31
|
-
*
|
|
30
|
+
* <p>Purchase the Capacity Block for use with your account. With Capacity Blocks you ensure
|
|
31
|
+
* GPU capacity is available for machine learning (ML) workloads. You must specify the ID
|
|
32
|
+
* of the Capacity Block offering you are purchasing.</p>
|
|
32
33
|
* @example
|
|
33
34
|
* Use a bare-bones client and the command you need to make an API call.
|
|
34
35
|
* ```javascript
|
|
@@ -67,7 +68,7 @@ declare const PurchaseCapacityBlockCommand_base: {
|
|
|
67
68
|
* // AvailableInstanceCount: Number("int"),
|
|
68
69
|
* // EbsOptimized: true || false,
|
|
69
70
|
* // EphemeralStorage: true || false,
|
|
70
|
-
* // State: "active" || "expired" || "cancelled" || "pending" || "failed" || "scheduled" || "payment-pending" || "payment-failed",
|
|
71
|
+
* // State: "active" || "expired" || "cancelled" || "pending" || "failed" || "scheduled" || "payment-pending" || "payment-failed" || "assessing" || "delayed" || "unsupported",
|
|
71
72
|
* // StartDate: new Date("TIMESTAMP"),
|
|
72
73
|
* // EndDate: new Date("TIMESTAMP"),
|
|
73
74
|
* // EndDateType: "unlimited" || "limited",
|
|
@@ -90,6 +91,11 @@ declare const PurchaseCapacityBlockCommand_base: {
|
|
|
90
91
|
* // ],
|
|
91
92
|
* // ReservationType: "default" || "capacity-block",
|
|
92
93
|
* // UnusedReservationBillingOwnerId: "STRING_VALUE",
|
|
94
|
+
* // CommitmentInfo: { // CapacityReservationCommitmentInfo
|
|
95
|
+
* // CommittedInstanceCount: Number("int"),
|
|
96
|
+
* // CommitmentEndDate: new Date("TIMESTAMP"),
|
|
97
|
+
* // },
|
|
98
|
+
* // DeliveryPreference: "fixed" || "incremental",
|
|
93
99
|
* // },
|
|
94
100
|
* // };
|
|
95
101
|
*
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import { EC2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../EC2Client";
|
|
4
|
+
import { PurchaseCapacityBlockExtensionRequest, PurchaseCapacityBlockExtensionResult } from "../models/models_7";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link PurchaseCapacityBlockExtensionCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface PurchaseCapacityBlockExtensionCommandInput extends PurchaseCapacityBlockExtensionRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link PurchaseCapacityBlockExtensionCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface PurchaseCapacityBlockExtensionCommandOutput extends PurchaseCapacityBlockExtensionResult, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const PurchaseCapacityBlockExtensionCommand_base: {
|
|
25
|
+
new (input: PurchaseCapacityBlockExtensionCommandInput): import("@smithy/smithy-client").CommandImpl<PurchaseCapacityBlockExtensionCommandInput, PurchaseCapacityBlockExtensionCommandOutput, EC2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (__0_0: PurchaseCapacityBlockExtensionCommandInput): import("@smithy/smithy-client").CommandImpl<PurchaseCapacityBlockExtensionCommandInput, PurchaseCapacityBlockExtensionCommandOutput, EC2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* <p>Purchase the Capacity Block extension for use with your account. You must specify the
|
|
31
|
+
* ID of the Capacity Block extension offering you are purchasing.</p>
|
|
32
|
+
* @example
|
|
33
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
34
|
+
* ```javascript
|
|
35
|
+
* import { EC2Client, PurchaseCapacityBlockExtensionCommand } from "@aws-sdk/client-ec2"; // ES Modules import
|
|
36
|
+
* // const { EC2Client, PurchaseCapacityBlockExtensionCommand } = require("@aws-sdk/client-ec2"); // CommonJS import
|
|
37
|
+
* const client = new EC2Client(config);
|
|
38
|
+
* const input = { // PurchaseCapacityBlockExtensionRequest
|
|
39
|
+
* CapacityBlockExtensionOfferingId: "STRING_VALUE", // required
|
|
40
|
+
* CapacityReservationId: "STRING_VALUE", // required
|
|
41
|
+
* DryRun: true || false,
|
|
42
|
+
* };
|
|
43
|
+
* const command = new PurchaseCapacityBlockExtensionCommand(input);
|
|
44
|
+
* const response = await client.send(command);
|
|
45
|
+
* // { // PurchaseCapacityBlockExtensionResult
|
|
46
|
+
* // CapacityBlockExtensions: [ // CapacityBlockExtensionSet
|
|
47
|
+
* // { // CapacityBlockExtension
|
|
48
|
+
* // CapacityReservationId: "STRING_VALUE",
|
|
49
|
+
* // InstanceType: "STRING_VALUE",
|
|
50
|
+
* // InstanceCount: Number("int"),
|
|
51
|
+
* // AvailabilityZone: "STRING_VALUE",
|
|
52
|
+
* // AvailabilityZoneId: "STRING_VALUE",
|
|
53
|
+
* // CapacityBlockExtensionOfferingId: "STRING_VALUE",
|
|
54
|
+
* // CapacityBlockExtensionDurationHours: Number("int"),
|
|
55
|
+
* // CapacityBlockExtensionStatus: "payment-pending" || "payment-failed" || "payment-succeeded",
|
|
56
|
+
* // CapacityBlockExtensionPurchaseDate: new Date("TIMESTAMP"),
|
|
57
|
+
* // CapacityBlockExtensionStartDate: new Date("TIMESTAMP"),
|
|
58
|
+
* // CapacityBlockExtensionEndDate: new Date("TIMESTAMP"),
|
|
59
|
+
* // UpfrontFee: "STRING_VALUE",
|
|
60
|
+
* // CurrencyCode: "STRING_VALUE",
|
|
61
|
+
* // },
|
|
62
|
+
* // ],
|
|
63
|
+
* // };
|
|
64
|
+
*
|
|
65
|
+
* ```
|
|
66
|
+
*
|
|
67
|
+
* @param PurchaseCapacityBlockExtensionCommandInput - {@link PurchaseCapacityBlockExtensionCommandInput}
|
|
68
|
+
* @returns {@link PurchaseCapacityBlockExtensionCommandOutput}
|
|
69
|
+
* @see {@link PurchaseCapacityBlockExtensionCommandInput} for command's `input` shape.
|
|
70
|
+
* @see {@link PurchaseCapacityBlockExtensionCommandOutput} for command's `response` shape.
|
|
71
|
+
* @see {@link EC2ClientResolvedConfig | config} for EC2Client's `config` shape.
|
|
72
|
+
*
|
|
73
|
+
* @throws {@link EC2ServiceException}
|
|
74
|
+
* <p>Base exception class for all service exceptions from EC2 service.</p>
|
|
75
|
+
*
|
|
76
|
+
* @public
|
|
77
|
+
*/
|
|
78
|
+
export declare class PurchaseCapacityBlockExtensionCommand extends PurchaseCapacityBlockExtensionCommand_base {
|
|
79
|
+
/** @internal type navigation helper, not in runtime. */
|
|
80
|
+
protected static __types: {
|
|
81
|
+
api: {
|
|
82
|
+
input: PurchaseCapacityBlockExtensionRequest;
|
|
83
|
+
output: PurchaseCapacityBlockExtensionResult;
|
|
84
|
+
};
|
|
85
|
+
sdk: {
|
|
86
|
+
input: PurchaseCapacityBlockExtensionCommandInput;
|
|
87
|
+
output: PurchaseCapacityBlockExtensionCommandOutput;
|
|
88
|
+
};
|
|
89
|
+
};
|
|
90
|
+
}
|
|
@@ -27,9 +27,9 @@ declare const RejectCapacityReservationBillingOwnershipCommand_base: {
|
|
|
27
27
|
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
28
|
};
|
|
29
29
|
/**
|
|
30
|
-
* <p>Rejects a request to assign billing of the available capacity of a shared Capacity
|
|
31
|
-
* to your account. For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/assign-billing.html">
|
|
32
|
-
*
|
|
30
|
+
* <p>Rejects a request to assign billing of the available capacity of a shared Capacity
|
|
31
|
+
* Reservation to your account. For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/assign-billing.html"> Billing assignment for shared
|
|
32
|
+
* Amazon EC2 Capacity Reservations</a>.</p>
|
|
33
33
|
* @example
|
|
34
34
|
* Use a bare-bones client and the command you need to make an API call.
|
|
35
35
|
* ```javascript
|
|
@@ -195,7 +195,7 @@ declare const RequestSpotFleetCommand_base: {
|
|
|
195
195
|
* Max: Number("int"),
|
|
196
196
|
* },
|
|
197
197
|
* CpuManufacturers: [ // CpuManufacturerSet
|
|
198
|
-
* "intel" || "amd" || "amazon-web-services",
|
|
198
|
+
* "intel" || "amd" || "amazon-web-services" || "apple",
|
|
199
199
|
* ],
|
|
200
200
|
* MemoryGiBPerVCpu: { // MemoryGiBPerVCpu
|
|
201
201
|
* Min: Number("double"),
|
|
@@ -253,6 +253,15 @@ declare const RequestSpotFleetCommand_base: {
|
|
|
253
253
|
* "STRING_VALUE",
|
|
254
254
|
* ],
|
|
255
255
|
* MaxSpotPriceAsPercentageOfOptimalOnDemandPrice: Number("int"),
|
|
256
|
+
* BaselinePerformanceFactors: { // BaselinePerformanceFactors
|
|
257
|
+
* Cpu: { // CpuPerformanceFactor
|
|
258
|
+
* References: [ // PerformanceFactorReferenceSet
|
|
259
|
+
* { // PerformanceFactorReference
|
|
260
|
+
* InstanceFamily: "STRING_VALUE",
|
|
261
|
+
* },
|
|
262
|
+
* ],
|
|
263
|
+
* },
|
|
264
|
+
* },
|
|
256
265
|
* },
|
|
257
266
|
* SecurityGroups: [ // GroupIdentifierList
|
|
258
267
|
* { // GroupIdentifier
|
|
@@ -287,7 +296,7 @@ declare const RequestSpotFleetCommand_base: {
|
|
|
287
296
|
* Max: Number("int"),
|
|
288
297
|
* },
|
|
289
298
|
* CpuManufacturers: [
|
|
290
|
-
* "intel" || "amd" || "amazon-web-services",
|
|
299
|
+
* "intel" || "amd" || "amazon-web-services" || "apple",
|
|
291
300
|
* ],
|
|
292
301
|
* MemoryGiBPerVCpu: {
|
|
293
302
|
* Min: Number("double"),
|
|
@@ -345,6 +354,15 @@ declare const RequestSpotFleetCommand_base: {
|
|
|
345
354
|
* "STRING_VALUE",
|
|
346
355
|
* ],
|
|
347
356
|
* MaxSpotPriceAsPercentageOfOptimalOnDemandPrice: Number("int"),
|
|
357
|
+
* BaselinePerformanceFactors: {
|
|
358
|
+
* Cpu: {
|
|
359
|
+
* References: [
|
|
360
|
+
* {
|
|
361
|
+
* InstanceFamily: "STRING_VALUE",
|
|
362
|
+
* },
|
|
363
|
+
* ],
|
|
364
|
+
* },
|
|
365
|
+
* },
|
|
348
366
|
* },
|
|
349
367
|
* },
|
|
350
368
|
* ],
|
|
@@ -186,7 +186,7 @@ declare const RunInstancesCommand_base: {
|
|
|
186
186
|
* AmdSevSnp: "enabled" || "disabled",
|
|
187
187
|
* },
|
|
188
188
|
* CapacityReservationSpecification: { // CapacityReservationSpecification
|
|
189
|
-
* CapacityReservationPreference: "open" || "none",
|
|
189
|
+
* CapacityReservationPreference: "capacity-reservations-only" || "open" || "none",
|
|
190
190
|
* CapacityReservationTarget: { // CapacityReservationTarget
|
|
191
191
|
* CapacityReservationId: "STRING_VALUE",
|
|
192
192
|
* CapacityReservationResourceGroupArn: "STRING_VALUE",
|
|
@@ -453,7 +453,7 @@ declare const RunInstancesCommand_base: {
|
|
|
453
453
|
* // },
|
|
454
454
|
* // CapacityReservationId: "STRING_VALUE",
|
|
455
455
|
* // CapacityReservationSpecification: { // CapacityReservationSpecificationResponse
|
|
456
|
-
* // CapacityReservationPreference: "open" || "none",
|
|
456
|
+
* // CapacityReservationPreference: "capacity-reservations-only" || "open" || "none",
|
|
457
457
|
* // CapacityReservationTarget: { // CapacityReservationTargetResponse
|
|
458
458
|
* // CapacityReservationId: "STRING_VALUE",
|
|
459
459
|
* // CapacityReservationResourceGroupArn: "STRING_VALUE",
|
|
@@ -234,6 +234,8 @@ export * from "./DescribeAvailabilityZonesCommand";
|
|
|
234
234
|
export * from "./DescribeAwsNetworkPerformanceMetricSubscriptionsCommand";
|
|
235
235
|
export * from "./DescribeBundleTasksCommand";
|
|
236
236
|
export * from "./DescribeByoipCidrsCommand";
|
|
237
|
+
export * from "./DescribeCapacityBlockExtensionHistoryCommand";
|
|
238
|
+
export * from "./DescribeCapacityBlockExtensionOfferingsCommand";
|
|
237
239
|
export * from "./DescribeCapacityBlockOfferingsCommand";
|
|
238
240
|
export * from "./DescribeCapacityReservationBillingRequestsCommand";
|
|
239
241
|
export * from "./DescribeCapacityReservationFleetsCommand";
|
|
@@ -578,6 +580,7 @@ export * from "./ProvisionIpamByoasnCommand";
|
|
|
578
580
|
export * from "./ProvisionIpamPoolCidrCommand";
|
|
579
581
|
export * from "./ProvisionPublicIpv4PoolCidrCommand";
|
|
580
582
|
export * from "./PurchaseCapacityBlockCommand";
|
|
583
|
+
export * from "./PurchaseCapacityBlockExtensionCommand";
|
|
581
584
|
export * from "./PurchaseHostReservationCommand";
|
|
582
585
|
export * from "./PurchaseReservedInstancesOfferingCommand";
|
|
583
586
|
export * from "./PurchaseScheduledInstancesCommand";
|