Interface CfnClusterPropsMixin.InstanceFleetProvisioningSpecificationsProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnClusterPropsMixin.InstanceFleetProvisioningSpecificationsProperty.Jsii$Proxy
- Enclosing class:
CfnClusterPropsMixin
InstanceFleetProvisioningSpecification is a subproperty of InstanceFleetConfig .
InstanceFleetProvisioningSpecification defines the launch specification for Spot instances in an instance fleet, which determines the defined duration and provisioning timeout behavior for Spot instances.
The instance fleet configuration is available only in Amazon EMR versions 4.8.0 and later, excluding 5.0.x versions.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.cfnpropertymixins.services.emr.*;
InstanceFleetProvisioningSpecificationsProperty instanceFleetProvisioningSpecificationsProperty = InstanceFleetProvisioningSpecificationsProperty.builder()
.onDemandSpecification(OnDemandProvisioningSpecificationProperty.builder()
.allocationStrategy("allocationStrategy")
.capacityReservationOptions(OnDemandCapacityReservationOptionsProperty.builder()
.capacityReservationPreference("capacityReservationPreference")
.capacityReservationResourceGroupArn("capacityReservationResourceGroupArn")
.usageStrategy("usageStrategy")
.build())
.build())
.spotSpecification(SpotProvisioningSpecificationProperty.builder()
.allocationStrategy("allocationStrategy")
.blockDurationMinutes(123)
.timeoutAction("timeoutAction")
.timeoutDurationMinutes(123)
.build())
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classstatic final classAn implementation forCfnClusterPropsMixin.InstanceFleetProvisioningSpecificationsProperty -
Method Summary
Modifier and TypeMethodDescriptionbuilder()default ObjectThe launch specification for On-Demand Instances in the instance fleet, which determines the allocation strategy and capacity reservation options.default ObjectThe 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.
Returns union: either
IResolvableorCfnClusterPropsMixin.OnDemandProvisioningSpecificationProperty- See Also:
-
getSpotSpecification
The launch specification for Spot instances in the fleet, which determines the allocation strategy, defined duration, and provisioning timeout behavior.Returns union: either
IResolvableorCfnClusterPropsMixin.SpotProvisioningSpecificationProperty- See Also:
-
builder
@Stability(Stable) static CfnClusterPropsMixin.InstanceFleetProvisioningSpecificationsProperty.Builder builder()
-