Skip to main content

user_policy

Gets an individual user_policy resource

Overview

Nameuser_policy
TypeResource
Descriptionuser_policy
Idawscc.iam.user_policy

Fields

NameDatatypeDescription
policy_documentobjectThe policy document.
policy_namestringThe name of the policy document.
user_namestringThe name of the user to associate the policy with.
regionstringAWS 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