Class ComputeConfiguration
The compute configuration for the fleet.
Implements
Inherited Members
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
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
Remarks
Not all instance types are supported by CodeBuild. If you use a disallowed type, the CloudFormation deployment will fail.
Default: none
MachineType
When using ATTRIBUTE_BASED, the machine type of the instance type included in your fleet.
public MachineType? MachineType { get; set; }
Property Value
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
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
Remarks
Default: - No requirement, the actual value will be based on the other selected configuration properties