AWS Glue AWS Glue #X Amz Target=AWSGlue.GetJobRun API
The AWS Glue #X Amz Target=AWSGlue.GetJobRun API API from AWS Glue — 1 operation(s) for aws glue #x amz target=awsglue.getjobrun api.
The AWS Glue #X Amz Target=AWSGlue.GetJobRun API API from AWS Glue — 1 operation(s) for aws glue #x amz target=awsglue.getjobrun api.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/aws-glue:aws-glue-aws-glue-x-amz-target-awsglue-getjobrun-api-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.1.0
info:
title: AWS Glue Aws Glue X Amz Target Awsglue Getjobrun Api API
version: '2017-03-31'
description: Generated from AWS's published Smithy model for AWS Glue. 1 operation(s).
contact:
name: Amazon Web Services
url: https://aws.amazon.com/contact-us/
license:
name: Apache 2.0
identifier: Apache-2.0
url: https://github.com/aws/api-models-aws/blob/main/LICENSE
servers:
- url: https://glue.{region}.amazonaws.com
variables:
region:
default: us-east-1
security:
- sigv4: []
paths:
/#GetJobRun:
post:
operationId: GetJobRun
summary: Get Job Run
description: Retrieves the metadata for a given job run. Job run history is accessible for 365 days for your workflow
and job run.
responses:
'200':
description: Success
content:
application/x-amz-json-1.1:
schema:
$ref: '#/components/schemas/GetJobRunResponse'
'400':
description: EntityNotFoundException; InvalidInputException; OperationTimeoutException
content:
application/x-amz-json-1.1:
schema:
$ref: '#/components/schemas/EntityNotFoundException'
'500':
description: InternalServiceException
content:
application/x-amz-json-1.1:
schema:
$ref: '#/components/schemas/InternalServiceException'
parameters:
- name: X-Amz-Target
in: header
required: true
schema:
type: string
enum:
- AWSGlue.GetJobRun
requestBody:
required: true
content:
application/x-amz-json-1.1:
schema:
$ref: '#/components/schemas/GetJobRunRequest'
tags:
- Aws Glue X Amz Target Awsglue Getjobrun Api
components:
securitySchemes:
sigv4:
type: apiKey
in: header
name: Authorization
description: AWS Signature Version 4. The Authorization header carries an AWS4-HMAC-SHA256 signature over the canonical
request, with X-Amz-Date (and X-Amz-Security-Token for temporary credentials). Not a bearer token.
x-aws-sigv4:
signingName: glue
schemas:
EntityNotFoundException:
type: object
properties:
Message:
type: string
description: A message describing the problem.
FromFederationSource:
type: boolean
description: Indicates whether or not the exception relates to a federated source.
GetJobRunRequest:
type: object
properties:
JobName:
type: string
description: Name of the job definition being run.
RunId:
type: string
description: The ID of the job run.
PredecessorsIncluded:
type: boolean
description: True if a list of predecessor runs should be returned.
required:
- JobName
- RunId
GetJobRunResponse:
type: object
properties:
JobRun:
$ref: '#/components/schemas/JobRun'
InternalServiceException:
type: object
properties:
Message:
type: string
description: A message describing the problem.
JobRun:
type: object
properties:
Id:
type: string
description: The ID of this job run.
Attempt:
type: integer
description: The number of the attempt to run this job.
PreviousRunId:
type: string
description: The ID of the previous run of this job. For example, the JobRunId specified in the StartJobRun action.
TriggerName:
type: string
description: The name of the trigger that started this job run.
JobName:
type: string
description: The name of the job definition being used in this run.
JobMode:
type: string
enum:
- SCRIPT
- VISUAL
- NOTEBOOK
description: '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.'
JobRunQueuingEnabled:
type: boolean
description: Specifies whether job run queuing is enabled for the job run. A value of true means job run queuing
is enabled for the job run. If false or not populated, the job run will not be considered for queueing.
StartedOn:
type: string
format: date-time
description: The date and time at which this job run was started.
LastModifiedOn:
type: string
format: date-time
description: The last time that this job run was modified.
CompletedOn:
type: string
format: date-time
description: The date and time that this job run completed.
JobRunState:
type: string
enum:
- STARTING
- RUNNING
- STOPPING
- STOPPED
- SUCCEEDED
- FAILED
- TIMEOUT
- ERROR
- WAITING
- EXPIRED
description: The current state of the job run. For more information about the statuses of jobs that have terminated
abnormally, see Glue Job Run Statuses.
Arguments:
type: object
additionalProperties:
type: string
description: The job arguments associated with this run. For this job run, they replace the default arguments set
in the job definition itself. 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 them within the Job. For information about how to specify and consume your own Job arguments, see the Calling
Glue APIs in Python topic in the developer gui
ErrorMessage:
type: string
description: An error message associated with this job run.
PredecessorRuns:
type: array
items:
$ref: '#/components/schemas/Predecessor'
description: A list of predecessors to this job run.
AllocatedCapacity:
type: integer
description: This field is deprecated. Use MaxCapacity instead. The number of Glue data processing units (DPUs)
allocated to this JobRun. From 2 to 100 DPUs can be allocated; 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.
ExecutionTime:
type: integer
description: The amount of time (in seconds) that the job run consumed resources.
Timeout:
type: integer
description: The JobRun timeout in minutes. This is the maximum time that a job run can consume resources before
it is terminated and enters TIMEOUT status. This value overrides the timeout value set in the parent job. 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 later. Any existing Glue jobs that had a timeout value greater than 7 days will be defaulted
to 7 days. For instance if you have specified
MaxCapacity:
type: number
description: 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. Instead, you should specify a Worker type and the Number
of workers. Do not set MaxCapacity if using WorkerType and NumberOfWorkers. The value that can be allocated for
MaxCapacity depends on whether you are ru
WorkerType:
type: string
enum:
- Standard
- G.1X
- G.2X
- G.4X
- G.8X
- G.025X
- Z.2X
- G.12X
- G.16X
- R.1X
- R.2X
- R.4X
- R.8X
description: 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 streaming jobs. This worker type is only available for
Glue version 3.0 or later streaming jobs. For the G.1X worker type, each worker maps to 1 DPU (4 vCPUs, 16 GB
of memory) with 94GB disk, and provides 1 exec
NumberOfWorkers:
type: integer
description: The number of workers of a defined workerType that are allocated when a job runs.
SecurityConfiguration:
type: string
description: The name of the SecurityConfiguration structure to be used with this job run.
LogGroupName:
type: string
description: The name of the log group for secure logging that can be server-side encrypted in Amazon CloudWatch
using KMS. This name can be /aws-glue/jobs/, in which case the default encryption is NONE. If you add a role name
and SecurityConfiguration name (in other words, /aws-glue/jobs-yourRoleName-yourSecurityConfigurationName/), then
that security configuration is used to encrypt the log group.
NotificationProperty:
$ref: '#/components/schemas/NotificationProperty'
GlueVersion:
type: string
description: 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 information about the available Glue versions
and corresponding Spark and Python versions, see Glue version in the developer guide. Jobs that are created without
specifying a Glue version default to Glue 5.1.
DPUSeconds:
type: number
description: This field can be set for either job runs with execution class FLEX or when Auto Scaling is enabled,
and represents the total time each executor ran during the lifecycle of a job run in seconds, multiplied by a
DPU factor (1 for G.1X, 2 for G.2X, or 0.25 for G.025X workers). This value may be different than the executionEngineRuntime
* MaxCapacity as in the case of Auto Scaling jobs, as the number of executors running at a given time may be less
than the MaxCapacity. Therefore, it is possible that the value of DPUSeconds is less than executionEngineRuntime
* MaxCapacity.
ExecutionClass:
type: string
enum:
- FLEX
- STANDARD
description: 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 to set ExecutionClass to FLEX. The flexible execution
class is available for Spark jobs.
MaintenanceWindow:
type: string
description: 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 be restarted between 10:00AM GMT to 1:00PM GMT.
ProfileName:
type: string
description: The name of an Glue usage profile associated with the job run.
StateDetail:
type: string
description: This field holds details that pertain to the state of a job run. The field is nullable. For example,
when a job run is in a WAITING state as a result of job run queuing, the field has the reason why the job run
is in that state.
ExecutionRoleSessionPolicy:
type: string
description: This inline session policy to the StartJobRun API allows you to dynamically restrict the permissions
of the specified execution role for the scope of the job, without requiring the creation of additional IAM roles.
NotificationProperty:
type: object
properties:
NotifyDelayAfter:
type: integer
description: After a job run starts, the number of minutes to wait before sending a job run delay notification.
Predecessor:
type: object
properties:
JobName:
type: string
description: The name of the job definition used by the predecessor job run.
RunId:
type: string
description: The job-run ID of the predecessor job run.
x-provenance:
method: harvested
publisher: Amazon Web Services
source: https://raw.githubusercontent.com/aws/api-models-aws/3cd98287b471c106254abd89279cc87308d38bfd/models/glue/service/2017-03-31/glue-2017-03-31.json
note: converted by smithy-to-openapi.py from AWS's Smithy model (roadmap#1001)