Class WorkerTypeV2
java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.stepfunctions.tasks.WorkerTypeV2
- All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable
@Generated(value="jsii-pacmak/1.110.0 (build 336b265)",
date="2025-04-22T23:08:21.882Z")
@Stability(Stable)
public class WorkerTypeV2
extends software.amazon.jsii.JsiiObject
The type of predefined worker that is allocated when a job runs.
If you need to use a WorkerTypeV2 that doesn't exist as a static member, you
can instantiate a WorkerTypeV2 object, e.g: WorkerTypeV2.of('other type').
Example:
GlueStartJobRun.Builder.create(this, "Task")
.glueJobName("my-glue-job")
.workerConfiguration(WorkerConfigurationProperty.builder()
.workerTypeV2(WorkerTypeV2.G_1X) // Worker type
.numberOfWorkers(2)
.build())
.build();
-
Nested Class Summary
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final WorkerTypeV2Each worker maps to 0.25 DPU (2 vCPU, 4 GB of memory, 64 GB disk), and provides 1 executor per worker.static final WorkerTypeV2Each worker maps to 1 DPU (4 vCPU, 16 GB of memory, 64 GB disk), and provides 1 executor per worker.static final WorkerTypeV2Each worker maps to 2 DPU (8 vCPU, 32 GB of memory, 128 GB disk), and provides 1 executor per worker.static final WorkerTypeV2Each worker maps to 4 DPU (16 vCPU, 64 GB of memory, 256 GB disk), and provides 1 executor per worker.static final WorkerTypeV2Each worker maps to 8 DPU (32 vCPU, 128 GB of memory, 512 GB disk), and provides 1 executor per worker.static final WorkerTypeV2Each worker provides 4 vCPU, 16 GB of memory and a 50GB disk, and 2 executors per worker.static final WorkerTypeV2Each worker maps to 2 high-memory DPU [M-DPU] (8 vCPU, 64 GB of memory, 128 GB disk). -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedWorkerTypeV2(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedWorkerTypeV2(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptiongetName()The name of this WorkerType, as expected by Job resource.static WorkerTypeV2Custom worker type.Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
G_025_X
Each worker maps to 0.25 DPU (2 vCPU, 4 GB of memory, 64 GB disk), and provides 1 executor per worker. Suitable for low volume streaming jobs. -
G_1_X
Each worker maps to 1 DPU (4 vCPU, 16 GB of memory, 64 GB disk), and provides 1 executor per worker.Suitable for memory-intensive jobs.
-
G_2_X
Each worker maps to 2 DPU (8 vCPU, 32 GB of memory, 128 GB disk), and provides 1 executor per worker.Suitable for memory-intensive jobs.
-
G_4_X
Each worker maps to 4 DPU (16 vCPU, 64 GB of memory, 256 GB disk), and provides 1 executor per worker.We recommend this worker type for jobs whose workloads contain your most demanding transforms, aggregations, joins, and queries. This worker type is available only for AWS Glue version 3.0 or later jobs.
-
G_8_X
Each worker maps to 8 DPU (32 vCPU, 128 GB of memory, 512 GB disk), and provides 1 executor per worker.We recommend this worker type for jobs whose workloads contain your most demanding transforms, aggregations, joins, and queries. This worker type is available only for AWS Glue version 3.0 or later jobs.
-
STANDARD
Each worker provides 4 vCPU, 16 GB of memory and a 50GB disk, and 2 executors per worker. -
Z_2_X
Each worker maps to 2 high-memory DPU [M-DPU] (8 vCPU, 64 GB of memory, 128 GB disk).Supported in Ray jobs.
-
-
Constructor Details
-
WorkerTypeV2
protected WorkerTypeV2(software.amazon.jsii.JsiiObjectRef objRef) -
WorkerTypeV2
protected WorkerTypeV2(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
-
-
Method Details
-
of
Custom worker type.- Parameters:
workerType- custom worker type. This parameter is required.
-
getName
The name of this WorkerType, as expected by Job resource.
-