interface ComputeConfiguration
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.CodeBuild.ComputeConfiguration |
![]() | github.com/aws/aws-cdk-go/awscdk/v2/awscodebuild#ComputeConfiguration |
![]() | software.amazon.awscdk.services.codebuild.ComputeConfiguration |
![]() | aws_cdk.aws_codebuild.ComputeConfiguration |
![]() | aws-cdk-lib » aws_codebuild » ComputeConfiguration |
The compute configuration for the fleet.
Example
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,
},
});
Properties
Name | Type | Description |
---|---|---|
disk? | Size | When using ATTRIBUTE_BASED, the amount of disk space of the instance type included in your fleet. |
instance | Instance | When using CUSTOM_INSTANCE_TYPE, the EC2 instance type to use for fleet instances. |
machine | Machine | When using ATTRIBUTE_BASED, the machine type of the instance type included in your fleet. |
memory? | Size | When using ATTRIBUTE_BASED, the amount of memory of the instance type included in your fleet. |
v | number | When using ATTRIBUTE_BASED, the number of vCPUs of the instance type included in your fleet. |
disk?
Type:
Size
(optional, default: No requirement, the actual value will be based on the other selected configuration properties)
When using ATTRIBUTE_BASED, the amount of disk space of the instance type included in your fleet.
When using CUSTOM_INSTANCE_TYPE, the additional amount of disk space to provision over the 64GB included by default.
instanceType?
Type:
Instance
(optional, default: none)
When using CUSTOM_INSTANCE_TYPE, the EC2 instance type to use for fleet instances.
Not all instance types are supported by CodeBuild. If you use a disallowed type, the CloudFormation deployment will fail.
machineType?
Type:
Machine
(optional, default: No requirement, the actual value will be based on the other selected configuration properties)
When using ATTRIBUTE_BASED, the machine type of the instance type included in your fleet.
memory?
Type:
Size
(optional, default: No requirement, the actual value will be based on the other selected configuration properties)
When using ATTRIBUTE_BASED, the amount of memory of the instance type included in your fleet.
vCpu?
Type:
number
(optional, default: No requirement, the actual value will be based on the other selected configuration properties)
When using ATTRIBUTE_BASED, the number of vCPUs of the instance type included in your fleet.