Enum MachineType

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

@Generated(value="jsii-pacmak/1.127.0 (build 2117ad5)", date="2026-03-11T13:19:40.572Z") @Stability(Stable) public enum MachineType extends Enum<MachineType>
The compute type of the fleet.

Example:

 import software.amazon.awscdk.Size;
 Fleet fleet = Fleet.Builder.create(this, "MyFleet")
         .baseCapacity(1)
         .computeType(FleetComputeType.ATTRIBUTE_BASED)
         .environmentType(EnvironmentType.LINUX_CONTAINER)
         .computeConfiguration(ComputeConfiguration.builder()
                 .vCpu(2)
                 .memory(Size.gibibytes(4))
                 .disk(Size.gibibytes(10))
                 .machineType(MachineType.GENERAL)
                 .build())
         .build();
 
  • Enum Constant Details

    • GENERAL

      @Stability(Stable) public static final MachineType GENERAL
      General purpose compute type.
    • NVME

      @Stability(Stable) public static final MachineType NVME
      Non-Volatile Memory Express (NVMe) storage optimized compute type.
  • Method Details

    • values

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