@aws-cdk_aws-glue-alpha.PythonShellExecutableProps

interface PythonShellExecutableProps ๐Ÿ”น

LanguageType name
.NETAmazon.CDK.AWS.Glue.Alpha.PythonShellExecutableProps
Gogithub.com/aws/aws-cdk-go/awscdkgluealpha/v2#PythonShellExecutableProps
Javasoftware.amazon.awscdk.services.glue.alpha.PythonShellExecutableProps
Pythonaws_cdk.aws_glue_alpha.PythonShellExecutableProps
TypeScript (source)@aws-cdk/aws-glue-alpha ยป PythonShellExecutableProps

Props for creating a Python shell job executable.

Example

declare const bucket: s3.Bucket;
new glue.Job(this, 'PythonShellJob', {
  executable: glue.JobExecutable.pythonShell({
    glueVersion: glue.GlueVersion.V1_0,
    pythonVersion: glue.PythonVersion.THREE,
    script: glue.Code.fromBucket(bucket, 'script.py'),
  }),
  description: 'an example Python Shell job',
});

Properties

NameTypeDescription
glueVersion๐Ÿ”นGlueVersionGlue version.
pythonVersion๐Ÿ”นPythonVersionThe Python version to use.
script๐Ÿ”นCodeThe script that executes a job.
extraFiles?๐Ÿ”นCode[]Additional files, such as configuration files that AWS Glue copies to the working directory of your script before executing it.
extraPythonFiles?๐Ÿ”นCode[]Additional Python files that AWS Glue adds to the Python path before executing your script.
runtime?๐Ÿ”นRuntimeRuntime.

glueVersion๐Ÿ”น

Type: GlueVersion

Glue version.

See also: https://docs.aws.amazon.com/glue/latest/dg/release-notes.html


pythonVersion๐Ÿ”น

Type: PythonVersion

The Python version to use.


script๐Ÿ”น

Type: Code

The script that executes a job.


extraFiles?๐Ÿ”น

Type: Code[] (optional, default: [] - no extra files are copied to the working directory)

Additional files, such as configuration files that AWS Glue copies to the working directory of your script before executing it.

Only individual files are supported, directories are not supported.

See also: [ --extra-files in https://docs.aws.amazon.com/glue/latest/dg/aws-glue-programming-etl-glue-arguments.html]( --extra-files in https://docs.aws.amazon.com/glue/latest/dg/aws-glue-programming-etl-glue-arguments.html)


extraPythonFiles?๐Ÿ”น

Type: Code[] (optional, default: no extra python files and argument is not set)

Additional Python files that AWS Glue adds to the Python path before executing your script.

Only individual files are supported, directories are not supported.

See also: [ --extra-py-files in https://docs.aws.amazon.com/glue/latest/dg/aws-glue-programming-etl-glue-arguments.html]( --extra-py-files in https://docs.aws.amazon.com/glue/latest/dg/aws-glue-programming-etl-glue-arguments.html)


runtime?๐Ÿ”น

Type: Runtime (optional)

Runtime.

It is required for Ray jobs.