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: