amazonka-iam-0.3.0: Amazon Identity and Access Management SDK.

Safe HaskellNone
LanguageHaskell2010

Network.AWS.IAM.GetUserPolicy

Contents

Description

Retrieves the specified policy document for the specified user. The returned policy is URL-encoded according to RFC 3986. For more information about RFC 3986, go to http://www.faqs.org/rfcs/rfc3986.html.

http://docs.aws.amazon.com/IAM/latest/APIReference/API_GetUserPolicy.html

Synopsis

Request

Request constructor

getUserPolicy Source

GetUserPolicy constructor.

The fields accessible through corresponding lenses are:

Request lenses

gupPolicyName :: Lens' GetUserPolicy Text Source

The name of the policy document to get.

gupUserName :: Lens' GetUserPolicy Text Source

The name of the user who the policy is associated with.

Response

Response constructor

Response lenses

guprUserName :: Lens' GetUserPolicyResponse Text Source

The user the policy is associated with.