interface JobExecutableConfig
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.Glue.JobExecutableConfig |
Java | software.amazon.awscdk.services.glue.JobExecutableConfig |
Python | aws_cdk.aws_glue.JobExecutableConfig |
TypeScript (source) | @aws-cdk/aws-glue » JobExecutableConfig |
Obtainable from
Job
.bind()
Result of binding a JobExecutable
into a Job
.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as glue from '@aws-cdk/aws-glue';
declare const code: glue.Code;
declare const glueVersion: glue.GlueVersion;
declare const jobType: glue.JobType;
const jobExecutableConfig: glue.JobExecutableConfig = {
glueVersion: glueVersion,
language: glue.JobLanguage.SCALA,
script: code,
type: jobType,
// the properties below are optional
className: 'className',
extraFiles: [code],
extraJars: [code],
extraJarsFirst: false,
extraPythonFiles: [code],
pythonVersion: glue.PythonVersion.TWO,
};
Properties
Name | Type | Description |
---|---|---|
glue | Glue | Glue version. |
language | Job | The language of the job (Scala or Python). |
script | Code | The script that is executed by a job. |
type | Job | Specify the type of the job whether it's an Apache Spark ETL or streaming one or if it's a Python shell job. |
class | string | The Scala class that serves as the entry point for the job. |
extra | Code [] | Additional files, such as configuration files that AWS Glue copies to the working directory of your script before executing it. |
extra | Code [] | Additional Java .jar files that AWS Glue adds to the Java classpath before executing your script. |
extra | boolean | Setting this value to true prioritizes the customer's extra JAR files in the classpath. |
extra | Code [] | Additional Python files that AWS Glue adds to the Python path before executing your script. |
python | Python | The Python version to use. |
glueVersion
Type:
Glue
Glue version.
See also: https://docs.aws.amazon.com/glue/latest/dg/release-notes.html
language
Type:
Job
The language of the job (Scala or Python).
See also: [--job-language
in https://docs.aws.amazon.com/glue/latest/dg/aws-glue-programming-etl-glue-arguments.html](--job-language
in https://docs.aws.amazon.com/glue/latest/dg/aws-glue-programming-etl-glue-arguments.html)
script
Type:
Code
The script that is executed by a job.
type
Type:
Job
Specify the type of the job whether it's an Apache Spark ETL or streaming one or if it's a Python shell job.
className?
Type:
string
(optional, default: no scala className specified)
The Scala class that serves as the entry point for the job.
This applies only if your the job langauage is Scala.
See also: [--class
in https://docs.aws.amazon.com/glue/latest/dg/aws-glue-programming-etl-glue-arguments.html](--class
in https://docs.aws.amazon.com/glue/latest/dg/aws-glue-programming-etl-glue-arguments.html)
extraFiles?
Type:
Code
[]
(optional, default: no extra files specified.)
Additional files, such as configuration files that AWS Glue copies to the working directory of your script before executing it.
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)
extraJars?
Type:
Code
[]
(optional, default: no extra jars specified.)
Additional Java .jar files that AWS Glue adds to the Java classpath before executing your script.
See also: [--extra-jars
in https://docs.aws.amazon.com/glue/latest/dg/aws-glue-programming-etl-glue-arguments.html](--extra-jars
in https://docs.aws.amazon.com/glue/latest/dg/aws-glue-programming-etl-glue-arguments.html)
extraJarsFirst?
Type:
boolean
(optional, default: extra jars are not prioritized.)
Setting this value to true prioritizes the customer's extra JAR files in the classpath.
See also: [--user-jars-first
in https://docs.aws.amazon.com/glue/latest/dg/aws-glue-programming-etl-glue-arguments.html](--user-jars-first
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 specified.)
Additional Python files that AWS Glue adds to the Python path before executing your script.
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)
pythonVersion?
Type:
Python
(optional, default: no python version specified)
The Python version to use.