@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:36.820Z") @Stability(value=Stable) public enum SpotAllocationStrategy extends Enum<SpotAllocationStrategy>
| Enum Constant and Description |
|---|
CAPACITY_OPTIMIZED
The Auto Scaling group launches instances using Spot pools that are optimally chosen based on the available Spot capacity.
|
CAPACITY_OPTIMIZED_PRIORITIZED
When you use this strategy, you need to set the order of instance types in the list of launch template overrides from highest to lowest priority (from first to last in the list).
|
LOWEST_PRICE
The Auto Scaling group launches instances using the Spot pools with the lowest price, and evenly allocates your instances across the number of Spot pools that you specify.
|
| Modifier and Type | Method and Description |
|---|---|
static SpotAllocationStrategy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SpotAllocationStrategy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
@Stability(value=Stable) public static final SpotAllocationStrategy LOWEST_PRICE
@Stability(value=Stable) public static final SpotAllocationStrategy CAPACITY_OPTIMIZED
Recommended.
@Stability(value=Stable) public static final SpotAllocationStrategy CAPACITY_OPTIMIZED_PRIORITIZED
Amazon EC2 Auto Scaling honors the instance type priorities on a best-effort basis but optimizes for capacity first.
public static SpotAllocationStrategy[] values()
for (SpotAllocationStrategy c : SpotAllocationStrategy.values()) System.out.println(c);
public static 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.