Enum AwsFleetSpotAllocationStrategy

java.lang.Object
java.lang.Enum<AwsFleetSpotAllocationStrategy>
co.yellowdog.platform.model.AwsFleetSpotAllocationStrategy
All Implemented Interfaces:
Serializable, Comparable<AwsFleetSpotAllocationStrategy>, java.lang.constant.Constable

public enum AwsFleetSpotAllocationStrategy extends Enum<AwsFleetSpotAllocationStrategy>
  • Enum Constant Details

    • LOWEST_PRICE

      public static final AwsFleetSpotAllocationStrategy LOWEST_PRICE
      AWS EC2 Fleet will launch instances from the Spot instance pools with the lowest price. This is the default strategy.
    • DIVERSIFIED

      public static final AwsFleetSpotAllocationStrategy DIVERSIFIED
      AWS EC2 Fleet will launch Spot instances distributed across all Spot capacity pools.
    • CAPACITY_OPTIMIZED

      public static final AwsFleetSpotAllocationStrategy 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

      public static final AwsFleetSpotAllocationStrategy 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

      public static AwsFleetSpotAllocationStrategy[] 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

      public static AwsFleetSpotAllocationStrategy valueOf(String name)
      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 name
      NullPointerException - if the argument is null