Skip to content

Commit 6331051

Browse files
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 9ae8931 commit 6331051

19 files changed

+274
-44
lines changed

generator/ServiceModels/ec2/ec2-2016-11-15.api.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11509,7 +11509,10 @@
1150911509
],
1151011510
"members":{
1151111511
"DryRun":{"shape":"Boolean"},
11512-
"ClientToken":{"shape":"String"},
11512+
"ClientToken":{
11513+
"shape":"String",
11514+
"idempotencyToken":true
11515+
},
1151311516
"SpotOptions":{"shape":"SpotOptionsRequest"},
1151411517
"OnDemandOptions":{"shape":"OnDemandOptionsRequest"},
1151511518
"ExcessCapacityTerminationPolicy":{"shape":"FleetExcessCapacityTerminationPolicy"},

generator/ServiceModels/ec2/ec2-2016-11-15.docs.json

Lines changed: 9 additions & 9 deletions
Large diffs are not rendered by default.

generator/ServiceModels/ec2/ec2-2016-11-15.normal.json

Lines changed: 10 additions & 9 deletions
Large diffs are not rendered by default.

sdk/src/Services/EC2/Generated/Model/CancelCapacityReservationRequest.cs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,12 @@ namespace Amazon.EC2.Model
4848
/// elapsed. You can't cancel a future-dated Capacity Reservation during the commitment
4949
/// duration.
5050
/// </para>
51-
/// </li> </ul>
51+
/// </li> </ul> <note>
52+
/// <para>
53+
/// 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
54+
/// Blocks for ML</a>.
55+
/// </para>
56+
/// </note>
5257
/// <para>
5358
/// If a future-dated Capacity Reservation enters the <c>delayed</c> state, the commitment
5459
/// duration is waived, and you can cancel it as soon as it enters the <c>active</c> state.

sdk/src/Services/EC2/Generated/Model/CreateFleetRequest.cs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,12 @@ public partial class CreateFleetRequest : AmazonEC2Request
6565
/// Gets and sets the property ClientToken.
6666
/// <para>
6767
/// Unique, case-sensitive identifier that you provide to ensure the idempotency of the
68-
/// request. For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html">Ensuring
68+
/// request. If you do not specify a client token, a randomly generated token is used
69+
/// for the request to ensure idempotency.
70+
/// </para>
71+
///
72+
/// <para>
73+
/// For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html">Ensuring
6974
/// idempotency</a>.
7075
/// </para>
7176
/// </summary>

sdk/src/Services/EC2/Generated/Model/DescribeCapacityBlockOfferingsRequest.cs

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,22 @@ namespace Amazon.EC2.Model
3434
/// Describes Capacity Block offerings available for purchase in the Amazon Web Services
3535
/// Region that you're currently using. With Capacity Blocks, you purchase a specific
3636
/// instance type for a period of time.
37+
///
38+
///
39+
/// <para>
40+
/// To search for an available Capacity Block offering, you specify a reservation duration
41+
/// and instance count. You must select one of the following options.
42+
/// </para>
43+
/// <ul> <li>
44+
/// <para>
45+
/// For reservation durations<b> 1-day increments up 14 days and 7-day increments up to
46+
/// 182 days total</b>
47+
/// </para>
48+
/// </li> <li>
49+
/// <para>
50+
/// For instance count<b> 1, 2, 4, 8, 16, 32, or 64 instances</b>
51+
/// </para>
52+
/// </li> </ul>
3753
/// </summary>
3854
public partial class DescribeCapacityBlockOfferingsRequest : AmazonEC2Request
3955
{

sdk/src/Services/EC2/Generated/Model/DescribeInstanceTopologyRequest.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,8 @@ namespace Amazon.EC2.Model
6969
/// </para>
7070
/// </li> <li>
7171
/// <para>
72-
/// <c>trn1.2xlarge</c> | <c>trn1.32xlarge</c> | <c>trn1n.32xlarge</c>
72+
/// <c>trn1.2xlarge</c> | <c>trn1.32xlarge</c> | <c>trn1n.32xlarge</c> | <c>trn2.48xlarge</c>
73+
/// | <c>trn2u.48xlarge</c>
7374
/// </para>
7475
/// </li> </ul> </li> </ul>
7576
/// <para>

sdk/src/Services/EC2/Generated/Model/EventInformation.cs

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,8 +176,14 @@ internal bool IsSetEventDescription()
176176
/// </para>
177177
/// </li> <li>
178178
/// <para>
179-
/// <c>launchSpecUnusable</c> - The price in a launch specification is not valid because
180-
/// it is below the Spot price.
179+
/// <c>launchSpecUnusable</c> - The price specified in a launch specification is not
180+
/// valid because it is below the Spot price for the requested Spot pools.
181+
/// </para>
182+
///
183+
/// <para>
184+
/// Note: Even if a fleet with the <c>maintain</c> request type is in the process of being
185+
/// canceled, it may still publish a <c>launchSpecUnusable</c> event. This does not mean
186+
/// that the canceled fleet is attempting to launch a new instance.
181187
/// </para>
182188
/// </li> <li>
183189
/// <para>

sdk/src/Services/EC2/Generated/Model/InstanceBlockDeviceMappingSpecification.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ internal bool IsSetEbs()
7878
/// <summary>
7979
/// Gets and sets the property NoDevice.
8080
/// <para>
81-
/// suppress the specified device included in the block device mapping.
81+
/// Suppresses the specified device included in the block device mapping.
8282
/// </para>
8383
/// </summary>
8484
public string NoDevice

sdk/src/Services/EC2/Generated/Model/InstanceRequirements.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,11 +276,15 @@ internal bool IsSetAcceleratorTotalMemoryMiB()
276276
/// </para>
277277
/// <ul> <li>
278278
/// <para>
279+
/// For instance types with FPGA accelerators, specify <c>fpga</c>.
280+
/// </para>
281+
/// </li> <li>
282+
/// <para>
279283
/// For instance types with GPU accelerators, specify <c>gpu</c>.
280284
/// </para>
281285
/// </li> <li>
282286
/// <para>
283-
/// For instance types with FPGA accelerators, specify <c>fpga</c>.
287+
/// For instance types with Inference accelerators, specify <c>inference</c>.
284288
/// </para>
285289
/// </li> </ul>
286290
/// <para>

0 commit comments

Comments
 (0)