Show / Hide Table of Contents

Class ComputeConfiguration

The compute configuration for the fleet.

Inheritance
object
ComputeConfiguration
Implements
IComputeConfiguration
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: Amazon.CDK.AWS.CodeBuild
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class ComputeConfiguration : IComputeConfiguration
Syntax (vb)
Public Class ComputeConfiguration Implements IComputeConfiguration
Remarks

ExampleMetadata: infused

Examples
using Amazon.CDK;


            var fleet = new Fleet(this, "MyFleet", new FleetProps {
                BaseCapacity = 1,
                ComputeType = FleetComputeType.ATTRIBUTE_BASED,
                EnvironmentType = EnvironmentType.LINUX_CONTAINER,
                ComputeConfiguration = new ComputeConfiguration {
                    VCpu = 2,
                    Memory = Size.Gibibytes(4),
                    Disk = Size.Gibibytes(10),
                    MachineType = MachineType.GENERAL
                }
            });

Synopsis

Constructors

ComputeConfiguration()

The compute configuration for the fleet.

Properties

Disk

When using ATTRIBUTE_BASED, the amount of disk space of the instance type included in your fleet.

InstanceType

When using CUSTOM_INSTANCE_TYPE, the EC2 instance type to use for fleet instances.

MachineType

When using ATTRIBUTE_BASED, the machine type of the instance type included in your fleet.

Memory

When using ATTRIBUTE_BASED, the amount of memory of the instance type included in your fleet.

VCpu

When using ATTRIBUTE_BASED, the number of vCPUs of the instance type included in your fleet.

Constructors

ComputeConfiguration()

The compute configuration for the fleet.

public ComputeConfiguration()
Remarks

ExampleMetadata: infused

Examples
using Amazon.CDK;


            var fleet = new Fleet(this, "MyFleet", new FleetProps {
                BaseCapacity = 1,
                ComputeType = FleetComputeType.ATTRIBUTE_BASED,
                EnvironmentType = EnvironmentType.LINUX_CONTAINER,
                ComputeConfiguration = new ComputeConfiguration {
                    VCpu = 2,
                    Memory = Size.Gibibytes(4),
                    Disk = Size.Gibibytes(10),
                    MachineType = MachineType.GENERAL
                }
            });

Properties

Disk

When using ATTRIBUTE_BASED, the amount of disk space of the instance type included in your fleet.

public Size? Disk { get; set; }
Property Value

Size

Remarks

When using CUSTOM_INSTANCE_TYPE, the additional amount of disk space to provision over the 64GB included by default.

Default: - No requirement, the actual value will be based on the other selected configuration properties

InstanceType

When using CUSTOM_INSTANCE_TYPE, the EC2 instance type to use for fleet instances.

public InstanceType? InstanceType { get; set; }
Property Value

InstanceType

Remarks

Not all instance types are supported by CodeBuild. If you use a disallowed type, the CloudFormation deployment will fail.

Default: none

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

MachineType

When using ATTRIBUTE_BASED, the machine type of the instance type included in your fleet.

public MachineType? MachineType { get; set; }
Property Value

MachineType?

Remarks

Default: - No requirement, the actual value will be based on the other selected configuration properties

Memory

When using ATTRIBUTE_BASED, the amount of memory of the instance type included in your fleet.

public Size? Memory { get; set; }
Property Value

Size

Remarks

Default: - No requirement, the actual value will be based on the other selected configuration properties

VCpu

When using ATTRIBUTE_BASED, the number of vCPUs of the instance type included in your fleet.

public double? VCpu { get; set; }
Property Value

double?

Remarks

Default: - No requirement, the actual value will be based on the other selected configuration properties

Implements

IComputeConfiguration
Back to top Generated by DocFX