Safe Haskell | None |
---|---|
Language | Haskell2010 |
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
- data GetUserPolicy
- getUserPolicy :: Text -> Text -> GetUserPolicy
- gupPolicyName :: Lens' GetUserPolicy Text
- gupUserName :: Lens' GetUserPolicy Text
- data GetUserPolicyResponse
- getUserPolicyResponse :: Text -> Text -> Text -> GetUserPolicyResponse
- guprPolicyDocument :: Lens' GetUserPolicyResponse Text
- guprPolicyName :: Lens' GetUserPolicyResponse Text
- guprUserName :: Lens' GetUserPolicyResponse Text
Request
data GetUserPolicy Source
Eq GetUserPolicy | |
Ord GetUserPolicy | |
Read GetUserPolicy | |
Show GetUserPolicy | |
AWSRequest GetUserPolicy | |
ToQuery GetUserPolicy | |
ToPath GetUserPolicy | |
ToHeaders GetUserPolicy | |
type Sv GetUserPolicy = IAM | |
type Rs GetUserPolicy = GetUserPolicyResponse |
Request constructor
GetUserPolicy
constructor.
The fields accessible through corresponding lenses are:
gupPolicyName
::
Text
gupUserName
::
Text
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
GetUserPolicyResponse
constructor.
The fields accessible through corresponding lenses are:
Response lenses
guprPolicyDocument :: Lens' GetUserPolicyResponse Text Source
The policy document.
guprPolicyName :: Lens' GetUserPolicyResponse Text Source
The name of the policy.
guprUserName :: Lens' GetUserPolicyResponse Text Source
The user the policy is associated with.