Skip to main content

pending_job_executions

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

Overview

Namepending_job_executions
TypeResource
Idaws.iot_jobs_data.pending_job_executions

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
in_progress_jobsarrayA list of JobExecutionSummary objects with status IN_PROGRESS.
queued_jobsarrayA list of JobExecutionSummary objects with status QUEUED.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_pending_job_executionsselectthing_name, regionGets the list of all jobs for a thing that are not in a terminal status. Requires permission to access the GetPendingJobExecutions action.

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
regionstringAWS region (default: us-east-1)
thing_namestringThe name of the thing that is executing the job.

SELECT examples

Gets the list of all jobs for a thing that are not in a terminal status. Requires permission to access the GetPendingJobExecutions action.

SELECT
in_progress_jobs,
queued_jobs
FROM aws.iot_jobs_data.pending_job_executions
WHERE thing_name = '{{ thing_name }}' -- required
AND region = '{{ region }}' -- required
;