Enum EmrCreateCluster.SpotTimeoutAction
java.lang.Object
java.lang.Enum<EmrCreateCluster.SpotTimeoutAction>
software.amazon.awscdk.services.stepfunctions.tasks.EmrCreateCluster.SpotTimeoutAction
- All Implemented Interfaces:
Serializable
,Comparable<EmrCreateCluster.SpotTimeoutAction>
,java.lang.constant.Constable
- Enclosing class:
EmrCreateCluster
@Stability(Stable)
public static enum EmrCreateCluster.SpotTimeoutAction
extends Enum<EmrCreateCluster.SpotTimeoutAction>
Spot Timeout Actions.
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();
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionSWITCH_TO_ON_DEMAND.TERMINATE_CLUSTER. -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this type with the specified name.static EmrCreateCluster.SpotTimeoutAction[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
SWITCH_TO_ON_DEMAND
SWITCH_TO_ON_DEMAND. -
TERMINATE_CLUSTER
TERMINATE_CLUSTER.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-