Skip to main content

effective_deployments

Creates, updates, deletes, gets or lists an effective_deployments resource.

Overview

Nameeffective_deployments
TypeResource
Idaws.greengrassv2.effective_deployments

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
core_device_execution_statusstringThe status of the deployment job on the Greengrass core device. IN_PROGRESS – The deployment job is running. QUEUED – The deployment job is in the job queue and waiting to run. FAILED – The deployment failed. For more information, see the statusDetails field. COMPLETED – The deployment to an IoT thing was completed successfully. TIMED_OUT – The deployment didn't complete in the allotted time. CANCELED – The deployment was canceled by the user. REJECTED – The deployment was rejected. For more information, see the statusDetails field. SUCCEEDED – The deployment to an IoT thing group was completed successfully. (IN_PROGRESS, QUEUED, FAILED, COMPLETED, TIMED_OUT, CANCELED, REJECTED, SUCCEEDED)
creation_timestampstring (date-time)The time at which the deployment was created, expressed in ISO 8601 format.
deployment_idstringThe ID of the deployment.
deployment_namestringThe name of the deployment.
descriptionstringThe description of the deployment job.
iot_job_arnstringThe ARN of the IoT job that applies the deployment to target devices. (pattern: <code>arn:[^:]*:iot:[^:]+:[0-9]+:job/.+</code>)
iot_job_idstringThe ID of the IoT job that applies the deployment to target devices.
modified_timestampstring (date-time)The time at which the deployment job was last modified, expressed in ISO 8601 format.
reasonstringThe reason code for the update, if the job was updated.
status_detailsobjectThe status details that explain why a deployment has an error. This response will be null if the deployment is in a success state.
target_arnstringThe ARN of the target IoT thing or thing group. (pattern: <code>arn:[^:]:iot:[^:]:[0-9]+:(thing|thinggroup)/.+</code>)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_effective_deploymentsselectcore_device_thing_name, regionmaxResults, nextTokenRetrieves a paginated list of deployment jobs that IoT Greengrass sends to Greengrass core devices.

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
core_device_thing_namestringThe name of the core device. This is also the name of the IoT thing.
regionstringAWS region (default: us-east-1)
maxResultsintegerThe maximum number of results to be returned per paginated request.
nextTokenstringThe token to be used for the next set of paginated results.

SELECT examples

Retrieves a paginated list of deployment jobs that IoT Greengrass sends to Greengrass core devices.

SELECT
core_device_execution_status,
creation_timestamp,
deployment_id,
deployment_name,
description,
iot_job_arn,
iot_job_id,
modified_timestamp,
reason,
status_details,
target_arn
FROM aws.greengrassv2.effective_deployments
WHERE core_device_thing_name = '{{ core_device_thing_name }}' -- required
AND region = '{{ region }}' -- required
AND maxResults = '{{ maxResults }}'
AND nextToken = '{{ nextToken }}'
;