job_run_attempts
Creates, updates, deletes, gets or lists a job_run_attempts resource.
Overview
| Name | job_run_attempts |
| Type | Resource |
| Id | aws.emr_serverless.job_run_attempts |
Fields
The following fields are returned by SELECT queries:
- list_job_run_attempts
| Name | Datatype | Description |
|---|---|---|
id | string | The ID of the job run attempt. (pattern: <code>[0-9a-z]+</code>) |
name | string | The name of the job run attempt. (pattern: <code>.\S.</code>) |
application_id | string | The ID of the application the job is running on. (pattern: <code>[0-9a-z]+</code>) |
arn | string | The 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>) |
attempt | integer | The attempt number of the job run execution. |
created_at | string (date-time) | The date and time when the job run attempt was created. |
created_by | string | The user who created the job run. (pattern: <code>arn:(aws[a-zA-Z0-9-]*):(iam|sts)::(\d{12})?:[\w/+=,.@-]+</code>) |
execution_role | string | The 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_at | string (date-time) | The date and time of when the job run was created. |
mode | string | The mode of the job run attempt. (BATCH, STREAMING) |
release_label | string | The Amazon EMR release label of the job run attempt. (pattern: <code>[A-Za-z0-9._/-]+</code>) |
state | string | The state of the job run attempt. (SUBMITTED, PENDING, SCHEDULED, RUNNING, SUCCESS, FAILED, CANCELLING, CANCELLED, QUEUED) |
state_details | string | The state details of the job run attempt. (pattern: <code>.\S.</code>) |
type_ | string | The type of the job run, such as Spark or Hive. |
updated_at | string (date-time) | The date and time of when the job run attempt was last updated. |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
list_job_run_attempts | select | application_id, job_run_id, region | nextToken, maxResults | Lists 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.
| Name | Datatype | Description |
|---|---|---|
application_id | string | The ID of the application for which to list job runs. |
job_run_id | string | The ID of the job run to list. |
region | string | AWS region (default: us-east-1) |
maxResults | integer | The maximum number of job run attempts to list. |
nextToken | string | The token for the next set of job run attempt results. |
SELECT examples
- list_job_run_attempts
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 }}'
;