Skip to content

Commit

Permalink
feat(client-ec2): Added "future" allocation type for future dated cap…
Browse files Browse the repository at this point in the history
…acity reservation
  • Loading branch information
awstools committed Jan 23, 2025
1 parent e81ee56 commit 752ea12
Show file tree
Hide file tree
Showing 26 changed files with 73 additions and 100 deletions.
8 changes: 4 additions & 4 deletions clients/client-ec2/src/commands/AssignIpv6AddressesCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,11 @@ export interface AssignIpv6AddressesCommandInput extends AssignIpv6AddressesRequ
export interface AssignIpv6AddressesCommandOutput extends AssignIpv6AddressesResult, __MetadataBearer {}

/**
* <p>Assigns the specified IPv6 addresses to the specified network interface. You can
* specify specific IPv6 addresses, or you can specify the number of IPv6
* addresses to be automatically assigned from the subnet's IPv6 CIDR block range.
* <p>Assigns one or more IPv6 addresses to the specified network interface. You can
* specify one or more specific IPv6 addresses, or you can specify the number of IPv6
* addresses to be automatically assigned from within the subnet's IPv6 CIDR block range.
* You can assign as many IPv6 addresses to a network interface as you can assign private
* IPv4 addresses, and the limit varies by instance type.</p>
* IPv4 addresses, and the limit varies per instance type.</p>
* <p>You must specify either the IPv6 addresses or the IPv6 address count in the request. </p>
* <p>You can optionally use Prefix Delegation on the network interface. You must specify
* either the IPV6 Prefix Delegation prefixes, or the IPv6 Prefix Delegation count. For
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ export interface AssignPrivateIpAddressesCommandInput extends AssignPrivateIpAdd
export interface AssignPrivateIpAddressesCommandOutput extends AssignPrivateIpAddressesResult, __MetadataBearer {}

/**
* <p>Assigns the specified secondary private IP addresses to the specified network interface.</p>
* <p>You can specify specific secondary IP addresses, or you can specify the number
* of secondary IP addresses to be automatically assigned from the subnet's CIDR block range.
* <p>Assigns one or more secondary private IP addresses to the specified network interface.</p>
* <p>You can specify one or more specific secondary IP addresses, or you can specify the number
* of secondary IP addresses to be automatically assigned within the subnet's CIDR block range.
* The number of secondary IP addresses that you can assign to an instance varies by instance type.
* For more information about Elastic IP addresses, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/elastic-ip-addresses-eip.html">Elastic IP Addresses</a> in the <i>Amazon EC2 User Guide</i>.</p>
* <p>When you move a secondary private IP address to another network interface, any Elastic IP address
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,6 @@ export interface CancelCapacityReservationCommandOutput extends CancelCapacityRe
* duration has elapsed. You can't cancel a future-dated Capacity Reservation during the commitment duration.</p>
* </li>
* </ul>
* <note>
* <p>You can't modify or cancel a Capacity Block. For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-capacity-blocks.html">Capacity Blocks for ML</a>.</p>
* </note>
* <p>If a future-dated Capacity Reservation enters the <code>delayed</code> state, the commitment
* duration is waived, and you can cancel it as soon as it enters the <code>active</code> state.</p>
* <p>Instances running in the reserved capacity continue running until you stop them. Stopped
Expand Down
9 changes: 5 additions & 4 deletions clients/client-ec2/src/commands/CopySnapshotCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,11 @@ export interface CopySnapshotCommandOutput extends CopySnapshotResult, __Metadat
* however, you can specify a different KMS key. To copy an encrypted
* snapshot that has been shared from another account, you must have permissions for the KMS key
* used to encrypt the snapshot.</p>
* <p>Snapshots copied to an Outpost are encrypted by default using the default encryption key
* for the Region, or a different key that you specify in the request using <b>KmsKeyId</b>. Outposts do not support unencrypted snapshots. For more information,
* see <a href="https://docs.aws.amazon.com/ebs/latest/userguide/snapshots-outposts.html#ami">Amazon EBS
* local snapshots on Outposts</a> in the <i>Amazon EBS User Guide</i>.</p>
* <p>Snapshots copied to an Outpost are encrypted by default using the default
* encryption key for the Region, or a different key that you specify in the request using
* <b>KmsKeyId</b>. Outposts do not support unencrypted
* snapshots. For more information, <a href="https://docs.aws.amazon.com/ebs/latest/userguide/snapshots-outposts.html#ami">
* Amazon EBS local snapshots on Outposts</a> in the <i>Amazon EBS User Guide</i>.</p>
* <p>Snapshots created by copying another snapshot have an arbitrary volume ID that should not
* be used for any purpose.</p>
* <p>For more information, see <a href="https://docs.aws.amazon.com/ebs/latest/userguide/ebs-copy-snapshot.html">Copy an Amazon EBS snapshot</a> in the
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ export interface CreateCapacityReservationBySplittingCommandOutput
* // PlacementGroupArn: "STRING_VALUE",
* // CapacityAllocations: [ // CapacityAllocations
* // { // CapacityAllocation
* // AllocationType: "used",
* // AllocationType: "used" || "future",
* // Count: Number("int"),
* // },
* // ],
Expand Down Expand Up @@ -138,7 +138,7 @@ export interface CreateCapacityReservationBySplittingCommandOutput
* // PlacementGroupArn: "STRING_VALUE",
* // CapacityAllocations: [
* // {
* // AllocationType: "used",
* // AllocationType: "used" || "future",
* // Count: Number("int"),
* // },
* // ],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ export interface CreateCapacityReservationCommandOutput extends CreateCapacityRe
* // PlacementGroupArn: "STRING_VALUE",
* // CapacityAllocations: [ // CapacityAllocations
* // { // CapacityAllocation
* // AllocationType: "used",
* // AllocationType: "used" || "future",
* // Count: Number("int"),
* // },
* // ],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export interface CreateManagedPrefixListCommandInput extends CreateManagedPrefix
export interface CreateManagedPrefixListCommandOutput extends CreateManagedPrefixListResult, __MetadataBearer {}

/**
* <p>Creates a managed prefix list. You can specify entries for the prefix list.
* <p>Creates a managed prefix list. You can specify one or more entries for the prefix list.
* Each entry consists of a CIDR block and an optional description.</p>
* @example
* Use a bare-bones client and the command you need to make an API call.
Expand Down
7 changes: 4 additions & 3 deletions clients/client-ec2/src/commands/CreateSnapshotCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ export interface CreateSnapshotCommandOutput extends Snapshot, __MetadataBearer
* Region as the volume.</p>
* </li>
* <li>
* <p>If the source volume is in a Local Zone, you can create the snapshot in the same Local
* Zone or in its parent Amazon Web Services Region.</p>
* <p>If the source volume is in a Local Zone, you can create the snapshot in the same
* Local Zone or in parent Amazon Web Services Region.</p>
* </li>
* <li>
* <p>If the source volume is on an Outpost, you can create the snapshot on the same
Expand All @@ -60,7 +60,8 @@ export interface CreateSnapshotCommandOutput extends Snapshot, __MetadataBearer
* that you stop the instance before taking the snapshot.</p>
* <p>Snapshots that are taken from encrypted volumes are automatically encrypted. Volumes that
* are created from encrypted snapshots are also automatically encrypted. Your encrypted volumes
* and any associated snapshots always remain protected. For more information, see <a href="https://docs.aws.amazon.com/ebs/latest/userguide/ebs-encryption.html">Amazon EBS encryption</a>
* and any associated snapshots always remain protected. For more information,
* <a href="https://docs.aws.amazon.com/ebs/latest/userguide/ebs-encryption.html">Amazon EBS encryption</a>
* in the <i>Amazon EBS User Guide</i>.</p>
* @example
* Use a bare-bones client and the command you need to make an API call.
Expand Down
2 changes: 1 addition & 1 deletion clients/client-ec2/src/commands/CreateSnapshotsCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export interface CreateSnapshotsCommandOutput extends CreateSnapshotsResult, __M
* </li>
* <li>
* <p>If the source instance is in a Local Zone, you can create the snapshots in the same
* Local Zone or in its parent Amazon Web Services Region.</p>
* Local Zone or in parent Amazon Web Services Region.</p>
* </li>
* <li>
* <p>If the source instance is on an Outpost, you can create the snapshots on the same
Expand Down
2 changes: 1 addition & 1 deletion clients/client-ec2/src/commands/DeleteSnapshotCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export interface DeleteSnapshotCommandOutput extends __MetadataBearer {}
* regardless of which prior snapshots have been deleted, all active snapshots will have access
* to all the information needed to restore the volume.</p>
* <p>You cannot delete a snapshot of the root device of an EBS volume used by a registered AMI.
* You must first deregister the AMI before you can delete the snapshot.</p>
* You must first de-register the AMI before you can delete the snapshot.</p>
* <p>For more information, see <a href="https://docs.aws.amazon.com/ebs/latest/userguide/ebs-deleting-snapshot.html">Delete an Amazon EBS snapshot</a> in the
* <i>Amazon EBS User Guide</i>.</p>
* @example
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,20 +35,6 @@ export interface DescribeCapacityBlockOfferingsCommandOutput
/**
* <p>Describes Capacity Block offerings available for purchase in the Amazon Web Services Region that you're currently using. With Capacity Blocks, you purchase a
* specific instance type for a period of time.</p>
* <p>To search for an available Capacity Block offering, you specify a reservation duration
* and instance count. You must select one of the following options.</p>
* <ul>
* <li>
* <p>For reservation durations<b> 1-day increments
* up 14 days and 7-day increments up to 182 days total</b>
* </p>
* </li>
* <li>
* <p>For instance count<b> 1, 2, 4, 8, 16, 32, or
* 64 instances</b>
* </p>
* </li>
* </ul>
* @example
* Use a bare-bones client and the command you need to make an API call.
* ```javascript
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ export interface DescribeCapacityReservationsCommandOutput
* // PlacementGroupArn: "STRING_VALUE",
* // CapacityAllocations: [ // CapacityAllocations
* // { // CapacityAllocation
* // AllocationType: "used",
* // AllocationType: "used" || "future",
* // Count: Number("int"),
* // },
* // ],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,7 @@ export interface DescribeInstanceTopologyCommandOutput extends DescribeInstanceT
* <li>
* <p>
* <code>trn1.2xlarge</code> | <code>trn1.32xlarge</code> |
* <code>trn1n.32xlarge</code> | <code>trn2.48xlarge</code> |
* <code>trn2u.48xlarge</code>
* <code>trn1n.32xlarge</code>
* </p>
* </li>
* </ul>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export interface DescribeNetworkInterfacesCommandInput extends DescribeNetworkIn
export interface DescribeNetworkInterfacesCommandOutput extends DescribeNetworkInterfacesResult, __MetadataBearer {}

/**
* <p>Describes the specified network interfaces or all your network interfaces.</p>
* <p>Describes one or more of your network interfaces.</p>
* <p>If you have a large number of network interfaces, the operation fails unless
* you use pagination or one of the following filters: <code>group-id</code>,
* <code>mac-address</code>, <code>private-dns-name</code>, <code>private-ip-address</code>,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ export interface MoveCapacityReservationInstancesCommandOutput
* // PlacementGroupArn: "STRING_VALUE",
* // CapacityAllocations: [ // CapacityAllocations
* // { // CapacityAllocation
* // AllocationType: "used",
* // AllocationType: "used" || "future",
* // Count: Number("int"),
* // },
* // ],
Expand Down Expand Up @@ -145,7 +145,7 @@ export interface MoveCapacityReservationInstancesCommandOutput
* // PlacementGroupArn: "STRING_VALUE",
* // CapacityAllocations: [
* // {
* // AllocationType: "used",
* // AllocationType: "used" || "future",
* // Count: Number("int"),
* // },
* // ],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ export interface PurchaseCapacityBlockCommandOutput extends PurchaseCapacityBloc
* // PlacementGroupArn: "STRING_VALUE",
* // CapacityAllocations: [ // CapacityAllocations
* // { // CapacityAllocation
* // AllocationType: "used",
* // AllocationType: "used" || "future",
* // Count: Number("int"),
* // },
* // ],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export interface UnassignIpv6AddressesCommandInput extends UnassignIpv6Addresses
export interface UnassignIpv6AddressesCommandOutput extends UnassignIpv6AddressesResult, __MetadataBearer {}

/**
* <p>Unassigns the specified IPv6 addresses or Prefix Delegation prefixes from a network interface.</p>
* <p>Unassigns one or more IPv6 addresses IPv4 Prefix Delegation prefixes from a network interface.</p>
* @example
* Use a bare-bones client and the command you need to make an API call.
* ```javascript
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export interface UnassignPrivateIpAddressesCommandInput extends UnassignPrivateI
export interface UnassignPrivateIpAddressesCommandOutput extends __MetadataBearer {}

/**
* <p>Unassigns the specified secondary private IP addresses or IPv4 Prefix Delegation prefixes from a
* <p>Unassigns one or more secondary private IP addresses, or IPv4 Prefix Delegation prefixes from a
* network interface.</p>
* @example
* Use a bare-bones client and the command you need to make an API call.
Expand Down
7 changes: 4 additions & 3 deletions clients/client-ec2/src/models/models_0.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3742,6 +3742,7 @@ export type AllocationStrategy = (typeof AllocationStrategy)[keyof typeof Alloca
* @enum
*/
export const AllocationType = {
future: "future",
used: "used",
} as const;

