PythonVersion
- class aws_cdk.aws_glue_alpha.PythonVersion(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)
Bases:
Enum
(experimental) Python version.
- Stability:
experimental
- ExampleMetadata:
infused
Example:
import aws_cdk as cdk import aws_cdk.aws_iam as iam # stack: cdk.Stack # role: iam.IRole # script: glue.Code glue.PythonShellJob(stack, "PythonShellJob", job_name="PythonShellJobCustomName", description="This is a description", python_version=glue.PythonVersion.TWO, max_capacity=glue.MaxCapacity.DPU_1, role=role, script=script, glue_version=glue.GlueVersion.V2_0, continuous_logging=glue.ContinuousLoggingProps(enabled=False), worker_type=glue.WorkerType.G_2X, max_concurrent_runs=100, timeout=cdk.Duration.hours(2), connections=[glue.Connection.from_connection_name(stack, "Connection", "connectionName")], security_configuration=glue.SecurityConfiguration.from_security_configuration_name(stack, "SecurityConfig", "securityConfigName"), tags={ "FirstTagName": "FirstTagValue", "SecondTagName": "SecondTagValue", "XTagName": "XTagValue" }, number_of_workers=2, max_retries=2 )
Attributes
- THREE
(experimental) Python 3 (the exact version depends on GlueVersion and JobCommand used).
- Stability:
experimental
- THREE_NINE
(experimental) Python 3.9 (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