PythonVersion

class aws_cdk.aws_glue.PythonVersion(value)

Bases: Enum

(experimental) Python version.

Stability:

experimental

ExampleMetadata:

infused

Example:

glue.Job(self, "PythonSparkStreamingJob",
    executable=glue.JobExecutable.python_streaming(
        glue_version=glue.GlueVersion.V2_0,
        python_version=glue.PythonVersion.THREE,
        script=glue.Code.from_asset(path.join(__dirname, "job-script/hello_world.py"))
    ),
    description="an example Python Streaming job"
)

Attributes

THREE

(experimental) Python 3 (the exact version depends on GlueVersion and JobCommand used).

Stability:

experimental

TWO

(experimental) Python 2 (the exact version depends on GlueVersion and JobCommand used).

Stability:

experimental