Enum AllocationStrategy

java.lang.Object
java.lang.Enum<AllocationStrategy>
software.amazon.awscdk.services.batch.AllocationStrategy
All Implemented Interfaces:
Serializable, Comparable<AllocationStrategy>, java.lang.constant.Constable

@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)", date="2023-06-19T16:30:47.508Z") @Stability(Experimental) public enum AllocationStrategy extends Enum<AllocationStrategy>
(experimental) Properties for how to prepare compute resources that are provisioned for a compute environment.
  • Nested Class Summary

    Nested classes/interfaces inherited from class java.lang.Enum

    Enum.EnumDesc<E extends Enum<E>>
  • Enum Constant Summary

    Enum Constants
    Enum Constant
    Description
    (experimental) Batch will use the best fitting instance type will be used when assigning a batch job in this compute environment.
    (experimental) Batch will select additional instance types that are large enough to meet the requirements of the jobs in the queue, with a preference for instance types with a lower cost per unit vCPU.
    (experimental) This is only available for Spot Instance compute resources and will select additional instance types that are large enough to meet the requirements of the jobs in the queue, with a preference for instance types that are less likely to be interrupted.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the enum constant of this type with the specified name.
    Returns an array containing the constants of this enum type, in the order they are declared.

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

    • BEST_FIT

      @Stability(Experimental) public static final AllocationStrategy BEST_FIT
      (experimental) Batch will use the best fitting instance type will be used when assigning a batch job in this compute environment.
    • BEST_FIT_PROGRESSIVE

      @Stability(Experimental) public static final AllocationStrategy BEST_FIT_PROGRESSIVE
      (experimental) Batch will select additional instance types that are large enough to meet the requirements of the jobs in the queue, with a preference for instance types with a lower cost per unit vCPU.
    • SPOT_CAPACITY_OPTIMIZED

      @Stability(Experimental) public static final AllocationStrategy SPOT_CAPACITY_OPTIMIZED
      (experimental) This is only available for Spot Instance compute resources and will select additional instance types that are large enough to meet the requirements of the jobs in the queue, with a preference for instance types that are less likely to be interrupted.
  • Method Details

    • values

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