Skip to content
v2.274.0

ComputeConfigurationProperty Struct ​

Contains compute attributes.

These attributes only need be specified when your project's or fleet's computeType is set to ATTRIBUTE_BASED_COMPUTE or CUSTOM_INSTANCE_TYPE .

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_codebuild as codebuild } from 'aws-cdk-lib';
const computeConfigurationProperty: codebuild.CfnFleet.ComputeConfigurationProperty = {
  disk: 123,
  instanceType: 'instanceType',
  machineType: 'machineType',
  memory: 123,
  vCpu: 123,
};

Properties ​

disknumberdiskint | floatdiskNumberDiskdoubleDisk*float64#
The amount of disk space of the instance type included in your fleet.
instanceTypestringinstance_typestrinstanceTypeStringInstanceTypestringInstanceType*string#
The EC2 instance type to be launched in your fleet.
machineTypestringmachine_typestrmachineTypeStringMachineTypestringMachineType*string#
The machine type of the instance type included in your fleet.
memorynumbermemoryint | floatmemoryNumberMemorydoubleMemory*float64#
The amount of memory of the instance type included in your fleet.
vCpunumberv_cpuint | floatvCpuNumberVCpudoubleVCpu*float64#
The number of vCPUs of the instance type included in your fleet.