Skip to content

GlueClient.create_job

rboto-glue==0.4.0 · Service index · Types

Model summary (excerpt): Creates a new job definition.

Install and imports

python -m pip install "rboto[glue]==0.4.0"
from rboto import GlueClient
from rboto_glue.types import (
    CodeGenConfigurationNode,
    ConnectionsList,
    CreateJobOutput,
    ExecutionClass,
    ExecutionProperty,
    JobCommand,
    JobMode,
    NotificationProperty,
    SourceControlDetails,
    WorkerType,
)

Signature

async def create_job(
    *,
    name: str,
    role: str,
    command: JobCommand,
    job_mode: JobMode | None = None,
    job_run_queuing_enabled: bool | None = None,
    description: str | None = None,
    log_uri: str | None = None,
    execution_property: ExecutionProperty | None = None,
    default_arguments: dict[str, str] | None = None,
    non_overridable_arguments: dict[str, str] | None = None,
    connections: ConnectionsList | None = None,
    max_retries: int | None = None,
    allocated_capacity: int | None = None,
    timeout: int | None = None,
    max_capacity: float | None = None,
    security_configuration: str | None = None,
    tags: dict[str, str] | None = None,
    notification_property: NotificationProperty | None = None,
    glue_version: str | None = None,
    number_of_workers: int | None = None,
    worker_type: WorkerType | None = None,
    code_gen_configuration_nodes: dict[str, CodeGenConfigurationNode] | None = None,
    execution_class: ExecutionClass | None = None,
    source_control_details: SourceControlDetails | None = None,
    maintenance_window: str | None = None,
) -> CreateJobOutput: ...

Arguments without defaults are required. None omits an optional request argument. Static types do not validate resource existence, permissions, lengths, ranges, or conditional service requirements.

Arguments

Argument Required Model notes (excerpt)
name Yes The name you assign to this job definition. It must be unique in your account.
role Yes The name or Amazon Resource Name (ARN) of the IAM role associated with this job.
command Yes The JobCommand that runs this job.
job_mode No A mode that describes how a job was created. Valid values are: SCRIPT - The job was created using the Glue Studio script editor. VISUAL - The job was created using the Glue Studio visual editor. NOTEBOOK - The job was created using an interactive sessions notebook. When the JobMode field is missing or null, SCRIPT is assigned as the default value.
job_run_queuing_enabled No Specifies whether job run queuing is enabled for the job runs for this job. A value of true means job run queuing is enabled for the job runs. If false or not populated, the job runs will not be considered for queueing. If this field does not match the value set in the job run, then the value from the job run field will be used.
description No Description of the job being defined.
log_uri No This field is reserved for future use.
execution_property No An ExecutionProperty specifying the maximum number of concurrent runs allowed for this job.
default_arguments No The default arguments for every run of this job, specified as name-value pairs. You can specify arguments here that your own job-execution script consumes, as well as arguments that Glue itself consumes. Job arguments may be logged. Do not pass plaintext secrets as arguments. Retrieve secrets from a Glue Connection, Secrets Manager or other secret management mechanism if you intend to keep...
non_overridable_arguments No Arguments for this job that are not overridden when providing job arguments in a job run, specified as name-value pairs.
connections No The connections used for this job.
max_retries No The maximum number of times to retry this job if it fails.
allocated_capacity No This parameter is deprecated. Use MaxCapacity instead. The number of Glue data processing units (DPUs) to allocate to this Job. You can allocate a minimum of 2 DPUs; the default is 10. A DPU is a relative measure of processing power that consists of 4 vCPUs of compute capacity and 16 GB of memory. For more information, see the Glue pricing page .
timeout No The job timeout in minutes. This is the maximum time that a job run can consume resources before it is terminated and enters TIMEOUT status. Jobs must have timeout values less than 7 days or 10080 minutes. Otherwise, the jobs will throw an exception. When the value is left blank, the timeout is defaulted to 2,880 minutes for Glue version 4.0 and earlier, or 480 minutes for Glue version 5.0 and...
max_capacity No For Glue version 1.0 or earlier jobs, using the standard worker type, the number of Glue data processing units (DPUs) that can be allocated when this job runs. A DPU is a relative measure of processing power that consists of 4 vCPUs of compute capacity and 16 GB of memory. For more information, see the Glue pricing page . For Glue version 2.0+ jobs, you cannot specify a Maximum capacity ....
security_configuration No The name of the SecurityConfiguration structure to be used with this job.
tags No The tags to use with this job. You may use tags to limit access to the job. For more information about tags in Glue, see Amazon Web Services Tags in Glue in the developer guide.
notification_property No Specifies configuration properties of a job notification.
glue_version No In Spark jobs, GlueVersion determines the versions of Apache Spark and Python that Glue available in a job. The Python version indicates the version supported for jobs of type Spark. Ray jobs should set GlueVersion to 4.0 or greater. However, the versions of Ray, Python and additional libraries available in your Ray job are determined by the Runtime parameter of the Job command. For more...
number_of_workers No The number of workers of a defined workerType that are allocated when a job runs.
worker_type No The type of predefined worker that is allocated when a job runs. Accepts a value of G.025X, G.1X, G.2X, G.4X, G.8X, G.12X, G.16X, R.1X, R.2X, R.4X, or R.8X for Spark jobs. Accepts the value Z.2X for Ray jobs. For the G.025X worker type, each worker maps to 0.25 DPU (2 vCPUs, 4 GB of memory) with 84GB disk, and provides 1 executor per worker. We recommend this worker type for low volume...
code_gen_configuration_nodes No The representation of a directed acyclic graph on which both the Glue Studio visual component and Glue Studio code generation is based.
execution_class No Indicates whether the job is run with a standard or flexible execution class. The standard execution-class is ideal for time-sensitive workloads that require fast job startup and dedicated resources. The flexible execution class is appropriate for time-insensitive jobs whose start and completion times may vary. Only jobs with Glue version 3.0 and above and command type glueetl will be allowed...
source_control_details No The details for a source control configuration for a job, allowing synchronization of job artifacts to or from a remote repository.
maintenance_window No This field specifies a day of the week and hour for a maintenance window for streaming jobs. Glue periodically performs maintenance activities. During these maintenance windows, Glue will need to restart your streaming jobs. Glue will restart the job within 3 hours of the specified maintenance window. For instance, if you set up the maintenance window for Monday at 10:00AM GMT, your jobs will...

Output

CreateJobOutput.

Read-only native attributes, accessed as response.field. Collection getters materialize Python values; to_dict() recursively materializes a mapping. Streams are consumed once.

Field Type Presence References
name str | None Always present —

| None means a value can be absent. Output mappings include every declared key; optional input keys may be omitted. Unknown output enum/union variants are not automatically valid inputs.

CodeGenConfigurationNode, ConnectionsList, CreateJobOutput, ExecutionClass, ExecutionProperty, JobCommand, JobMode, NotificationProperty, SourceControlDetails, WorkerType

Follow these links for nested inputs and outputs; recursive types link back to the same type page.

Pagination and streaming

No generated paginator for this operation.

No output stream.

Errors

Import from rboto_glue.exceptions:

AlreadyExistsError, ConcurrentModificationError, IdempotentParameterMismatchError, InternalServiceError, InvalidInputError, OperationTimeoutError, ResourceNumberLimitExceededError.

Other service failures use the service base error; credential, transport and timeout failures use shared errors.

Service guide · Pinned model