Class PythonRayExecutableProps
(experimental) Props for creating a Python Ray job executable.
Inheritance
Implements
Namespace: Amazon.CDK.AWS.Glue.Alpha
Assembly: Amazon.CDK.AWS.Glue.Alpha.dll
Syntax (csharp)
public class PythonRayExecutableProps : Object, IPythonRayExecutableProps
Syntax (vb)
Public Class PythonRayExecutableProps
Inherits Object
Implements IPythonRayExecutableProps
Remarks
Stability: Experimental
ExampleMetadata: infused
Examples
new Job(this, "RayJob", new JobProps {
Executable = JobExecutable.PythonRay(new PythonRayExecutableProps {
GlueVersion = GlueVersion.V4_0,
PythonVersion = PythonVersion.THREE_NINE,
Runtime = Runtime.RAY_TWO_FOUR,
Script = Code.FromAsset(Join(__dirname, "job-script", "hello_world.py"))
}),
WorkerType = WorkerType.Z_2X,
WorkerCount = 2,
Description = "an example Ray job"
});
Synopsis
Constructors
PythonRayExecutableProps() |
Properties
ExtraFiles | (experimental) Additional files, such as configuration files that AWS Glue copies to the working directory of your script before executing it. |
GlueVersion | (experimental) Glue version. |
PythonVersion | (experimental) The Python version to use. |
Runtime | (experimental) Runtime. |
S3PythonModules | (experimental) Additional Python modules that AWS Glue adds to the Python path before executing your script. |
Script | (experimental) The script that executes a job. |
Constructors
PythonRayExecutableProps()
public PythonRayExecutableProps()
Properties
ExtraFiles
(experimental) Additional files, such as configuration files that AWS Glue copies to the working directory of your script before executing it.
public Code[] ExtraFiles { get; set; }
Property Value
Code[]
Remarks
Only individual files are supported, directories are not supported.
Equivalent to a job parameter --extra-files
.
Default: [] - no extra files are copied to the working directory
Stability: Experimental
See: https://docs.aws.amazon.com/glue/latest/dg/aws-glue-programming-etl-glue-arguments.html
GlueVersion
(experimental) Glue version.
public GlueVersion GlueVersion { get; set; }
Property Value
Remarks
Stability: Experimental
See: https://docs.aws.amazon.com/glue/latest/dg/release-notes.html
PythonVersion
(experimental) The Python version to use.
public PythonVersion PythonVersion { get; set; }
Property Value
Remarks
Stability: Experimental
Runtime
(experimental) Runtime.
public Runtime Runtime { get; set; }
Property Value
Remarks
It is required for Ray jobs.
Stability: Experimental
S3PythonModules
(experimental) Additional Python modules that AWS Glue adds to the Python path before executing your script.
public Code[] S3PythonModules { get; set; }
Property Value
Code[]
Remarks
Equivalent to a job parameter --s3-py-modules
.
Default: - no extra python files and argument is not set
Stability: Experimental
See: https://docs.aws.amazon.com/glue/latest/dg/author-job-ray-job-parameters.html
Script
(experimental) The script that executes a job.
public Code Script { get; set; }
Property Value
Remarks
Stability: Experimental