Skip to content
v2.274.0

MachineType Enum ​

The compute type of the fleet.

Example ​

ts
import { Size } from 'aws-cdk-lib';

const fleet = new codebuild.Fleet(this, 'MyFleet', {
  baseCapacity: 1,
  computeType: codebuild.FleetComputeType.ATTRIBUTE_BASED,
  environmentType: codebuild.EnvironmentType.LINUX_CONTAINER,
  computeConfiguration: {
    vCpu: 2,
    memory: Size.gibibytes(4),
    disk: Size.gibibytes(10),
    machineType: codebuild.MachineType.GENERAL,
  },
});

Members ​

MemberDescription
GENERALGeneral purpose compute type.
NVMENon-Volatile Memory Express (NVMe) storage optimized compute type.

Referenced by ​