# JobCommandProperty

Specifies code executed when a job is run.

- Source: Generated code
- Type last changed: v2.93.0 · 23 Aug 2023

## Example

```ts
// 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`: string — 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`: string — The Python version being used to execute a Python shell job.

  Allowed values are 3 or 3.9. Version 2 is deprecated.

- `runtime`: string — 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](https://docs.aws.amazon.com/glue/latest/dg/ray-jobs-section.html) in the AWS Glue Developer Guide.

- `scriptLocation`: string — Specifies the Amazon Simple Storage Service (Amazon S3) path to a script that executes a job (required).
