Skip to content
v2.277.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,
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_codebuild as codebuild

compute_configuration_property = codebuild.CfnFleet.ComputeConfigurationProperty(
    disk=123,
    instance_type="instanceType",
    machine_type="machineType",
    memory=123,
    v_cpu=123
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.codebuild.*;

ComputeConfigurationProperty computeConfigurationProperty = ComputeConfigurationProperty.builder()
        .disk(123)
        .instanceType("instanceType")
        .machineType("machineType")
        .memory(123)
        .vCpu(123)
        .build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.CodeBuild;

var computeConfigurationProperty = new ComputeConfigurationProperty {
    Disk = 123,
    InstanceType = "instanceType",
    MachineType = "machineType",
    Memory = 123,
    VCpu = 123
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

computeConfigurationProperty := &ComputeConfigurationProperty{
	Disk: jsii.Number(123),
	InstanceType: jsii.String("instanceType"),
	MachineType: jsii.String("machineType"),
	Memory: jsii.Number(123),
	VCpu: jsii.Number(123),
}

Properties ​

diskoptionalnumberdiskoptionalint | floatdiskoptionalNumberDiskoptionaldoubleDiskoptional*float64 #
The amount of disk space of the instance type included in your fleet.
instanceTypeoptionalstringinstance_typeoptionalstrinstanceTypeoptionalStringInstanceTypeoptionalstringInstanceTypeoptional*string #
The EC2 instance type to be launched in your fleet.
machineTypeoptionalstringmachine_typeoptionalstrmachineTypeoptionalStringMachineTypeoptionalstringMachineTypeoptional*string #
The machine type of the instance type included in your fleet.
memoryoptionalnumbermemoryoptionalint | floatmemoryoptionalNumberMemoryoptionaldoubleMemoryoptional*float64 #
The amount of memory of the instance type included in your fleet.
vCpuoptionalnumberv_cpuoptionalint | floatvCpuoptionalNumberVCpuoptionaldoubleVCpuoptional*float64 #
The number of vCPUs of the instance type included in your fleet.