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

Safe HaskellNone
LanguageHaskell2010

Network.AWS.IAM.GetRolePolicy

Contents

Description

Retrieves the specified inline policy document that is embedded with the specified role.

A role can also have managed policies attached to it. To retrieve a managed policy document that is attached to a role, 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.

For more information about roles, go to Using Roles to Delegate Permissionsand Federate Identities.

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

Synopsis

Request

Request constructor

getRolePolicy Source

Arguments

:: Text

grpRoleName

-> Text

grpPolicyName

-> GetRolePolicy 

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

getRolePolicyResponse Source

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.