GlueVersion

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

Bases: object

(experimental) AWS Glue version determines the versions of Apache Spark and Python that are available to the job.

See:

https://docs.aws.amazon.com/glue/latest/dg/add-job.html.

If you need to use a GlueVersion that doesn’t exist as a static member, you can instantiate a GlueVersion object, e.g: GlueVersion.of('1.5'). :stability: experimental :exampleMetadata: infused

Example:

glue.Job(self, "EnableSparkUI",
    job_name="EtlJobWithSparkUIPrefix",
    spark_uI=glue.SparkUIProps(
        enabled=True
    ),
    executable=glue.JobExecutable.python_etl(
        glue_version=glue.GlueVersion.V3_0,
        python_version=glue.PythonVersion.THREE,
        script=glue.Code.from_asset(path.join(__dirname, "job-script", "hello_world.py"))
    )
)

Attributes

V0_9 = <aws_cdk.aws_glue_alpha.GlueVersion object>
V1_0 = <aws_cdk.aws_glue_alpha.GlueVersion object>
V2_0 = <aws_cdk.aws_glue_alpha.GlueVersion object>
V3_0 = <aws_cdk.aws_glue_alpha.GlueVersion object>
V4_0 = <aws_cdk.aws_glue_alpha.GlueVersion object>
name

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

Stability:

experimental

Static Methods

classmethod of(version)

(experimental) Custom Glue version.

Parameters:

version (str) – custom version.

Stability:

experimental

Return type:

GlueVersion