Enum FleetOverflowBehavior

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

@Generated(value="jsii-pacmak/1.113.0 (build fc68b25)", date="2025-10-14T12:28:07.278Z") @Stability(Stable) public enum FleetOverflowBehavior extends Enum<FleetOverflowBehavior>
The compute fleet overflow behavior.

Example:

 Fleet fleet = Fleet.Builder.create(this, "Fleet")
         .computeType(FleetComputeType.MEDIUM)
         .environmentType(EnvironmentType.LINUX_CONTAINER)
         .baseCapacity(1)
         .overflowBehavior(FleetOverflowBehavior.ON_DEMAND)
         .build();
 
  • Enum Constant Details

    • QUEUE

      @Stability(Stable) public static final FleetOverflowBehavior QUEUE
      Overflow builds wait for existing fleet instances to become available.
    • ON_DEMAND

      @Stability(Stable) public static final FleetOverflowBehavior ON_DEMAND
      Overflow builds run on CodeBuild on-demand instances.
  • Method Details

    • values

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