java.lang.Object
java.lang.Enum<WorkerType>
software.amazon.awscdk.services.glue.alpha.WorkerType
All Implemented Interfaces:
Serializable, Comparable<WorkerType>, java.lang.constant.Constable

@Generated(value="jsii-pacmak/1.126.0 (build 206d44b)", date="2026-02-09T14:39:22.860Z") @Stability(Experimental) public enum WorkerType extends Enum<WorkerType>
(experimental) The type of predefined worker that is allocated when a job runs.

Example:

 import software.amazon.awscdk.*;
 import software.amazon.awscdk.services.iam.*;
 Stack stack;
 IRole role;
 Code script;
 PySparkEtlJob.Builder.create(stack, "PySparkETLJob")
         .jobName("PySparkETLJobCustomName")
         .description("This is a description")
         .role(role)
         .script(script)
         .glueVersion(GlueVersion.V5_1)
         .continuousLogging(ContinuousLoggingProps.builder().enabled(false).build())
         .workerType(WorkerType.G_2X)
         .maxConcurrentRuns(100)
         .timeout(Duration.hours(2))
         .connections(List.of(Connection.fromConnectionName(stack, "Connection", "connectionName")))
         .securityConfiguration(SecurityConfiguration.fromSecurityConfigurationName(stack, "SecurityConfig", "securityConfigName"))
         .tags(Map.of(
                 "FirstTagName", "FirstTagValue",
                 "SecondTagName", "SecondTagValue",
                 "XTagName", "XTagValue"))
         .numberOfWorkers(2)
         .maxRetries(2)
         .build();
 
  • Nested Class Summary

    Nested classes/interfaces inherited from class java.lang.Enum

    Enum.EnumDesc<E extends Enum<E>>
  • Enum Constant Summary

    Enum Constants
    Enum Constant
    Description
    (experimental) G.025X Worker Type 0.25 DPU (2 vCPU, 4 GB of memory, 64 GB disk), and provides 1 executor per worker.
    (experimental) G.12X Worker Type 12 DPU (48 vCPU, 192 GB of memory, 768 GB disk), and provides 1 executor per worker.
    (experimental) G.16X Worker Type 16 DPU (64 vCPU, 256 GB of memory, 1024 GB disk), and provides 1 executor per worker.
    (experimental) G.1X Worker Type 1 DPU (4 vCPU, 16 GB of memory, 64 GB disk), and provides 1 executor per worker.
    (experimental) G.2X Worker Type 2 DPU (8 vCPU, 32 GB of memory, 128 GB disk), and provides 1 executor per worker.
    (experimental) G.4X Worker Type 4 DPU (16 vCPU, 64 GB of memory, 256 GB disk), and provides 1 executor per worker.
    (experimental) G.8X Worker Type 8 DPU (32 vCPU, 128 GB of memory, 512 GB disk), and provides 1 executor per worker.
    (experimental) R.1X Worker Type 1 M-DPU (4 vCPUs, 32 GB memory), We recommend this worker type for memory-intensive workloads that frequently encounter out-of-memory errors or require high memory-to-CPU ratios.
    (experimental) R.2X Worker Type 2 M-DPU (8 vCPUs, 64 GB memory), We recommend this worker type for memory-intensive workloads that frequently encounter out-of-memory errors or require high memory-to-CPU ratios.
    (experimental) R.4X Worker Type 4 M-DPU (16 vCPUs, 128 GB memory), We recommend this worker type for large memory-intensive workloads that frequently encounter out-of-memory errors or require high memory-to-CPU ratios.
    (experimental) R.8X Worker Type 8 M-DPU (32 vCPUs, 256 GB memory), We recommend this worker type for very large memory-intensive workloads that frequently encounter out-of-memory errors or require high memory-to-CPU ratios.
    (experimental) Standard Worker Type 4 vCPU, 16 GB of memory and a 50GB disk, and 2 executors per worker.
    (experimental) Z.2X Worker Type.
  • Method Summary

    Modifier and Type
    Method
    Description
    static WorkerType
    Returns the enum constant of this type with the specified name.
    static WorkerType[]
    Returns an array containing the constants of this enum type, in the order they are declared.

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

    • STANDARD

      @Stability(Experimental) public static final WorkerType STANDARD
      (experimental) Standard Worker Type 4 vCPU, 16 GB of memory and a 50GB disk, and 2 executors per worker.
    • G_1X

      @Stability(Experimental) public static final WorkerType G_1X
      (experimental) G.1X Worker Type 1 DPU (4 vCPU, 16 GB of memory, 64 GB disk), and provides 1 executor per worker. Suitable for memory-intensive jobs.
    • G_2X

      @Stability(Experimental) public static final WorkerType G_2X
      (experimental) G.2X Worker Type 2 DPU (8 vCPU, 32 GB of memory, 128 GB disk), and provides 1 executor per worker. Suitable for memory-intensive jobs.
    • G_4X

      @Stability(Experimental) public static final WorkerType G_4X
      (experimental) G.4X Worker Type 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_8X

      @Stability(Experimental) public static final WorkerType G_8X
      (experimental) G.8X Worker Type 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.
    • G_12X

      @Stability(Experimental) public static final WorkerType G_12X
      (experimental) G.12X Worker Type 12 DPU (48 vCPU, 192 GB of memory, 768 GB disk), and provides 1 executor per worker. We recommend this worker type for jobs with very large and resource-intensive workloads that require significant compute capacity. This worker type is available only for AWS Glue version 3.0 or later jobs.
    • G_16X

      @Stability(Experimental) public static final WorkerType G_16X
      (experimental) G.16X Worker Type 16 DPU (64 vCPU, 256 GB of memory, 1024 GB disk), and provides 1 executor per worker. We recommend this worker type for jobs with the largest and most resource-intensive workloads that require maximum compute capacity. This worker type is available only for AWS Glue version 3.0 or later jobs.
    • G_025X

      @Stability(Experimental) public static final WorkerType G_025X
      (experimental) G.025X Worker Type 0.25 DPU (2 vCPU, 4 GB of memory, 64 GB disk), and provides 1 executor per worker. Suitable for low volume streaming jobs.
    • Z_2X

      @Stability(Experimental) public static final WorkerType Z_2X
      (experimental) Z.2X Worker Type.
    • R_1X

      @Stability(Experimental) public static final WorkerType R_1X
      (experimental) R.1X Worker Type 1 M-DPU (4 vCPUs, 32 GB memory), We recommend this worker type for memory-intensive workloads that frequently encounter out-of-memory errors or require high memory-to-CPU ratios.
    • R_2X

      @Stability(Experimental) public static final WorkerType R_2X
      (experimental) R.2X Worker Type 2 M-DPU (8 vCPUs, 64 GB memory), We recommend this worker type for memory-intensive workloads that frequently encounter out-of-memory errors or require high memory-to-CPU ratios.
    • R_4X

      @Stability(Experimental) public static final WorkerType R_4X
      (experimental) R.4X Worker Type 4 M-DPU (16 vCPUs, 128 GB memory), We recommend this worker type for large memory-intensive workloads that frequently encounter out-of-memory errors or require high memory-to-CPU ratios.
    • R_8X

      @Stability(Experimental) public static final WorkerType R_8X
      (experimental) R.8X Worker Type 8 M-DPU (32 vCPUs, 256 GB memory), We recommend this worker type for very large memory-intensive workloads that frequently encounter out-of-memory errors or require high memory-to-CPU ratios.
  • Method Details

    • values

      public static WorkerType[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static WorkerType valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null