Expand Down Expand Up @@ -3902,7 +3903,7 @@ export interface AssignIpv6AddressesRequest {
Ipv6PrefixCount?: number | undefined;

/**
* <p>One or more IPv6 prefixes assigned to the network interface. You can't use this option if you use the <code>Ipv6PrefixCount</code> option.</p>
* <p>One or more IPv6 prefixes assigned to the network interface. You cannot use this option if you use the <code>Ipv6PrefixCount</code> option.</p>
* @public
*/
Ipv6Prefixes?: string[] | undefined;
Expand Down Expand Up @@ -3960,13 +3961,13 @@ export interface AssignIpv6AddressesResult {
*/
export interface AssignPrivateIpAddressesRequest {
/**
* <p>One or more IPv4 prefixes assigned to the network interface. You can't use this option if you use the <code>Ipv4PrefixCount</code> option.</p>
* <p>One or more IPv4 prefixes assigned to the network interface. You cannot use this option if you use the <code>Ipv4PrefixCount</code> option.</p>
* @public
*/
Ipv4Prefixes?: string[] | undefined;

/**
* <p>The number of IPv4 prefixes that Amazon Web Services automatically assigns to the network interface. You can't use this option if you use the <code>Ipv4 Prefixes</code> option.</p>
* <p>The number of IPv4 prefixes that Amazon Web Services automatically assigns to the network interface. You cannot use this option if you use the <code>Ipv4 Prefixes</code> option.</p>
* @public
*/
Ipv4PrefixCount?: number | undefined;
Expand Down
14 changes: 4 additions & 10 deletions clients/client-ec2/src/models/models_1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4246,13 +4246,10 @@ export interface InstanceRequirementsRequest {
* <p>The accelerator types that must be on the instance type.</p>
* <ul>
* <li>
* <p>For instance types with FPGA accelerators, specify <code>fpga</code>.</p>
* <p>To include instance types with GPU hardware, specify <code>gpu</code>.</p>
* </li>
* <li>
* <p>For instance types with GPU accelerators, specify <code>gpu</code>.</p>
* </li>
* <li>
* <p>For instance types with Inference accelerators, specify <code>inference</code>.</p>
* <p>To include instance types with FPGA hardware, specify <code>fpga</code>.</p>
* </li>
* </ul>
* <p>Default: Any accelerator type</p>
Expand Down Expand Up @@ -5829,13 +5826,10 @@ export interface InstanceRequirements {
* <p>The accelerator types that must be on the instance type.</p>
* <ul>
* <li>
* <p>For instance types with FPGA accelerators, specify <code>fpga</code>.</p>
* </li>
* <li>
* <p>For instance types with GPU accelerators, specify <code>gpu</code>.</p>
* </li>
* <li>
* <p>For instance types with Inference accelerators, specify <code>inference</code>.</p>
* <p>For instance types with FPGA accelerators, specify <code>fpga</code>.</p>
* </li>
* </ul>
* <p>Default: Any accelerator type</p>
Expand Down Expand Up @@ -9667,7 +9661,7 @@ export interface InstanceIpv6AddressRequest {
}

/**
* <p>Describes the IPv6 prefix option for a network interface.</p>
* <p>Describes the IPv4 prefix option for a network interface.</p>
* @public
*/
export interface Ipv6PrefixSpecificationRequest {
Expand Down
2 changes: 1 addition & 1 deletion clients/client-ec2/src/models/models_2.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1312,7 +1312,7 @@ export interface CreateNetworkInterfaceRequest {
PrivateIpAddress?: string | undefined;

/**
* <p>The IDs of the security groups.</p>
* <p>The IDs of one or more security groups.</p>
* @public
*/
Groups?: string[] | undefined;
Expand Down
11 changes: 0 additions & 11 deletions clients/client-ec2/src/models/models_4.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11839,17 +11839,6 @@ export interface DescribeNetworkInterfacesRequest {
* </li>
* <li>
* <p>
* <code>operator.managed</code> - A Boolean that indicates whether this is a
* managed network interface.</p>
* </li>
* <li>
* <p>
* <code>operator.principal</code> - The principal that manages the network
* interface. Only valid for managed network interfaces, where <code>managed</code>
* is <code>true</code>.</p>
* </li>
* <li>
* <p>
* <code>owner-id</code> - The Amazon Web Services account ID of the network interface owner.</p>
* </li>
* <li>
Expand Down
5 changes: 2 additions & 3 deletions clients/client-ec2/src/models/models_5.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2943,9 +2943,8 @@ export interface InstanceNetworkInterfaceSpecification {
PrivateIpAddresses?: PrivateIpAddressSpecification[] | undefined;

/**
* <p>The number of secondary private IPv4 addresses. You can’t specify this parameter and
* also specify a secondary private IP address using the <code>PrivateIpAddress</code>
* parameter.</p>
* <p>The number of secondary private IPv4 addresses. You can't specify this option and specify more than one private IP address using the private IP addresses option. You cannot specify this option if you're
* launching more than one instance in a <a href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_RunInstances.html">RunInstances</a> request.</p>
* @public
*/
SecondaryPrivateIpAddressCount?: number | undefined;
Expand Down
2 changes: 1 addition & 1 deletion clients/client-ec2/src/models/models_6.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8501,7 +8501,7 @@ export interface InstanceBlockDeviceMappingSpecification {
VirtualName?: string | undefined;

/**
* <p>Suppresses the specified device included in the block device mapping.</p>
* <p>suppress the specified device included in the block device mapping.</p>
* @public
*/
NoDevice?: string | undefined;
Expand Down
Loading

0 comments on commit 752ea12

Please sign in to comment.