Skip to main content

targets_for_policies

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

Overview

Nametargets_for_policies
TypeResource
Idaws.iot.targets_for_policies

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
targetstringThe policy targets.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_targets_for_policyselectpolicy_name, regionmarker, pageSizeList targets for the specified policy. Requires permission to access the ListTargetsForPolicy 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
policy_namestringThe policy name.
regionstringAWS region (default: us-east-1)
markerstringA marker used to get the next set of results.
pageSizeintegerThe maximum number of results to return at one time.

SELECT examples

List targets for the specified policy. Requires permission to access the ListTargetsForPolicy action.

SELECT
target
FROM aws.iot.targets_for_policies
WHERE policy_name = '{{ policy_name }}' -- required
AND region = '{{ region }}' -- required
AND marker = '{{ marker }}'
AND pageSize = '{{ pageSize }}'
;