Select your cookie preferences

We use essential cookies and similar tools that are necessary to provide our site and services. We use performance cookies to collect anonymous statistics, so we can understand how customers use our site and make improvements. Essential cookies cannot be deactivated, but you can choose “Customize” or “Decline” to decline performance cookies.

If you agree, AWS and approved third parties will also use cookies to provide useful site features, remember your preferences, and display relevant content, including relevant advertising. To accept or decline all non-essential cookies, choose “Accept” or “Decline.” To make more detailed choices, choose “Customize.”

AWS::Glue::Job JobCommand

Focus mode
AWS::Glue::Job JobCommand - AWS CloudFormation
Filter View

Specifies code executed when a job is run.

Syntax

To declare this entity in your AWS CloudFormation template, use the following syntax:

JSON

{ "Name" : String, "PythonVersion" : String, "Runtime" : String, "ScriptLocation" : String }

YAML

Name: String PythonVersion: String Runtime: String ScriptLocation: String

Properties

Name

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.

Required: No

Type: String

Update requires: No interruption

PythonVersion

The Python version being used to execute a Python shell job. Allowed values are 3 or 3.9. Version 2 is deprecated.

Required: No

Type: String

Pattern: ^([2-3]|3[.]9)$

Update requires: No interruption

Runtime

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.

Required: No

Type: String

Update requires: No interruption

ScriptLocation

Specifies the Amazon Simple Storage Service (Amazon S3) path to a script that executes a job (required).

Required: No

Type: String

Maximum: 400000

Update requires: No interruption

On this page

PrivacySite termsCookie preferences
© 2025, Amazon Web Services, Inc. or its affiliates. All rights reserved.