Interface EmrCreateCluster.InstanceFleetProvisioningSpecificationsProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
EmrCreateCluster.InstanceFleetProvisioningSpecificationsProperty.Jsii$Proxy
- Enclosing class:
EmrCreateCluster
@Stability(Stable)
public static interface EmrCreateCluster.InstanceFleetProvisioningSpecificationsProperty
extends software.amazon.jsii.JsiiSerializable
The launch specification for On-Demand and Spot instances in the fleet, which determines the defined duration and provisioning timeout behavior, and 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 and Spot instance allocation strategies are available in Amazon EMR releases 5.12.1 and later.
Example:
EmrCreateCluster.Builder.create(this, "OnDemandSpecification") .instances(InstancesConfigProperty.builder() .instanceFleets(List.of(InstanceFleetConfigProperty.builder() .instanceFleetType(EmrCreateCluster.getInstanceRoleType().MASTER) .launchSpecifications(InstanceFleetProvisioningSpecificationsProperty.builder() .onDemandSpecification(OnDemandProvisioningSpecificationProperty.builder() .allocationStrategy(EmrCreateCluster.getOnDemandAllocationStrategy().LOWEST_PRICE) .build()) .build()) .build())) .build()) .name("OnDemandCluster") .integrationPattern(IntegrationPattern.RUN_JOB) .build(); EmrCreateCluster.Builder.create(this, "SpotSpecification") .instances(InstancesConfigProperty.builder() .instanceFleets(List.of(InstanceFleetConfigProperty.builder() .instanceFleetType(EmrCreateCluster.getInstanceRoleType().MASTER) .launchSpecifications(InstanceFleetProvisioningSpecificationsProperty.builder() .spotSpecification(SpotProvisioningSpecificationProperty.builder() .allocationStrategy(EmrCreateCluster.getSpotAllocationStrategy().CAPACITY_OPTIMIZED) .timeoutAction(EmrCreateCluster.getSpotTimeoutAction().TERMINATE_CLUSTER) .timeout(Duration.minutes(5)) .build()) .build()) .build())) .build()) .name("SpotCluster") .integrationPattern(IntegrationPattern.RUN_JOB) .build();
- See Also:
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
static final class
An implementation forEmrCreateCluster.InstanceFleetProvisioningSpecificationsProperty
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
The launch specification for On-Demand Instances in the instance fleet, which determines the allocation strategy.The launch specification for Spot instances in the fleet, which determines the defined duration and provisioning timeout behavior.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getOnDemandSpecification
@Stability(Stable) @Nullable default EmrCreateCluster.OnDemandProvisioningSpecificationProperty getOnDemandSpecification()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.
Default: - no on-demand specification
-
getSpotSpecification
@Stability(Stable) @Nullable default EmrCreateCluster.SpotProvisioningSpecificationProperty getSpotSpecification()The launch specification for Spot instances in the fleet, which determines the defined duration and provisioning timeout behavior.Default: - no spot specification
-
builder
@Stability(Stable) static EmrCreateCluster.InstanceFleetProvisioningSpecificationsProperty.Builder builder()
-