Interface ComputeConfiguration
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
ComputeConfiguration.Jsii$Proxy
@Generated(value="jsii-pacmak/1.113.0 (build fc68b25)",
date="2025-10-14T12:28:07.261Z")
@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 class
A builder forComputeConfiguration
static final class
An implementation forComputeConfiguration
-
Method Summary
Modifier and TypeMethodDescriptionstatic ComputeConfiguration.Builder
builder()
default Size
getDisk()
When using ATTRIBUTE_BASED, the amount of disk space of the instance type included in your fleet.default InstanceType
When using CUSTOM_INSTANCE_TYPE, the EC2 instance type to use for fleet instances.default MachineType
When using ATTRIBUTE_BASED, the machine type of the instance type included in your fleet.default Size
When using ATTRIBUTE_BASED, the amount of memory of the instance type included in your fleet.default Number
getVCpu()
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.Builder
ofComputeConfiguration
-