interface FleetProps
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.CodeBuild.FleetProps |
![]() | github.com/aws/aws-cdk-go/awscdk/v2/awscodebuild#FleetProps |
![]() | software.amazon.awscdk.services.codebuild.FleetProps |
![]() | aws_cdk.aws_codebuild.FleetProps |
![]() | aws-cdk-lib » aws_codebuild » FleetProps |
Construction properties of a CodeBuild {@link Fleet}.
Example
const fleet = new codebuild.Fleet(this, 'Fleet', {
computeType: codebuild.FleetComputeType.MEDIUM,
environmentType: codebuild.EnvironmentType.LINUX_CONTAINER,
baseCapacity: 1,
});
new codebuild.Project(this, 'Project', {
environment: {
fleet,
buildImage: codebuild.LinuxBuildImage.STANDARD_7_0,
},
// ...
})
Properties
Name | Type | Description |
---|---|---|
base | number | The number of machines allocated to the compute fleet. Defines the number of builds that can run in parallel. |
compute | Fleet | The instance type of the compute fleet. |
environment | Environment | The build environment (operating system/architecture/accelerator) type made available to projects using this fleet. |
compute | Compute | The compute configuration of the compute fleet. |
fleet | string | The name of the Fleet. |
baseCapacity
Type:
number
The number of machines allocated to the compute fleet. Defines the number of builds that can run in parallel.
Minimum value of 1.
computeType
Type:
Fleet
The instance type of the compute fleet.
environmentType
Type:
Environment
The build environment (operating system/architecture/accelerator) type made available to projects using this fleet.
computeConfiguration?
Type:
Compute
(optional, default: do not specify compute configuration)
The compute configuration of the compute fleet.
This is only required if computeType
is set to ATTRIBUTE_BASED.
fleetName?
Type:
string
(optional, default: CloudFormation generated name)
The name of the Fleet.