aws-cdk-lib.aws_glue.CfnJob.JobCommandProperty

interface JobCommandProperty

LanguageType name
.NETAmazon.CDK.AWS.Glue.CfnJob.JobCommandProperty
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awsglue#CfnJob_JobCommandProperty
Javasoftware.amazon.awscdk.services.glue.CfnJob.JobCommandProperty
Pythonaws_cdk.aws_glue.CfnJob.JobCommandProperty
TypeScript 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

NameTypeDescription
name?stringThe name of the job command.
pythonVersion?stringThe Python version being used to execute a Python shell job.
runtime?stringIn Ray jobs, Runtime is used to specify the versions of Ray, Python and additional libraries available in your environment.
scriptLocation?stringSpecifies 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).