Class CfnClusterPropsMixin.OnDemandResizingSpecificationProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.emr.CfnClusterPropsMixin.OnDemandResizingSpecificationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnClusterPropsMixin.OnDemandResizingSpecificationProperty>
- Enclosing interface:
CfnClusterPropsMixin.OnDemandResizingSpecificationProperty
@Stability(Stable)
public static final class CfnClusterPropsMixin.OnDemandResizingSpecificationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnClusterPropsMixin.OnDemandResizingSpecificationProperty>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionallocationStrategy(String allocationStrategy) build()Builds the configured instance.capacityReservationOptions(CfnClusterPropsMixin.OnDemandCapacityReservationOptionsProperty capacityReservationOptions) capacityReservationOptions(IResolvable capacityReservationOptions) timeoutDurationMinutes(Number timeoutDurationMinutes)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
allocationStrategy
@Stability(Stable) public CfnClusterPropsMixin.OnDemandResizingSpecificationProperty.Builder allocationStrategy(String allocationStrategy) Sets the value ofCfnClusterPropsMixin.OnDemandResizingSpecificationProperty.getAllocationStrategy()- Parameters:
allocationStrategy- Specifies the allocation strategy to use to launch On-Demand instances during a resize. The default islowest-price.- Returns:
this
-
capacityReservationOptions
@Stability(Stable) public CfnClusterPropsMixin.OnDemandResizingSpecificationProperty.Builder capacityReservationOptions(IResolvable capacityReservationOptions) Sets the value ofCfnClusterPropsMixin.OnDemandResizingSpecificationProperty.getCapacityReservationOptions()- Parameters:
capacityReservationOptions- the value to be set.- Returns:
this
-
capacityReservationOptions
@Stability(Stable) public CfnClusterPropsMixin.OnDemandResizingSpecificationProperty.Builder capacityReservationOptions(CfnClusterPropsMixin.OnDemandCapacityReservationOptionsProperty capacityReservationOptions) Sets the value ofCfnClusterPropsMixin.OnDemandResizingSpecificationProperty.getCapacityReservationOptions()- Parameters:
capacityReservationOptions- the value to be set.- Returns:
this
-
timeoutDurationMinutes
@Stability(Stable) public CfnClusterPropsMixin.OnDemandResizingSpecificationProperty.Builder timeoutDurationMinutes(Number timeoutDurationMinutes) Sets the value ofCfnClusterPropsMixin.OnDemandResizingSpecificationProperty.getTimeoutDurationMinutes()- Parameters:
timeoutDurationMinutes- 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.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnClusterPropsMixin.OnDemandResizingSpecificationProperty>- Returns:
- a new instance of
CfnClusterPropsMixin.OnDemandResizingSpecificationProperty - Throws:
NullPointerException- if any required attribute was not provided
-