Skip to content

JobCommand

Source code in docs_src/capo_glue/types/job_command.py
class JobCommand(TypedDict, closed=True):
    name: NotRequired["capo_glue.types.generic_string.GenericString"]
    """<p>The name of the job command. For an Apache Spark ETL job, this must be <code>glueetl</code>. For a Python shell job, it must be <code>pythonshell</code>. For an Apache Spark streaming ETL job, this must be <code>gluestreaming</code>. For a Ray job, this must be <code>glueray</code>.</p>"""
    script_location: NotRequired[
        "capo_glue.types.script_location_string.ScriptLocationString"
    ]
    """<p>Specifies the Amazon Simple Storage Service (Amazon S3) path to a script that runs a job.</p>"""
    python_version: NotRequired[
        "capo_glue.types.python_version_string.PythonVersionString"
    ]
    """<p>The Python version being used to run a Python shell job. Allowed values are 2 or 3.</p>"""
    runtime: NotRequired["capo_glue.types.runtime_name_string.RuntimeNameString"]
    """<p>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 <a href="https://docs.aws.amazon.com/glue/latest/dg/ray-jobs-section.html">Supported Ray runtime environments</a> in the Glue Developer Guide.</p>"""

name instance-attribute

name: NotRequired[GenericString]

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.

python_version instance-attribute

python_version: NotRequired[PythonVersionString]

The Python version being used to run a Python shell job. Allowed values are 2 or 3.

runtime instance-attribute

runtime: NotRequired[RuntimeNameString]

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 Supported Ray runtime environments in the Glue Developer Guide.

script_location instance-attribute

script_location: NotRequired[ScriptLocationString]

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