interface JobCommandProperty
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.Glue.CfnJob.JobCommandProperty |
![]() | github.com/aws/aws-cdk-go/awscdk/v2/awsglue#CfnJob_JobCommandProperty |
![]() | software.amazon.awscdk.services.glue.CfnJob.JobCommandProperty |
![]() | aws_cdk.aws_glue.CfnJob.JobCommandProperty |
![]() | aws-cdk-lib » aws_glue » CfnJob » JobCommandProperty |
Specifies code executed when a job is run.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_glue as glue } from 'aws-cdk-lib';
const jobCommandProperty: glue.CfnJob.JobCommandProperty = {
name: 'name',
pythonVersion: 'pythonVersion',
runtime: 'runtime',
scriptLocation: 'scriptLocation',
};
Properties
Name | Type | Description |
---|---|---|
name? | string | The name of the job command. |
python | string | The Python version being used to execute a Python shell job. |
runtime? | string | In Ray jobs, Runtime is used to specify the versions of Ray, Python and additional libraries available in your environment. |
script | string | Specifies the Amazon Simple Storage Service (Amazon S3) path to a script that executes a job (required). |
name?
Type:
string
(optional)
The name of the job command.
For an Apache Spark ETL job, this must be glueetl
. For a Python shell job, it must be pythonshell
. For an Apache Spark streaming ETL job, this must be gluestreaming
. For a Ray job, this must be glueray
.
pythonVersion?
Type:
string
(optional)
The Python version being used to execute a Python shell job.
Allowed values are 3 or 3.9. Version 2 is deprecated.
runtime?
Type:
string
(optional)
In Ray jobs, Runtime is used to specify the versions of Ray, Python and additional libraries available in your environment.
This field is not used in other job types. For supported runtime environment values, see Working with Ray jobs in the AWS Glue Developer Guide.
scriptLocation?
Type:
string
(optional)
Specifies the Amazon Simple Storage Service (Amazon S3) path to a script that executes a job (required).