Safe Haskell | None |
---|---|
Language | Haskell2010 |
Retrieves the specified policy document for the specified role. For more information about roles, go to Working with Roles.
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_GetRolePolicy.html
- data GetRolePolicy
- getRolePolicy :: Text -> Text -> GetRolePolicy
- grpPolicyName :: Lens' GetRolePolicy Text
- grpRoleName :: Lens' GetRolePolicy Text
- data GetRolePolicyResponse
- getRolePolicyResponse :: Text -> Text -> Text -> GetRolePolicyResponse
- grprPolicyDocument :: Lens' GetRolePolicyResponse Text
- grprPolicyName :: Lens' GetRolePolicyResponse Text
- grprRoleName :: Lens' GetRolePolicyResponse Text
Request
data GetRolePolicy Source
Request constructor
GetRolePolicy
constructor.
The fields accessible through corresponding lenses are:
grpPolicyName
::
Text
grpRoleName
::
Text
Request lenses
grpPolicyName :: Lens' GetRolePolicy Text Source
The name of the policy document to get.
grpRoleName :: Lens' GetRolePolicy Text Source
The name of the role associated with the policy.
Response
Response constructor
GetRolePolicyResponse
constructor.
The fields accessible through corresponding lenses are:
Response lenses
grprPolicyDocument :: Lens' GetRolePolicyResponse Text Source
The policy document.
grprPolicyName :: Lens' GetRolePolicyResponse Text Source
The name of the policy.
grprRoleName :: Lens' GetRolePolicyResponse Text Source
The role the policy is associated with.