@Generated(value="jsii-pacmak/1.74.0 (build 6d08790)", date="2023-03-28T21:34:27.231Z") public enum OnDemandAllocationStrategy extends java.lang.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(java.lang.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.
|
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(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null