Skip to main content

policy_principals

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

Overview

Namepolicy_principals
TypeResource
Idaws.iot.policy_principals

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
principalstringThe descriptions of the principals.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_policy_principalsselectx-amzn-iot-policy, regionmarker, pageSize, isAscendingOrderLists the principals associated with the specified policy. Note: This action is deprecated and works as expected for backward compatibility, but we won't add enhancements. Use ListTargetsForPolicy instead. Requires permission to access the ListPolicyPrincipals 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
regionstringAWS region (default: us-east-1)
x-amzn-iot-policystringThe policy name.
isAscendingOrderbooleanSpecifies the order for results. If true, the results are returned in ascending creation order.
markerstringThe marker for the next set of results.
pageSizeintegerThe result page size.

SELECT examples

Lists the principals associated with the specified policy. Note: This action is deprecated and works as expected for backward compatibility, but we won't add enhancements. Use ListTargetsForPolicy instead. Requires permission to access the ListPolicyPrincipals action.

SELECT
principal
FROM aws.iot.policy_principals
WHERE `x-amzn-iot-policy` = '{{ x-amzn-iot-policy }}' -- required
AND region = '{{ region }}' -- required
AND marker = '{{ marker }}'
AND pageSize = '{{ pageSize }}'
AND isAscendingOrder = '{{ isAscendingOrder }}'
;