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

Safe HaskellNone
LanguageHaskell2010

Network.AWS.IAM.GetRolePolicy

Contents

Description

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

Synopsis

Request

Request constructor

getRolePolicy Source

GetRolePolicy constructor.

The fields accessible through corresponding lenses are:

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

Response lenses

grprRoleName :: Lens' GetRolePolicyResponse Text Source

The role the policy is associated with.