Skip to main content

job_runs

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

Overview

Namejob_runs
TypeResource
Idaws.databrew.job_runs

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
attemptintegerThe number of times that DataBrew has attempted to run the job.
completed_onstring (date-time)The date and time when the job completed processing.
data_catalog_outputsarrayOne or more artifacts that represent the Glue Data Catalog output from running the job.
database_outputsarrayRepresents a list of JDBC database output objects which defines the output destination for a DataBrew recipe job to write into.
dataset_namestringThe name of the dataset for the job to process.
error_messagestringA message indicating an error (if any) that was encountered when the job ran.
execution_timeintegerThe amount of time, in seconds, during which the job run consumed resources.
job_namestringThe name of the job being processed during this run.
job_sampleobjectA sample configuration for profile jobs only, which determines the number of rows on which the profile job is run. If a JobSample value isn't provided, the default is used. The default value is CUSTOM_ROWS for the mode parameter and 20,000 for the size parameter.
log_group_namestringThe name of an Amazon CloudWatch log group, where the job writes diagnostic messages when it runs.
log_subscriptionstringThe current status of Amazon CloudWatch logging for the job run. (ENABLE, DISABLE)
outputsarrayOne or more output artifacts from a job run.
profile_configurationobjectConfiguration for profile jobs. Configuration can be used to select columns, do evaluations, and override default parameters of evaluations. When configuration is undefined, the profile job will apply default settings to all supported columns.
recipe_referenceobjectRepresents the name and version of a DataBrew recipe.
run_idstringThe unique identifier of the job run.
started_bystringThe Amazon Resource Name (ARN) of the user who started the job run.
started_onstring (date-time)The date and time when the job run began.
statestringThe current state of the job run entity itself. (STARTING, RUNNING, STOPPING, STOPPED, SUCCEEDED, FAILED, TIMEOUT)
validation_configurationsarrayList of validation configurations that are applied to the profile job.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_job_runselectname, run_id, regionRepresents one run of a DataBrew job.
list_job_runsselectname, regionmaxResults, nextTokenLists all of the previous runs of a particular DataBrew job.

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
namestringThe name of the job.
regionstringAWS region (default: us-east-1)
run_idstringThe unique identifier of the job run.
maxResultsintegerThe maximum number of results to return in this request.
nextTokenstringThe token returned by a previous call to retrieve the next set of results.

SELECT examples

Represents one run of a DataBrew job.

SELECT
attempt,
completed_on,
data_catalog_outputs,
database_outputs,
dataset_name,
error_message,
execution_time,
job_name,
job_sample,
log_group_name,
log_subscription,
outputs,
profile_configuration,
recipe_reference,
run_id,
started_by,
started_on,
state,
validation_configurations
FROM aws.databrew.job_runs
WHERE name = '{{ name }}' -- required
AND run_id = '{{ run_id }}' -- required
AND region = '{{ region }}' -- required
;