interface JobCommandProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.Glue.CfnJob.JobCommandProperty |
Java | software.amazon.awscdk.services.glue.CfnJob.JobCommandProperty |
Python | aws_cdk.aws_glue.CfnJob.JobCommandProperty |
TypeScript | @aws-cdk/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 * as glue from '@aws-cdk/aws-glue';
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 | CfnJob.JobCommandProperty.Runtime. |
| 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 .
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)
CfnJob.JobCommandProperty.Runtime.
scriptLocation?
Type:
string
(optional)
Specifies the Amazon Simple Storage Service (Amazon S3) path to a script that executes a job (required).

.NET
Java
Python
TypeScript