Skip to content

Commit 4d1a66b

Browse files
author
awstools
committed
feat(client-ec2): This release adds AvailabilityZoneId support for CreateFleet, ModifyFleet, DescribeFleets, RequestSpotFleet, ModifySpotFleetRequests and DescribeSpotFleetRequests APIs.
1 parent 751c797 commit 4d1a66b

File tree

13 files changed

+111
-15
lines changed

13 files changed

+111
-15
lines changed

clients/client-ec2/src/commands/CreateFleetCommand.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,7 @@ export interface CreateFleetCommandOutput extends CreateFleetResult, __MetadataB
193193
* RequireEncryptionInTransit: true || false,
194194
* },
195195
* ImageId: "STRING_VALUE",
196+
* AvailabilityZoneId: "STRING_VALUE",
196197
* },
197198
* ],
198199
* },
@@ -341,6 +342,7 @@ export interface CreateFleetCommandOutput extends CreateFleetResult, __MetadataB
341342
* // NoDevice: "STRING_VALUE",
342343
* // },
343344
* // ],
345+
* // AvailabilityZoneId: "STRING_VALUE",
344346
* // },
345347
* // },
346348
* // Lifecycle: "spot" || "on-demand",
@@ -463,6 +465,7 @@ export interface CreateFleetCommandOutput extends CreateFleetResult, __MetadataB
463465
* // NoDevice: "STRING_VALUE",
464466
* // },
465467
* // ],
468+
* // AvailabilityZoneId: "STRING_VALUE",
466469
* // },
467470
* // },
468471
* // Lifecycle: "spot" || "on-demand",

clients/client-ec2/src/commands/DescribeFleetsCommand.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,7 @@ export interface DescribeFleetsCommandOutput extends DescribeFleetsResult, __Met
187187
* // NoDevice: "STRING_VALUE",
188188
* // },
189189
* // ],
190+
* // AvailabilityZoneId: "STRING_VALUE",
190191
* // },
191192
* // ],
192193
* // },
@@ -349,6 +350,7 @@ export interface DescribeFleetsCommandOutput extends DescribeFleetsResult, __Met
349350
* // NoDevice: "STRING_VALUE",
350351
* // },
351352
* // ],
353+
* // AvailabilityZoneId: "STRING_VALUE",
352354
* // },
353355
* // },
354356
* // Lifecycle: "spot" || "on-demand",
@@ -471,6 +473,7 @@ export interface DescribeFleetsCommandOutput extends DescribeFleetsResult, __Met
471473
* // NoDevice: "STRING_VALUE",
472474
* // },
473475
* // ],
476+
* // AvailabilityZoneId: "STRING_VALUE",
474477
* // },
475478
* // },
476479
* // Lifecycle: "spot" || "on-demand",

clients/client-ec2/src/commands/DescribeSpotFleetRequestsCommand.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,7 @@ export interface DescribeSpotFleetRequestsCommandOutput extends DescribeSpotFlee
164164
* // AvailabilityZone: "STRING_VALUE",
165165
* // GroupName: "STRING_VALUE",
166166
* // Tenancy: "default" || "dedicated" || "host",
167+
* // AvailabilityZoneId: "STRING_VALUE",
167168
* // },
168169
* // RamdiskId: "STRING_VALUE",
169170
* // SpotPrice: "STRING_VALUE",
@@ -362,6 +363,7 @@ export interface DescribeSpotFleetRequestsCommandOutput extends DescribeSpotFlee
362363
* // },
363364
* // RequireEncryptionInTransit: true || false,
364365
* // },
366+
* // AvailabilityZoneId: "STRING_VALUE",
365367
* // },
366368
* // ],
367369
* // },

clients/client-ec2/src/commands/DescribeSpotInstanceRequestsCommand.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,7 @@ export interface DescribeSpotInstanceRequestsCommandOutput
177177
* // AvailabilityZone: "STRING_VALUE",
178178
* // GroupName: "STRING_VALUE",
179179
* // Tenancy: "default" || "dedicated" || "host",
180+
* // AvailabilityZoneId: "STRING_VALUE",
180181
* // },
181182
* // RamdiskId: "STRING_VALUE",
182183
* // SubnetId: "STRING_VALUE",

clients/client-ec2/src/commands/ModifyFleetCommand.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,7 @@ export interface ModifyFleetCommandOutput extends ModifyFleetResult, __MetadataB
184184
* RequireEncryptionInTransit: true || false,
185185
* },
186186
* ImageId: "STRING_VALUE",
187+
* AvailabilityZoneId: "STRING_VALUE",
187188
* },
188189
* ],
189190
* },

clients/client-ec2/src/commands/ModifySpotFleetRequestCommand.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,7 @@ export interface ModifySpotFleetRequestCommandOutput extends ModifySpotFleetRequ
155155
* },
156156
* RequireEncryptionInTransit: true || false,
157157
* },
158+
* AvailabilityZoneId: "STRING_VALUE",
158159
* },
159160
* ],
160161
* },

