# ComputeConfigurationProperty

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` .

- Source: Generated at build time
- Type last changed: v2.197.0 · 21 May 2025

## Example

TypeScript:

```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:

```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:

```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();
```

C# / .NET:

```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
};
```

Golang:

```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

- `disk`: number — The amount of disk space of the instance type included in your fleet.

- `instanceType`: string — The EC2 instance type to be launched in your fleet.

- `machineType`: string — The machine type of the instance type included in your fleet.

- `memory`: number — The amount of memory of the instance type included in your fleet.

- `vCpu`: number — The number of vCPUs of the instance type included in your fleet.
