Enum OnDemandAllocationStrategy
java.lang.Object
java.lang.Enum<OnDemandAllocationStrategy>
software.amazon.awscdk.services.autoscaling.OnDemandAllocationStrategy
- All Implemented Interfaces:
Serializable
,Comparable<OnDemandAllocationStrategy>
,java.lang.constant.Constable
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
date="2023-06-19T16:30:45.399Z")
@Stability(Stable)
public enum OnDemandAllocationStrategy
extends Enum<OnDemandAllocationStrategy>
Indicates how to allocate instance types to fulfill On-Demand capacity.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionThis strategy uses the order of instance types in the LaunchTemplateOverrides to define the launch priority of each instance type. -
Method Summary
Modifier and TypeMethodDescriptionstatic OnDemandAllocationStrategy
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.
-
Enum Constant Details
-
PRIORITIZED
This strategy uses the order of instance types in the LaunchTemplateOverrides to define the launch priority of each instance type.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.
-
-
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
-