Interface ComputeConfiguration
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
ComputeConfiguration.Jsii$Proxy
@Generated(value="jsii-pacmak/1.119.0 (build 1634eac)",
date="2025-11-17T14:40:47.503Z")
@Stability(Stable)
public interface ComputeConfiguration
extends software.amazon.jsii.JsiiSerializable
The compute configuration for the fleet.
Example:
import software.amazon.awscdk.Size;
Fleet fleet = Fleet.Builder.create(this, "MyFleet")
.baseCapacity(1)
.computeType(FleetComputeType.ATTRIBUTE_BASED)
.environmentType(EnvironmentType.LINUX_CONTAINER)
.computeConfiguration(ComputeConfiguration.builder()
.vCpu(2)
.memory(Size.gibibytes(4))
.disk(Size.gibibytes(10))
.machineType(MachineType.GENERAL)
.build())
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forComputeConfigurationstatic final classAn implementation forComputeConfiguration -
Method Summary
Modifier and TypeMethodDescriptionstatic ComputeConfiguration.Builderbuilder()default SizegetDisk()When using ATTRIBUTE_BASED, the amount of disk space of the instance type included in your fleet.default InstanceTypeWhen using CUSTOM_INSTANCE_TYPE, the EC2 instance type to use for fleet instances.default MachineTypeWhen using ATTRIBUTE_BASED, the machine type of the instance type included in your fleet.default SizeWhen using ATTRIBUTE_BASED, the amount of memory of the instance type included in your fleet.default NumbergetVCpu()When using ATTRIBUTE_BASED, the number of vCPUs of the instance type included in your fleet.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getDisk
When using ATTRIBUTE_BASED, the amount of disk space of the instance type included in your fleet.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
-
getInstanceType
When using CUSTOM_INSTANCE_TYPE, the EC2 instance type to use for fleet instances.Not all instance types are supported by CodeBuild. If you use a disallowed type, the CloudFormation deployment will fail.
Default: none
- See Also:
-
getMachineType
When using ATTRIBUTE_BASED, the machine type of the instance type included in your fleet.Default: - No requirement, the actual value will be based on the other selected configuration properties
-
getMemory
When using ATTRIBUTE_BASED, the amount of memory of the instance type included in your fleet.Default: - No requirement, the actual value will be based on the other selected configuration properties
-
getVCpu
When using ATTRIBUTE_BASED, the number of vCPUs of the instance type included in your fleet.Default: - No requirement, the actual value will be based on the other selected configuration properties
-
builder
- Returns:
- a
ComputeConfiguration.BuilderofComputeConfiguration
-