aws.iot.list_principal_policies
Example SQL Queries
SELECT * FROMaws.iot.list_principal_policiesWHERE"principal" = 'VALUE';Description
Lists the policies attached to the specified principal. If you use an Cognito identity, the ID must be in AmazonCognito Identity format.
Note: This action is deprecated and works as expected for backward compatibility, but we won't add enhancements. Use ListAttachedPolicies instead.
Requires permission to access the ListPrincipalPolicies action.
Table Definition
| Column Name | Column Data Type |
|---|---|
| principal Required Input Column The principal. Valid principals are CertificateArn (arn:aws:iot:region:accountId:cert/certificateId), thingGroupArn (arn:aws:iot:region:accountId:thinggroup/groupName) and CognitoId (region:id). | VARCHAR |
| ascending_order Input Column Specifies the order for results. If true, results are returned in ascending creation order. | BOOLEAN |
| _aws_profile Input Column The AWS profile defines the AWS identity used. It can be defined via credentials or by assuming a IAM role. | STRUCT( |
Show child fields
| |
| _aws_region Input Column The AWS region to use. | VARCHAR |
| policy_arn The policy ARN. | VARCHAR |
| policy_name The policy name. | VARCHAR |