Skip to content
v2.278.0

WorkerConfigurationProperty Struct ​

The configuration of a worker.

For more information, see Supported worker configurations .

Example ​

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
# 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
// 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();
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"
};
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 ​

cpustringcpustrcpuStringCpustringCpu*string required #
The CPU requirements of the worker configuration.

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

diskoptionalstringdiskoptionalstrdiskoptionalStringDiskoptionalstringDiskoptional*string #
The disk requirements of the worker configuration.
diskTypeoptionalstringdisk_typeoptionalstrdiskTypeoptionalStringDiskTypeoptionalstringDiskTypeoptional*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 .

memorystringmemorystrmemoryStringMemorystringMemory*string required #
The memory requirements of the worker configuration.