clients/client-ec2/src/commands/RequestSpotFleetCommand.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,7 @@ export interface RequestSpotFleetCommandOutput extends RequestSpotFleetResponse,
174174
* AvailabilityZone: "STRING_VALUE",
175175
* GroupName: "STRING_VALUE",
176176
* Tenancy: "default" || "dedicated" || "host",
177+
* AvailabilityZoneId: "STRING_VALUE",
177178
* },
178179
* RamdiskId: "STRING_VALUE",
179180
* SpotPrice: "STRING_VALUE",
@@ -372,6 +373,7 @@ export interface RequestSpotFleetCommandOutput extends RequestSpotFleetResponse,
372373
* },
373374
* RequireEncryptionInTransit: true || false,
374375
* },
376+
* AvailabilityZoneId: "STRING_VALUE",
375377
* },
376378
* ],
377379
* },

clients/client-ec2/src/commands/RequestSpotInstancesCommand.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,7 @@ export interface RequestSpotInstancesCommandOutput extends RequestSpotInstancesR
147147
* AvailabilityZone: "STRING_VALUE",
148148
* GroupName: "STRING_VALUE",
149149
* Tenancy: "default" || "dedicated" || "host",
150+
* AvailabilityZoneId: "STRING_VALUE",
150151
* },
151152
* RamdiskId: "STRING_VALUE",
152153
* SubnetId: "STRING_VALUE",
@@ -283,6 +284,7 @@ export interface RequestSpotInstancesCommandOutput extends RequestSpotInstancesR
283284
* // AvailabilityZone: "STRING_VALUE",
284285
* // GroupName: "STRING_VALUE",
285286
* // Tenancy: "default" || "dedicated" || "host",
287+
* // AvailabilityZoneId: "STRING_VALUE",
286288
* // },
287289
* // RamdiskId: "STRING_VALUE",
288290
* // SubnetId: "STRING_VALUE",

clients/client-ec2/src/models/models_1.ts

Lines changed: 25 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1451,7 +1451,10 @@ export interface FleetLaunchTemplateOverridesRequest {
14511451
SubnetId?: string | undefined;
14521452

14531453
/**
1454-
* <p>The Availability Zone in which to launch the instances.</p>
1454+
* <p>The Availability Zone in which to launch the instances. For example,
1455+
* <code>us-east-2a</code>.</p>
1456+
* <p>Either <code>AvailabilityZone</code> or <code>AvailabilityZoneId</code> must be
1457+
* specified in the request, but not both.</p>
14551458
* @public
14561459
*/
14571460
AvailabilityZone?: string | undefined;
@@ -1585,6 +1588,15 @@ export interface FleetLaunchTemplateOverridesRequest {
15851588
* @public
15861589
*/
15871590
ImageId?: string | undefined;
1591+
1592+
/**
1593+
* <p>The ID of the Availability Zone in which to launch the instances. For example,
1594+
* <code>use2-az1</code>.</p>
1595+
* <p>Either <code>AvailabilityZone</code> or <code>AvailabilityZoneId</code> must be
1596+
* specified in the request, but not both.</p>
1597+
* @public
1598+
*/
1599+
AvailabilityZoneId?: string | undefined;
15881600
}
15891601

15901602
/**
@@ -2992,7 +3004,9 @@ export interface FleetLaunchTemplateOverrides {
29923004
SubnetId?: string | undefined;
29933005

29943006
/**
2995-
* <p>The Availability Zone in which to launch the instances.</p>
3007+
* <p>The Availability Zone in which to launch the instances. For example,
3008+
* <code>us-east-2a</code>.</p>
3009+
* <p>Either <code>AvailabilityZone</code> or <code>AvailabilityZoneId</code> must be specified in the request, but not both.</p>
29963010
* @public
29973011
*/
29983012
AvailabilityZone?: string | undefined;
@@ -3126,6 +3140,15 @@ export interface FleetLaunchTemplateOverrides {
31263140
* @public
31273141
*/
31283142
BlockDeviceMappings?: BlockDeviceMappingResponse[] | undefined;
3143+
3144+
/**
3145+
* <p>The ID of the Availability Zone in which to launch the instances. For example,
3146+
* <code>use2-az1</code>.</p>
3147+
* <p>Either <code>AvailabilityZone</code> or <code>AvailabilityZoneId</code> must be
3148+
* specified in the request, but not both.</p>
3149+
* @public
3150+
*/
3151+
AvailabilityZoneId?: string | undefined;
31293152
}
31303153

31313154
/**

clients/client-ec2/src/models/models_3.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11824,7 +11824,7 @@ export interface DescribeInstancesRequest {
1182411824
* <li>
1182511825
* <p>
1182611826
* <code>requester-id</code> - The ID of the entity that launched the instance on
11827-
* your behalf (for example, Amazon Web Services Management Console, Amazon EC2 Auto Scaling, and so
11827+
* your behalf (for example, Amazon Web Services Management Console, Auto Scaling, and so
1182811828
* on).</p>
1182911829
* </li>
1183011830
* <li>

0 commit comments

Comments
 (0)