effective_policies
Creates, updates, deletes, gets or lists an effective_policies resource.
Overview
| Name | effective_policies |
| Type | Resource |
| Id | aws.iot.effective_policies |
Fields
The following fields are returned by SELECT queries:
- get_effective_policies
| Name | Datatype | Description |
|---|---|---|
effective_policies | array | The effective policies. |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get_effective_policies | select | region | thingName | Gets a list of the policies that have an effect on the authorization behavior of the specified device when it connects to the IoT device gateway. Requires permission to access the GetEffectivePolicies 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 |
|---|---|---|
region | string | AWS region (default: us-east-1) |
thingName | string | The thing name. |
SELECT examples
- get_effective_policies
Gets a list of the policies that have an effect on the authorization behavior of the specified device when it connects to the IoT device gateway. Requires permission to access the GetEffectivePolicies action.
SELECT
effective_policies
FROM aws.iot.effective_policies
WHERE region = '{{ region }}' -- required
AND thingName = '{{ thingName }}'
;