@@ -332,8 +332,7 @@ export interface SpotProvisioningSpecification {
332
332
}
333
333
334
334
/**
335
- * <p>The launch specification for Spot Instances in the fleet, which determines the defined
336
- * duration, provisioning timeout behavior, and allocation strategy.</p>
335
+ * <p>The launch specification for On-Demand and Spot Instances in the fleet.</p>
337
336
* <note>
338
337
* <p>The instance fleet configuration is available only in Amazon EMR releases
339
338
* 4.8.0 and later, excluding 5.0.x versions. On-Demand and Spot instance allocation
@@ -343,15 +342,15 @@ export interface SpotProvisioningSpecification {
343
342
*/
344
343
export interface InstanceFleetProvisioningSpecifications {
345
344
/**
346
- * <p>The launch specification for Spot instances in the fleet, which determines the defined
347
- * duration, provisioning timeout behavior, and allocation strategy .</p>
345
+ * <p>The launch specification for Spot instances in the fleet, which determines the allocation strategy, defined
346
+ * duration, and provisioning timeout behavior.</p>
348
347
* @public
349
348
*/
350
349
SpotSpecification ?: SpotProvisioningSpecification ;
351
350
352
351
/**
353
352
* <p> The launch specification for On-Demand Instances in the instance fleet, which
354
- * determines the allocation strategy. </p>
353
+ * determines the allocation strategy and capacity reservation options. </p>
355
354
* <note>
356
355
* <p>The instance fleet configuration is available only in Amazon EMR releases
357
356
* 4.8.0 and later, excluding 5.0.x versions. On-Demand Instances allocation strategy is
@@ -377,7 +376,20 @@ export interface OnDemandResizingSpecification {
377
376
* Amazon EMR SDK ModifyInstanceFleet API) or by Amazon EMR due to Amazon EC2 Spot Reclamation.</p>
378
377
* @public
379
378
*/
380
- TimeoutDurationMinutes : number | undefined ;
379
+ TimeoutDurationMinutes ?: number ;
380
+
381
+ /**
382
+ * <p>Specifies the allocation strategy to use to launch On-Demand instances during a resize. The default is <code>lowest-price</code>.</p>
383
+ * @public
384
+ */
385
+ AllocationStrategy ?: OnDemandProvisioningAllocationStrategy ;
386
+
387
+ /**
388
+ * <p>Describes the strategy for using unused Capacity Reservations for fulfilling On-Demand
389
+ * capacity.</p>
390
+ * @public
391
+ */
392
+ CapacityReservationOptions ?: OnDemandCapacityReservationOptions ;
381
393
}
382
394
383
395
/**
@@ -395,7 +407,15 @@ export interface SpotResizingSpecification {
395
407
* modify-instance-fleet or Amazon EMR SDK ModifyInstanceFleet API) or by Amazon EMR due to Amazon EC2 Spot Reclamation.</p>
396
408
* @public
397
409
*/
398
- TimeoutDurationMinutes : number | undefined ;
410
+ TimeoutDurationMinutes ?: number ;
411
+
412
+ /**
413
+ * <p>Specifies the allocation strategy to use to launch Spot instances during a resize. If you run Amazon EMR releases 6.9.0 or higher,
414
+ * the default is <code>price-capacity-optimized</code>. If you run Amazon EMR releases 6.8.0 or lower, the default is
415
+ * <code>capacity-optimized</code>.</p>
416
+ * @public
417
+ */
418
+ AllocationStrategy ?: SpotProvisioningAllocationStrategy ;
399
419
}
400
420
401
421
/**
@@ -405,14 +425,14 @@ export interface SpotResizingSpecification {
405
425
export interface InstanceFleetResizingSpecifications {
406
426
/**
407
427
* <p>The resize specification for Spot Instances in the instance fleet, which contains the
408
- * resize timeout period. </p>
428
+ * allocation strategy and the resize timeout period. </p>
409
429
* @public
410
430
*/
411
431
SpotResizeSpecification ?: SpotResizingSpecification ;
412
432
413
433
/**
414
434
* <p>The resize specification for On-Demand Instances in the instance fleet, which contains
415
- * the resize timeout period. </p>
435
+ * the allocation strategy, capacity reservation options, and the resize timeout period. </p>
416
436
* @public
417
437
*/
418
438
OnDemandResizeSpecification ?: OnDemandResizingSpecification ;
@@ -5446,59 +5466,6 @@ export interface ModifyClusterOutput {
5446
5466
StepConcurrencyLevel ?: number ;
5447
5467
}
5448
5468
5449
- /**
5450
- * <p>Configuration parameters for an instance fleet modification request.</p>
5451
- * <note>
5452
- * <p>The instance fleet configuration is available only in Amazon EMR releases
5453
- * 4.8.0 and later, excluding 5.0.x versions.</p>
5454
- * </note>
5455
- * @public
5456
- */
5457
- export interface InstanceFleetModifyConfig {
5458
- /**
5459
- * <p>A unique identifier for the instance fleet.</p>
5460
- * @public
5461
- */
5462
- InstanceFleetId : string | undefined ;
5463
-
5464
- /**
5465
- * <p>The target capacity of On-Demand units for the instance fleet. For more information see
5466
- * <a>InstanceFleetConfig$TargetOnDemandCapacity</a>.</p>
5467
- * @public
5468
- */
5469
- TargetOnDemandCapacity ?: number ;
5470
-
5471
- /**
5472
- * <p>The target capacity of Spot units for the instance fleet. For more information, see
5473
- * <a>InstanceFleetConfig$TargetSpotCapacity</a>.</p>
5474
- * @public
5475
- */
5476
- TargetSpotCapacity ?: number ;
5477
-
5478
- /**
5479
- * <p>The resize specification for the instance fleet.</p>
5480
- * @public
5481
- */
5482
- ResizeSpecifications ?: InstanceFleetResizingSpecifications ;
5483
- }
5484
-
5485
- /**
5486
- * @public
5487
- */
5488
- export interface ModifyInstanceFleetInput {
5489
- /**
5490
- * <p>The unique identifier of the cluster.</p>
5491
- * @public
5492
- */
5493
- ClusterId : string | undefined ;
5494
-
5495
- /**
5496
- * <p>The configuration parameters of the instance fleet.</p>
5497
- * @public
5498
- */
5499
- InstanceFleet : InstanceFleetModifyConfig | undefined ;
5500
- }
5501
-
5502
5469
/**
5503
5470
* @public
5504
5471
* @enum
@@ -6981,6 +6948,49 @@ export interface InstanceFleetConfig {
6981
6948
ResizeSpecifications ?: InstanceFleetResizingSpecifications ;
6982
6949
}
6983
6950
6951
+ /**
6952
+ * <p>Configuration parameters for an instance fleet modification request.</p>
6953
+ * <note>
6954
+ * <p>The instance fleet configuration is available only in Amazon EMR releases
6955
+ * 4.8.0 and later, excluding 5.0.x versions.</p>
6956
+ * </note>
6957
+ * @public
6958
+ */
6959
+ export interface InstanceFleetModifyConfig {
6960
+ /**
6961
+ * <p>A unique identifier for the instance fleet.</p>
6962
+ * @public
6963
+ */
6964
+ InstanceFleetId : string | undefined ;
6965
+
6966
+ /**
6967
+ * <p>The target capacity of On-Demand units for the instance fleet. For more information see
6968
+ * <a>InstanceFleetConfig$TargetOnDemandCapacity</a>.</p>
6969
+ * @public
6970
+ */
6971
+ TargetOnDemandCapacity ?: number ;
6972
+
6973
+ /**
6974
+ * <p>The target capacity of Spot units for the instance fleet. For more information, see
6975
+ * <a>InstanceFleetConfig$TargetSpotCapacity</a>.</p>
6976
+ * @public
6977
+ */
6978
+ TargetSpotCapacity ?: number ;
6979
+
6980
+ /**
6981
+ * <p>The resize specification for the instance fleet.</p>
6982
+ * @public
6983
+ */
6984
+ ResizeSpecifications ?: InstanceFleetResizingSpecifications ;
6985
+
6986
+ /**
6987
+ * <p>An array of InstanceTypeConfig objects that specify how Amazon EMR provisions Amazon EC2 instances
6988
+ * when it fulfills On-Demand and Spot capacities. For more information, see <a href="https://docs.aws.amazon.com/emr/latest/APIReference/API_InstanceTypeConfig.html">InstanceTypeConfig</a>.</p>
6989
+ * @public
6990
+ */
6991
+ InstanceTypeConfigs ?: InstanceTypeConfig [ ] ;
6992
+ }
6993
+
6984
6994
/**
6985
6995
* <p>Change the size of some instance groups.</p>
6986
6996
* @public
@@ -7146,6 +7156,23 @@ export interface InstanceGroup {
7146
7156
CustomAmiId ?: string ;
7147
7157
}
7148
7158
7159
+ /**
7160
+ * @public
7161
+ */
7162
+ export interface ModifyInstanceFleetInput {
7163
+ /**
7164
+ * <p>The unique identifier of the cluster.</p>
7165
+ * @public
7166
+ */
7167
+ ClusterId : string | undefined ;
7168
+
7169
+ /**
7170
+ * <p>The configuration parameters of the instance fleet.</p>
7171
+ * @public
7172
+ */
7173
+ InstanceFleet : InstanceFleetModifyConfig | undefined ;
7174
+ }
7175
+
7149
7176
/**
7150
7177
* @public
7151
7178
*/
0 commit comments