| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Network.AWS.IAM.GetUserPolicy
Description
Retrieves the specified inline policy document that is embedded in the specified user.
A user can also have managed policies attached to it. To retrieve a managed
policy document that is attached to a user, use GetPolicy to determine the
policy's default version, then use GetPolicyVersion to retrieve the policy
document.
For more information about policies, refer to Managed Policies and InlinePolicies in the Using IAM guide.
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
Request constructor
Arguments
| :: Text | |
| -> Text | |
| -> GetUserPolicy |
GetUserPolicy constructor.
The fields accessible through corresponding lenses are:
gupPolicyName::TextgupUserName::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
Arguments
| :: Text | |
| -> Text | |
| -> Text | |
| -> GetUserPolicyResponse |
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.