FleetComputeType

class aws_cdk.aws_codebuild.FleetComputeType(*values)

Bases: 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.

See:

https://docs.aws.amazon.com/codebuild/latest/userguide/build-env-ref-compute-types.html#environment.types

ExampleMetadata:

infused

Example:

from aws_cdk import Size


fleet = codebuild.Fleet(self, "MyFleet",
    base_capacity=1,
    compute_type=codebuild.FleetComputeType.CUSTOM_INSTANCE_TYPE,
    environment_type=codebuild.EnvironmentType.LINUX_CONTAINER,
    compute_configuration=codebuild.ComputeConfiguration(
        instance_type=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)
    )
)

Attributes

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.

See:

https://docs.aws.amazon.com/codebuild/latest/userguide/build-env-ref-compute-types.html#environment-reserved-capacity.types

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.

See:

https://docs.aws.amazon.com/codebuild/latest/userguide/build-env-ref-compute-types.html#environment-reserved-capacity.instance-types

LARGE

Large compute type.

MEDIUM

Medium compute type.

May not be available for all environment types.

See:

https://docs.aws.amazon.com/codebuild/latest/userguide/build-env-ref-compute-types.html#environment.types

SMALL

Small compute type.

May not be available for all environment types.

See:

https://docs.aws.amazon.com/codebuild/latest/userguide/build-env-ref-compute-types.html#environment.types

X2_LARGE

Extra, Extra Large compute type.

May not be available for all environment types.

See:

https://docs.aws.amazon.com/codebuild/latest/userguide/build-env-ref-compute-types.html#environment.types

X_LARGE

Extra Large compute type.

May not be available for all environment types.

See:

https://docs.aws.amazon.com/codebuild/latest/userguide/build-env-ref-compute-types.html#environment.types