Interface IComputeConfiguration
The compute configuration for the fleet.
Namespace: Amazon.CDK.AWS.CodeBuild
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface IComputeConfiguration
Syntax (vb)
Public Interface 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
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. |
Properties
Disk
When using ATTRIBUTE_BASED, the amount of disk space of the instance type included in your fleet.
Size? Disk { get; }
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.
InstanceType? InstanceType { get; }
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.
MachineType? MachineType { get; }
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.
Size? Memory { get; }
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.
double? VCpu { get; }
Property Value
Remarks
Default: - No requirement, the actual value will be based on the other selected configuration properties