Skip to content
v2.274.0

FleetComputeType Enum ​

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 ​

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

const fleet = new codebuild.Fleet(this, 'MyFleet', {
  baseCapacity: 1,
  computeType: codebuild.FleetComputeType.CUSTOM_INSTANCE_TYPE,
  environmentType: codebuild.EnvironmentType.LINUX_CONTAINER,
  computeConfiguration: {
    instanceType: ec2.InstanceType.of(ec2.InstanceClass.T3, ec2.InstanceSize.MEDIUM),
    // By default, 64 GiB of disk space is included. Any value optionally
    // specified here is _incremental_ on top of the included disk space.
    disk: Size.gibibytes(10),
  },
});

Members ​

MemberDescription
SMALLSmall compute type.
MEDIUMMedium compute type.
LARGELarge compute type.
X_LARGEExtra Large compute type.
X2_LARGEExtra, Extra Large compute type.
ATTRIBUTE_BASEDSpecify the amount of vCPUs, memory, disk space, and the type of machine.
CUSTOM_INSTANCE_TYPESpecify a specific EC2 instance type to use for compute.

Referenced by ​

  • Fleet.computeTypecompute_typecomputeTypeComputeTypeComputeType
  • FleetProps.computeTypecompute_typecomputeTypeComputeTypeComputeType
  • IFleet.computeTypecompute_typecomputeTypeComputeTypeComputeType