Interface CfnInstanceFleetConfig.OnDemandProvisioningSpecificationProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnInstanceFleetConfig.OnDemandProvisioningSpecificationProperty.Jsii$Proxy
- Enclosing class:
CfnInstanceFleetConfig
@Stability(Stable)
public static interface CfnInstanceFleetConfig.OnDemandProvisioningSpecificationProperty
extends software.amazon.jsii.JsiiSerializable
The launch specification for On-Demand Instances in the instance fleet, which determines the allocation strategy.
The instance fleet configuration is available only in Amazon EMR releases 4.8.0 and later, excluding 5.0.x versions. On-Demand Instances allocation strategy is available in Amazon EMR releases 5.12.1 and later.
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.*;
OnDemandProvisioningSpecificationProperty onDemandProvisioningSpecificationProperty = OnDemandProvisioningSpecificationProperty.builder()
.allocationStrategy("allocationStrategy")
// the properties below are optional
.capacityReservationOptions(OnDemandCapacityReservationOptionsProperty.builder()
.capacityReservationPreference("capacityReservationPreference")
.capacityReservationResourceGroupArn("capacityReservationResourceGroupArn")
.usageStrategy("usageStrategy")
.build())
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classstatic final classAn implementation forCfnInstanceFleetConfig.OnDemandProvisioningSpecificationProperty -
Method Summary
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getAllocationStrategy
Specifies the strategy to use in launching On-Demand instance fleets.Available options are
lowest-priceandprioritized.lowest-pricespecifies to launch the instances with the lowest price first, andprioritizedspecifies that Amazon EMR should launch the instances with the highest priority first. The default islowest-price.- See Also:
-
getCapacityReservationOptions
The launch specification for On-Demand instances in the instance fleet, which determines the allocation strategy.- See Also:
-
builder
@Stability(Stable) static CfnInstanceFleetConfig.OnDemandProvisioningSpecificationProperty.Builder builder()
-