enum FleetComputeType
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.CodeBuild.FleetComputeType |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awscodebuild#FleetComputeType |
Java | software.amazon.awscdk.services.codebuild.FleetComputeType |
Python | aws_cdk.aws_codebuild.FleetComputeType |
TypeScript (source) | aws-cdk-lib » aws_codebuild » 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
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
| Name | Description |
|---|---|
| SMALL | Small compute type. |
| MEDIUM | Medium compute type. |
| LARGE | Large compute type. |
| X_LARGE | Extra Large compute type. |
| X2_LARGE | Extra, Extra Large compute type. |
| ATTRIBUTE_BASED | Specify the amount of vCPUs, memory, disk space, and the type of machine. |
| CUSTOM_INSTANCE_TYPE | Specify a specific EC2 instance type to use for compute. |
SMALL
Small compute type.
May not be available for all environment types.
MEDIUM
Medium compute type.
May not be available for all environment types.
LARGE
Large compute type.
X_LARGE
Extra Large compute type.
May not be available for all environment types.
X2_LARGE
Extra, Extra Large compute type.
May not be available for all environment types.
ATTRIBUTE_BASED
Specify the amount of vCPUs, memory, disk space, and the type of machine.
AWS CodeBuild will select the cheapest instance that satisfies your specified attributes from computeConfiguration.
CUSTOM_INSTANCE_TYPE
Specify a specific EC2 instance type to use for compute.
You must set instanceType on computeConfiguration, and optionally set a
disk size if the provided 64GB is insufficient.

.NET
Go
Java
Python
TypeScript (