Interface CfnInstanceFleetConfig.InstanceFleetProvisioningSpecificationsProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnInstanceFleetConfig.InstanceFleetProvisioningSpecificationsProperty.Jsii$Proxy
- Enclosing class:
CfnInstanceFleetConfig
@Stability(Stable)
public static interface CfnInstanceFleetConfig.InstanceFleetProvisioningSpecificationsProperty
extends software.amazon.jsii.JsiiSerializable
The instance fleet configuration is available only in Amazon EMR versions 4.8.0 and later, excluding 5.0.x versions.
InstanceTypeConfig
is a sub-property of InstanceFleetConfig
. InstanceTypeConfig
determines the EC2 instances that Amazon EMR attempts to provision to fulfill On-Demand and Spot target capacities.
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.*; InstanceFleetProvisioningSpecificationsProperty instanceFleetProvisioningSpecificationsProperty = InstanceFleetProvisioningSpecificationsProperty.builder() .onDemandSpecification(OnDemandProvisioningSpecificationProperty.builder() .allocationStrategy("allocationStrategy") // the properties below are optional .capacityReservationOptions(OnDemandCapacityReservationOptionsProperty.builder() .capacityReservationPreference("capacityReservationPreference") .capacityReservationResourceGroupArn("capacityReservationResourceGroupArn") .usageStrategy("usageStrategy") .build()) .build()) .spotSpecification(SpotProvisioningSpecificationProperty.builder() .timeoutAction("timeoutAction") .timeoutDurationMinutes(123) // the properties below are optional .allocationStrategy("allocationStrategy") .blockDurationMinutes(123) .build()) .build();
- See Also:
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
static final class
An implementation forCfnInstanceFleetConfig.InstanceFleetProvisioningSpecificationsProperty
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
default Object
The launch specification for On-Demand Instances in the instance fleet, which determines the allocation strategy and capacity reservation options.default Object
The launch specification for Spot instances in the fleet, which determines the allocation strategy, defined duration, and provisioning timeout behavior.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getOnDemandSpecification
The launch specification for On-Demand Instances in the instance fleet, which determines the allocation strategy and capacity reservation options.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.
- See Also:
-
getSpotSpecification
The launch specification for Spot instances in the fleet, which determines the allocation strategy, defined duration, and provisioning timeout behavior.- See Also:
-
builder
@Stability(Stable) static CfnInstanceFleetConfig.InstanceFleetProvisioningSpecificationsProperty.Builder builder()
-