@Generated(value="jsii-pacmak/1.74.0 (build 6d08790)",
date="2023-03-14T16:25:31.371Z")
public class WorkerType
extends software.amazon.jsii.JsiiObject
If you need to use a WorkerType that doesn't exist as a static member, you
can instantiate a WorkerType
object, e.g: WorkerType.of('other type')
.
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import software.amazon.awscdk.services.glue.*; WorkerType workerType = WorkerType.G_1X;
Modifier and Type | Field and Description |
---|---|
static WorkerType |
G_1_X
(experimental) Each worker maps to 1 DPU (4 vCPU, 16 GB of memory, 64 GB disk), and provides 1 executor per worker.
|
static WorkerType |
G_2_X
(experimental) Each worker maps to 2 DPU (8 vCPU, 32 GB of memory, 128 GB disk), and provides 1 executor per worker.
|
static WorkerType |
STANDARD
(experimental) Each worker provides 4 vCPU, 16 GB of memory and a 50GB disk, and 2 executors per worker.
|
Modifier | Constructor and Description |
---|---|
protected |
WorkerType(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
WorkerType(software.amazon.jsii.JsiiObjectRef objRef) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getName()
(experimental) The name of this WorkerType, as expected by Job resource.
|
static WorkerType |
of(java.lang.String workerType)
(experimental) Custom worker type.
|
public static final WorkerType G_1_X
Suitable for memory-intensive jobs.
public static final WorkerType G_2_X
Suitable for memory-intensive jobs.
public static final WorkerType STANDARD
protected WorkerType(software.amazon.jsii.JsiiObjectRef objRef)
protected WorkerType(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
public static WorkerType of(java.lang.String workerType)
workerType
- custom worker type. This parameter is required.public java.lang.String getName()