Interface EmrCreateCluster.OnDemandProvisioningSpecificationProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
EmrCreateCluster.OnDemandProvisioningSpecificationProperty.Jsii$Proxy
- Enclosing class:
EmrCreateCluster
@Stability(Stable)
public static interface EmrCreateCluster.OnDemandProvisioningSpecificationProperty
extends software.amazon.jsii.JsiiSerializable
The launch specification for On-Demand Instances in the instance fleet, which determines the allocation strategy.
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.OnDemandProvisioningSpecificationProperty
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
Specifies the strategy to use in launching On-Demand instance fleets.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getAllocationStrategy
Specifies the strategy to use in launching On-Demand instance fleets.Currently, the only option is lowest-price (the default), which launches the lowest price first.
-
builder
@Stability(Stable) static EmrCreateCluster.OnDemandProvisioningSpecificationProperty.Builder builder()
-