Skip to main content

job_executions_for_things

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

Overview

Namejob_executions_for_things
TypeResource
Idaws.iot.job_executions_for_things

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
job_execution_summaryobjectContains a subset of information about a job execution.
job_idstringThe unique identifier you assigned to this job when it was created. (pattern: <code>[a-zA-Z0-9_-]+</code>)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_job_executions_for_thingselectthing_name, regionstatus, namespaceId, maxResults, nextToken, jobIdLists the job executions for the specified thing. Requires permission to access the ListJobExecutionsForThing 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 thing name.
jobIdstringThe unique identifier you assigned to this job when it was created.
maxResultsintegerThe maximum number of results to be returned per request.
namespaceIdstringThe namespace used to indicate that a job is a customer-managed job. When you specify a value for this parameter, Amazon Web Services IoT Core sends jobs notifications to MQTT topics that contain the value in the following format. $aws/things/THING_NAME/jobs/JOB_ID/notify-namespace-NAMESPACE_ID/ The namespaceId feature is only supported by IoT Greengrass at this time. For more information, see Setting up IoT Greengrass core devices.
nextTokenstringThe token to retrieve the next set of results.
statusstringAn optional filter that lets you search for jobs that have the specified status.

SELECT examples

Lists the job executions for the specified thing. Requires permission to access the ListJobExecutionsForThing action.

SELECT
job_execution_summary,
job_id
FROM aws.iot.job_executions_for_things
WHERE thing_name = '{{ thing_name }}' -- required
AND region = '{{ region }}' -- required
AND status = '{{ status }}'
AND namespaceId = '{{ namespaceId }}'
AND maxResults = '{{ maxResults }}'
AND nextToken = '{{ nextToken }}'
AND jobId = '{{ jobId }}'
;