targets_for_policies
Creates, updates, deletes, gets or lists a targets_for_policies resource.
Overview
| Name | targets_for_policies |
| Type | Resource |
| Id | aws.iot.targets_for_policies |
Fields
The following fields are returned by SELECT queries:
- list_targets_for_policy
| Name | Datatype | Description |
|---|---|---|
target | string | The policy targets. |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
list_targets_for_policy | select | policy_name, region | marker, pageSize | List 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.
| Name | Datatype | Description |
|---|---|---|
policy_name | string | The policy name. |
region | string | AWS region (default: us-east-1) |
marker | string | A marker used to get the next set of results. |
pageSize | integer | The maximum number of results to return at one time. |
SELECT examples
- list_targets_for_policy
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 }}'
;