@Stability(value=Stable) public static enum EmrCreateCluster.SpotAllocationStrategy extends Enum<EmrCreateCluster.SpotAllocationStrategy>
Specifies the strategy to use in launching Spot Instance fleets. For example, "capacity-optimized" launches instances from Spot Instance pools with optimal capacity for the number of instances that are launching.
| Enum Constant and Description |
|---|
CAPACITY_OPTIMIZED
Capacity-optimized, which launches instances from Spot Instance pools with optimal capacity for the number of instances that are launching.
|
| Modifier and Type | Method and Description |
|---|---|
static EmrCreateCluster.SpotAllocationStrategy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static EmrCreateCluster.SpotAllocationStrategy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
@Stability(value=Stable) public static final EmrCreateCluster.SpotAllocationStrategy CAPACITY_OPTIMIZED
public static EmrCreateCluster.SpotAllocationStrategy[] values()
for (EmrCreateCluster.SpotAllocationStrategy c : EmrCreateCluster.SpotAllocationStrategy.values()) System.out.println(c);
public static EmrCreateCluster.SpotAllocationStrategy valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullCopyright © 2022. All rights reserved.