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();
 
  • Method Details

    • getDisk

      @Stability(Stable) @Nullable default Size 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

      @Stability(Stable) @Nullable default InstanceType 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

      @Stability(Stable) @Nullable default MachineType 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

      @Stability(Stable) @Nullable default Size 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

      @Stability(Stable) @Nullable default Number 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

      @Stability(Stable) static ComputeConfiguration.Builder builder()
      Returns:
      a ComputeConfiguration.Builder of ComputeConfiguration