@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:36.816Z") @Stability(value=Stable) public enum OnDemandAllocationStrategy extends Enum<OnDemandAllocationStrategy>
| Enum Constant and Description |
|---|
PRIORITIZED
This strategy uses the order of instance types in the LaunchTemplateOverrides to define the launch priority of each instance type.
|
| Modifier and Type | Method and Description |
|---|---|
static OnDemandAllocationStrategy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static OnDemandAllocationStrategy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
@Stability(value=Stable) public static final OnDemandAllocationStrategy PRIORITIZED
The first instance type in the array is prioritized higher than the last. If all your On-Demand capacity cannot be fulfilled using your highest priority instance, then the Auto Scaling group launches the remaining capacity using the second priority instance type, and so on.
public static OnDemandAllocationStrategy[] values()
for (OnDemandAllocationStrategy c : OnDemandAllocationStrategy.values()) System.out.println(c);
public static OnDemandAllocationStrategy 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.