Enum AwsFleetSpotAllocationStrategy
java.lang.Object
java.lang.Enum<AwsFleetSpotAllocationStrategy>
co.yellowdog.platform.model.AwsFleetSpotAllocationStrategy
- All Implemented Interfaces:
Serializable
,Comparable<AwsFleetSpotAllocationStrategy>
,java.lang.constant.Constable
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAWS EC2 Fleet will launch instances from Spot instance pools with optimal capacity for the number of instances that are launching.AWS EC2 Fleet will launch instances optimizing for capacity first, but honor priority based on the order of the instanceOverrides in the AwsFleetComputeSource on a best-effort basis.AWS EC2 Fleet will launch Spot instances distributed across all Spot capacity pools.AWS EC2 Fleet will launch instances from the Spot instance pools with the lowest price. -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this type with the specified name.static AwsFleetSpotAllocationStrategy[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
LOWEST_PRICE
AWS EC2 Fleet will launch instances from the Spot instance pools with the lowest price. This is the default strategy. -
DIVERSIFIED
AWS EC2 Fleet will launch Spot instances distributed across all Spot capacity pools. -
CAPACITY_OPTIMIZED
AWS EC2 Fleet will launch instances from Spot instance pools with optimal capacity for the number of instances that are launching. -
CAPACITY_OPTIMIZED_ORDER_PRIORITIZED
AWS EC2 Fleet will launch instances optimizing for capacity first, but honor priority based on the order of the instanceOverrides in the AwsFleetComputeSource on a best-effort basis.
-
-
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
-