WorkerType

class aws_cdk.aws_glue_alpha.WorkerType(*args: Any, **kwargs)

Bases: object

(experimental) The type of predefined worker that is allocated when a job runs.

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').

Stability:

experimental

ExampleMetadata:

infused

Example:

# bucket: s3.Bucket

glue.Job(self, "ScalaSparkEtlJob",
    executable=glue.JobExecutable.scala_etl(
        glue_version=glue.GlueVersion.V4_0,
        script=glue.Code.from_bucket(bucket, "src/com/example/HelloWorld.scala"),
        class_name="com.example.HelloWorld",
        extra_jars=[glue.Code.from_bucket(bucket, "jars/HelloWorld.jar")]
    ),
    worker_type=glue.WorkerType.G_8X,
    description="an example Scala ETL job"
)

Attributes

G_025_X = <aws_cdk.aws_glue_alpha.WorkerType object>
G_1_X = <aws_cdk.aws_glue_alpha.WorkerType object>
G_2_X = <aws_cdk.aws_glue_alpha.WorkerType object>
G_4_X = <aws_cdk.aws_glue_alpha.WorkerType object>
G_8_X = <aws_cdk.aws_glue_alpha.WorkerType object>
STANDARD = <aws_cdk.aws_glue_alpha.WorkerType object>
Z_2_X = <aws_cdk.aws_glue_alpha.WorkerType object>
name

(experimental) The name of this WorkerType, as expected by Job resource.

Stability:

experimental

Static Methods

classmethod of(worker_type)

(experimental) Custom worker type.

Parameters:

worker_type (str) – custom worker type.

Stability:

experimental

Return type:

WorkerType