# WorkerConfigurationProperty

The configuration of a worker.

For more information, see [Supported worker configurations](https://docs.aws.amazon.com/emr/latest/EMR-Serverless-UserGuide/app-behavior.html#worker-configs) .

- Source: Generated at build time
- Type last changed: v2.148.0 · 5 Jul 2024

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_emrserverless as emrserverless } from 'aws-cdk-lib';
const workerConfigurationProperty: emrserverless.CfnApplication.WorkerConfigurationProperty = {
  cpu: 'cpu',
  memory: 'memory',

  // the properties below are optional
  disk: 'disk',
  diskType: 'diskType',
};
```

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_emrserverless as emrserverless

worker_configuration_property = emrserverless.CfnApplication.WorkerConfigurationProperty(
    cpu="cpu",
    memory="memory",

    # the properties below are optional
    disk="disk",
    disk_type="diskType"
)
```

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.emrserverless.*;

WorkerConfigurationProperty workerConfigurationProperty = WorkerConfigurationProperty.builder()
        .cpu("cpu")
        .memory("memory")

        // the properties below are optional
        .disk("disk")
        .diskType("diskType")
        .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.EMRServerless;

var workerConfigurationProperty = new WorkerConfigurationProperty {
    Cpu = "cpu",
    Memory = "memory",

    // the properties below are optional
    Disk = "disk",
    DiskType = "diskType"
};
```

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"

workerConfigurationProperty := &WorkerConfigurationProperty{
	Cpu: jsii.String("cpu"),
	Memory: jsii.String("memory"),

	// the properties below are optional
	Disk: jsii.String("disk"),
	DiskType: jsii.String("diskType"),
}
```

## Properties

- `cpu`: string (required) — The CPU requirements of the worker configuration.

  Each worker can have 1, 2, 4, 8, or 16 vCPUs.

- `disk`: string — The disk requirements of the worker configuration.

- `diskType`: string — The disk type for every worker instance of the work type.

  Shuffle optimized disks have higher performance characteristics and are better for shuffle heavy workloads. Default is `STANDARD` .

- `memory`: string (required) — The memory requirements of the worker configuration.
