Skip to content

Commit f3e70c5

Browse files
author
awstools
committed
feat(client-ec2): This release changes the CreateFleet CLI and SDK's such that if you do not specify a client token, a randomly generated token is used for the request to ensure idempotency.
1 parent 013cd45 commit f3e70c5

File tree

9 files changed

+53
-17
lines changed

9 files changed

+53
-17
lines changed

Diff for: clients/client-ec2/src/commands/CancelCapacityReservationCommand.ts

+3
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,9 @@ export interface CancelCapacityReservationCommandOutput extends CancelCapacityRe
4343
* duration has elapsed. You can't cancel a future-dated Capacity Reservation during the commitment duration.</p>
4444
* </li>
4545
* </ul>
46+
* <note>
47+
* <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>
48+
* </note>
4649
* <p>If a future-dated Capacity Reservation enters the <code>delayed</code> state, the commitment
4750
* duration is waived, and you can cancel it as soon as it enters the <code>active</code> state.</p>
4851
* <p>Instances running in the reserved capacity continue running until you stop them. Stopped

Diff for: clients/client-ec2/src/commands/DescribeCapacityBlockOfferingsCommand.ts

+14
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,20 @@ export interface DescribeCapacityBlockOfferingsCommandOutput
3535
/**
3636
* <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
3737
* specific instance type for a period of time.</p>
38+
* <p>To search for an available Capacity Block offering, you specify a reservation duration
39+
* and instance count. You must select one of the following options.</p>
40+
* <ul>
41+
* <li>
42+
* <p>For reservation durations<b> 1-day increments
43+
* up 14 days and 7-day increments up to 182 days total</b>
44+
* </p>
45+
* </li>
46+
* <li>
47+
* <p>For instance count<b> 1, 2, 4, 8, 16, 32, or
48+
* 64 instances</b>
49+
* </p>
50+
* </li>
51+
* </ul>
3852
* @example
3953
* Use a bare-bones client and the command you need to make an API call.
4054
* ```javascript

Diff for: clients/client-ec2/src/commands/DescribeInstanceTopologyCommand.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,8 @@ export interface DescribeInstanceTopologyCommandOutput extends DescribeInstanceT
6969
* <li>
7070
* <p>
7171
* <code>trn1.2xlarge</code> | <code>trn1.32xlarge</code> |
72-
* <code>trn1n.32xlarge</code>
72+
* <code>trn1n.32xlarge</code> | <code>trn2.48xlarge</code> |
73+
* <code>trn2u.48xlarge</code>
7374
* </p>
7475
* </li>
7576
* </ul>

Diff for: clients/client-ec2/src/models/models_1.ts

+12-4
Original file line numberDiff line numberDiff line change
@@ -4246,10 +4246,13 @@ export interface InstanceRequirementsRequest {
42464246
* <p>The accelerator types that must be on the instance type.</p>
42474247
* <ul>
42484248
* <li>
4249-
* <p>To include instance types with GPU hardware, specify <code>gpu</code>.</p>
4249+
* <p>For instance types with FPGA accelerators, specify <code>fpga</code>.</p>
4250+
* </li>
4251+
* <li>
4252+
* <p>For instance types with GPU accelerators, specify <code>gpu</code>.</p>
42504253
* </li>
42514254
* <li>
4252-
* <p>To include instance types with FPGA hardware, specify <code>fpga</code>.</p>
4255+
* <p>For instance types with Inference accelerators, specify <code>inference</code>.</p>
42534256
* </li>
42544257
* </ul>
42554258
* <p>Default: Any accelerator type</p>
@@ -5132,7 +5135,9 @@ export interface CreateFleetRequest {
51325135

51335136
/**
51345137
* <p>Unique, case-sensitive identifier that you provide to ensure the idempotency of the
5135-
* request. For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html">Ensuring
5138+
* request. If you do not specify a client token, a randomly generated token is used for
5139+
* the request to ensure idempotency.</p>
5140+
* <p>For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html">Ensuring
51365141
* idempotency</a>.</p>
51375142
* @public
51385143
*/
@@ -5826,10 +5831,13 @@ export interface InstanceRequirements {
58265831
* <p>The accelerator types that must be on the instance type.</p>
58275832
* <ul>
58285833
* <li>
5834+
* <p>For instance types with FPGA accelerators, specify <code>fpga</code>.</p>
5835+
* </li>
5836+
* <li>
58295837
* <p>For instance types with GPU accelerators, specify <code>gpu</code>.</p>
58305838
* </li>
58315839
* <li>
5832-
* <p>For instance types with FPGA accelerators, specify <code>fpga</code>.</p>
5840+
* <p>For instance types with Inference accelerators, specify <code>inference</code>.</p>
58335841
* </li>
58345842
* </ul>
58355843
* <p>Default: Any accelerator type</p>

Diff for: clients/client-ec2/src/models/models_3.ts

+5-2
Original file line numberDiff line numberDiff line change
@@ -7833,8 +7833,11 @@ export interface EventInformation {
78337833
* </li>
78347834
* <li>
78357835
* <p>
7836-
* <code>launchSpecUnusable</code> - The price in a launch specification is not
7837-
* valid because it is below the Spot price.</p>
7836+
* <code>launchSpecUnusable</code> - The price specified in a launch specification
7837+
* is not valid because it is below the Spot price for the requested Spot pools.</p>
7838+
* <p>Note: Even if a fleet with the <code>maintain</code> request type is in the process
7839+
* of being canceled, it may still publish a <code>launchSpecUnusable</code> event. This
7840+
* does not mean that the canceled fleet is attempting to launch a new instance.</p>
78387841
* </li>
78397842
* <li>
78407843
* <p>

Diff for: clients/client-ec2/src/models/models_6.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -8501,7 +8501,7 @@ export interface InstanceBlockDeviceMappingSpecification {
85018501
VirtualName?: string | undefined;
85028502

85038503
/**
8504-
* <p>suppress the specified device included in the block device mapping.</p>
8504+
* <p>Suppresses the specified device included in the block device mapping.</p>
85058505
* @public
85068506
*/
85078507
NoDevice?: string | undefined;

Diff for: clients/client-ec2/src/models/models_7.ts

+3
Original file line numberDiff line numberDiff line change
@@ -7544,6 +7544,9 @@ export interface SpotMarketOptions {
75447544
* <important>
75457545
* <p>If you specify a maximum price, your Spot Instances will be interrupted more
75467546
* frequently than if you do not specify this parameter.</p>
7547+
* <p>If you specify a maximum price, it must be more than USD $0.001. Specifying a value
7548+
* below USD $0.001 will result in an <code>InvalidParameterValue</code> error
7549+
* message.</p>
75477550
* </important>
75487551
* @public
75497552
*/

Diff for: clients/client-ec2/src/protocols/Aws_ec2.ts

+3
Original file line numberDiff line numberDiff line change
@@ -31612,6 +31612,9 @@ const se_CreateFleetRequest = (input: CreateFleetRequest, context: __SerdeContex
3161231612
if (input[_DRr] != null) {
3161331613
entries[_DRr] = input[_DRr];
3161431614
}
31615+
if (input[_CTl] === undefined) {
31616+
input[_CTl] = generateIdempotencyToken();
31617+
}
3161531618
if (input[_CTl] != null) {
3161631619
entries[_CTl] = input[_CTl];
3161731620
}

Diff for: codegen/sdk-codegen/aws-models/ec2.json

+10-9
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)