Skip to main content

actions

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

Overview

Nameactions
TypeResource
Idaws.iotsitewise.actions

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
action_definition_idstringThe ID of the action definition. (pattern: <code>^(?!00000000-0000-0000-0000-000000000000)[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$</code>)
action_idstringThe ID of the action. (pattern: <code>^(?!00000000-0000-0000-0000-000000000000)[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$</code>)
resolve_toobjectThe detailed resource this execution summary resolves to.
target_resourceobjectThe resource the action will be taken on. This can include asset-based resources and computation model resources.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_actionsselecttargetResourceType, targetResourceId, regionnextToken, maxResults, resolveToResourceType, resolveToResourceIdRetrieves a paginated list of actions for a specific target resource.
describe_actionselectaction_id, regionRetrieves information about an 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
action_idstringThe ID of the action.
regionstringAWS region (default: us-east-1)
targetResourceIdstringThe ID of the target resource.
targetResourceTypestringThe type of resource.
maxResultsintegerThe maximum number of results to return for each paginated request.
nextTokenstringThe token to be used for the next set of paginated results.
resolveToResourceIdstringThe ID of the resolved resource.
resolveToResourceTypestringThe type of the resolved resource.

SELECT examples

Retrieves a paginated list of actions for a specific target resource.

SELECT
action_definition_id,
action_id,
resolve_to,
target_resource
FROM aws.iotsitewise.actions
WHERE targetResourceType = '{{ targetResourceType }}' -- required
AND targetResourceId = '{{ targetResourceId }}' -- required
AND region = '{{ region }}' -- required
AND nextToken = '{{ nextToken }}'
AND maxResults = '{{ maxResults }}'
AND resolveToResourceType = '{{ resolveToResourceType }}'
AND resolveToResourceId = '{{ resolveToResourceId }}'
;