FleetProps

class aws_cdk.aws_codebuild.FleetProps(*, base_capacity, compute_type, environment_type, fleet_name=None)

Bases: object

Construction properties of a CodeBuild {@link Fleet}.

Parameters:
  • base_capacity (Union[int, float]) – The number of machines allocated to the compute fleet. Defines the number of builds that can run in parallel. Minimum value of 1.

  • compute_type (FleetComputeType) – The instance type of the compute fleet.

  • environment_type (EnvironmentType) – The build environment (operating system/architecture/accelerator) type made available to projects using this fleet.

  • fleet_name (Optional[str]) – The name of the Fleet. Default: - CloudFormation generated name

ExampleMetadata:

infused

Example:

fleet = codebuild.Fleet(self, "Fleet",
    compute_type=codebuild.FleetComputeType.MEDIUM,
    environment_type=codebuild.EnvironmentType.LINUX_CONTAINER,
    base_capacity=1
)

codebuild.Project(self, "Project",
    environment=codebuild.BuildEnvironment(
        fleet=fleet,
        build_image=codebuild.LinuxBuildImage.STANDARD_7_0
    )
)

Attributes

base_capacity

The number of machines allocated to the compute fleet. Defines the number of builds that can run in parallel.

Minimum value of 1.

compute_type

The instance type of the compute fleet.

See:

https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_codebuild.ComputeType.html

environment_type

The build environment (operating system/architecture/accelerator) type made available to projects using this fleet.

fleet_name

The name of the Fleet.

Default:
  • CloudFormation generated name