Skip to main content

job_runs

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

Overview

Namejob_runs
TypeResource
Idaws.datazone.job_runs

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringThe ID of the job run.
created_atstring (date-time)The timestamp of when the job run was created.
created_bystringThe user who created the job run.
detailsobjectThe details of the job run.
domain_idstringThe ID of the domain. (pattern: <code>dzd[-][a-zA-Z0-9-]{1,36}</code>)
end_timestring (date-time)The timestamp of when the job run ended.
errorobjectThe error generated if the action is not completed successfully.
job_idstringThe ID of the job run.
job_typestringThe type of the job run. (LINEAGE)
run_modestringThe mode of the job run. (SCHEDULED, ON_DEMAND)
start_timestring (date-time)The timestamp of when the job run started.
statusstringThe status of the job run. (SCHEDULED, IN_PROGRESS, SUCCESS, PARTIALLY_SUCCEEDED, FAILED, ABORTED, TIMED_OUT, CANCELED)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_job_runselectdomain_identifier, identifier, regionThe details of the job run.
list_job_runsselectdomain_identifier, job_identifier, regionstatus, sortOrder, nextToken, maxResultsLists job runs.

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
domain_identifierstringThe ID of the domain where you want to list job runs.
identifierstringThe ID of the job run.
job_identifierstringThe ID of the job run.
regionstringAWS region (default: us-east-1)
maxResultsintegerThe maximum number of job runs to return in a single call to ListJobRuns. When the number of job runs to be listed is greater than the value of MaxResults, the response contains a NextToken value that you can use in a subsequent call to ListJobRuns to list the next set of job runs.
nextTokenstringWhen the number of job runs is greater than the default value for the MaxResults parameter, or if you explicitly specify a value for MaxResults that is less than the number of job runs, the response includes a pagination token named NextToken. You can specify this NextToken value in a subsequent call to ListJobRuns to list the next set of job runs.
sortOrderstringSpecifies the order in which job runs are to be sorted.
statusstringThe status of a job run.

SELECT examples

The details of the job run.

SELECT
id,
created_at,
created_by,
details,
domain_id,
end_time,
error,
job_id,
job_type,
run_mode,
start_time,
status
FROM aws.datazone.job_runs
WHERE domain_identifier = '{{ domain_identifier }}' -- required
AND identifier = '{{ identifier }}' -- required
AND region = '{{ region }}' -- required
;