Enum FleetComputeType

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

@Generated(value="jsii-pacmak/1.103.1 (build bef2dea)", date="2024-09-19T18:11:57.385Z") @Stability(Stable) public enum FleetComputeType extends Enum<FleetComputeType>
Fleet build machine compute type. Subset of Fleet compatible ComputeType values.

The allocated memory, vCPU count and disk space of the build machine for a given compute type are dependent on the environment type. Some compute types may also not be available for all environment types.

Example:

 Fleet fleet = Fleet.Builder.create(this, "Fleet")
         .computeType(FleetComputeType.MEDIUM)
         .environmentType(EnvironmentType.LINUX_CONTAINER)
         .baseCapacity(1)
         .build();
 Project.Builder.create(this, "Project")
         .environment(BuildEnvironment.builder()
                 .fleet(fleet)
                 .buildImage(LinuxBuildImage.STANDARD_7_0)
                 .build())
         .build();
 

See Also:
  • Enum Constant Details

    • SMALL

      @Stability(Stable) public static final FleetComputeType SMALL
      Small compute type.

      May not be available for all environment types, see

      invalid @link
      {@link https://docs.aws.amazon.com/codebuild/latest/userguide/build-env-ref-compute-types.html#environment.types
      docs} for more information.
    • MEDIUM

      @Stability(Stable) public static final FleetComputeType MEDIUM
      Medium compute type.

      May not be available for all environment types, see

      invalid @link
      {@link https://docs.aws.amazon.com/codebuild/latest/userguide/build-env-ref-compute-types.html#environment.types
      docs} for more information.
    • LARGE

      @Stability(Stable) public static final FleetComputeType LARGE
      Large compute type.
    • X_LARGE

      @Stability(Stable) public static final FleetComputeType X_LARGE
      Extra Large compute type.

      May not be available for all environment types, see

      invalid @link
      {@link https://docs.aws.amazon.com/codebuild/latest/userguide/build-env-ref-compute-types.html#environment.types
      docs} for more information.
    • X2_LARGE

      @Stability(Stable) public static final FleetComputeType X2_LARGE
      Extra, Extra Large compute type.

      May not be available for all environment types, see

      invalid @link
      {@link https://docs.aws.amazon.com/codebuild/latest/userguide/build-env-ref-compute-types.html#environment.types
      docs} for more information.
  • Method Details

    • values

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