user_policy
Gets an individual user_policy
resource
Overview
Name | user_policy |
Type | Resource |
Description | user_policy |
Id | awscc.iam.user_policy |
Fields
Name | Datatype | Description |
---|---|---|
policy_document | object | The policy document. |
policy_name | string | The name of the policy document. |
user_name | string | The name of the user to associate the policy with. |
region | string | AWS region. |
Methods
Currently only SELECT
is supported for this resource resource.
Example
SELECT
region,
policy_document,
policy_name,
user_name
FROM awscc.iam.user_policy
WHERE data__Identifier = '<PolicyName>|<UserName>';
Permissions
To operate on the user_policy
resource, the following permissions are required:
Read
iam:GetUserPolicy
Update
iam:PutUserPolicy,
iam:GetUserPolicy
Delete
iam:DeleteUserPolicy,
iam:GetUserPolicy