Interface CfnCluster.OnDemandResizingSpecificationProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnCluster.OnDemandResizingSpecificationProperty.Jsii$Proxy
- Enclosing class:
CfnCluster
@Stability(Stable)
public static interface CfnCluster.OnDemandResizingSpecificationProperty
extends software.amazon.jsii.JsiiSerializable
The resize specification for On-Demand Instances in the instance fleet, which contains the resize timeout period.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.emr.*;
OnDemandResizingSpecificationProperty onDemandResizingSpecificationProperty = OnDemandResizingSpecificationProperty.builder()
.allocationStrategy("allocationStrategy")
.capacityReservationOptions(OnDemandCapacityReservationOptionsProperty.builder()
.capacityReservationPreference("capacityReservationPreference")
.capacityReservationResourceGroupArn("capacityReservationResourceGroupArn")
.usageStrategy("usageStrategy")
.build())
.timeoutDurationMinutes(123)
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnCluster.OnDemandResizingSpecificationPropertystatic final classAn implementation forCfnCluster.OnDemandResizingSpecificationProperty -
Method Summary
Modifier and TypeMethodDescriptionbuilder()default StringSpecifies the allocation strategy to use to launch On-Demand instances during a resize.default ObjectReturns union: eitherIResolvableorCfnCluster.OnDemandCapacityReservationOptionsPropertydefault NumberOn-Demand resize timeout in minutes.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getAllocationStrategy
Specifies the allocation strategy to use to launch On-Demand instances during a resize.The default is
lowest-price.- See Also:
-
getCapacityReservationOptions
Returns union: eitherIResolvableorCfnCluster.OnDemandCapacityReservationOptionsProperty- See Also:
-
getTimeoutDurationMinutes
On-Demand resize timeout in minutes.If On-Demand Instances are not provisioned within this time, the resize workflow stops. The minimum value is 5 minutes, and the maximum value is 10,080 minutes (7 days). The timeout applies to all resize workflows on the Instance Fleet. The resize could be triggered by Amazon EMR Managed Scaling or by the customer (via Amazon EMR Console, Amazon EMR CLI modify-instance-fleet or Amazon EMR SDK ModifyInstanceFleet API) or by Amazon EMR due to Amazon EC2 Spot Reclamation.
- See Also:
-
builder
-