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: