Skip to main content

executions

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

Overview

Nameexecutions
TypeResource
Idaws.snow_device_management.executions

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
execution_idstringThe ID of the execution.
last_updated_atstring (date-time)When the status of the execution was last updated.
managed_device_idstringThe ID of the managed device that the task is being executed on.
started_atstring (date-time)When the execution began.
statestringThe current state of the execution. (QUEUED, IN_PROGRESS, CANCELED, FAILED, SUCCEEDED, REJECTED, TIMED_OUT)
task_idstringThe ID of the task being executed on the device.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_executionselectmanaged_device_id, task_id, regionChecks the status of a remote task running on one or more target devices.
list_executionsselecttaskId, regionmaxResults, nextToken, stateReturns the status of tasks for one or more target 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
managed_device_idstringThe ID of the managed device.
regionstringAWS region (default: us-east-1)
taskIdstringThe ID of the task.
task_idstringThe ID of the task that the action is describing.
maxResultsintegerThe maximum number of tasks to list per page.
nextTokenstringA pagination token to continue to the next page of tasks.
statestringA structure used to filter the tasks by their current state.

SELECT examples

Checks the status of a remote task running on one or more target devices.

SELECT
execution_id,
last_updated_at,
managed_device_id,
started_at,
state,
task_id
FROM aws.snow_device_management.executions
WHERE managed_device_id = '{{ managed_device_id }}' -- required
AND task_id = '{{ task_id }}' -- required
AND region = '{{ region }}' -- required
;