Skip to main content

job_run_attempts

Creates, updates, deletes, gets or lists a job_run_attempts resource.

Overview

Namejob_run_attempts
TypeResource
Idaws.emr_serverless.job_run_attempts

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringThe ID of the job run attempt. (pattern: <code>[0-9a-z]+</code>)
namestringThe name of the job run attempt. (pattern: <code>.\S.</code>)
application_idstringThe ID of the application the job is running on. (pattern: <code>[0-9a-z]+</code>)
arnstringThe Amazon Resource Name (ARN) of the job run. (pattern: <code>arn:(aws[a-zA-Z0-9-]*):emr-serverless:.+:(\d{12}):/applications/[0-9a-zA-Z]+/jobruns/[0-9a-zA-Z]+</code>)
attemptintegerThe attempt number of the job run execution.
created_atstring (date-time)The date and time when the job run attempt was created.
created_bystringThe user who created the job run. (pattern: <code>arn:(aws[a-zA-Z0-9-]*):(iam|sts)::(\d{12})?:[\w/+=,.@-]+</code>)
execution_rolestringThe Amazon Resource Name (ARN) of the execution role of the job run.. (pattern: <code>arn:(aws[a-zA-Z0-9-]*):iam::([0-9]{12}):(role((\u002F)|(\u002F[\u0021-\u007F]+\u002F))[\w+=,.@-]+)</code>)
job_created_atstring (date-time)The date and time of when the job run was created.
modestringThe mode of the job run attempt. (BATCH, STREAMING)
release_labelstringThe Amazon EMR release label of the job run attempt. (pattern: <code>[A-Za-z0-9._/-]+</code>)
statestringThe state of the job run attempt. (SUBMITTED, PENDING, SCHEDULED, RUNNING, SUCCESS, FAILED, CANCELLING, CANCELLED, QUEUED)
state_detailsstringThe state details of the job run attempt. (pattern: <code>.\S.</code>)
type_stringThe type of the job run, such as Spark or Hive.
updated_atstring (date-time)The date and time of when the job run attempt was last updated.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_job_run_attemptsselectapplication_id, job_run_id, regionnextToken, maxResultsLists all attempt of a job run.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
application_idstringThe ID of the application for which to list job runs.
job_run_idstringThe ID of the job run to list.
regionstringAWS region (default: us-east-1)
maxResultsintegerThe maximum number of job run attempts to list.
nextTokenstringThe token for the next set of job run attempt results.

SELECT examples

Lists all attempt of a job run.

SELECT
id,
name,
application_id,
arn,
attempt,
created_at,
created_by,
execution_role,
job_created_at,
mode,
release_label,
state,
state_details,
type_,
updated_at
FROM aws.emr_serverless.job_run_attempts
WHERE application_id = '{{ application_id }}' -- required
AND job_run_id = '{{ job_run_id }}' -- required
AND region = '{{ region }}' -- required
AND nextToken = '{{ nextToken }}'
AND maxResults = '{{ maxResults }}'
;