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

Copyright(c) 2013-2015 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.AWS.IAM.GetRole

Contents

Description

Retrieves information about the specified role, including the role's path, GUID, ARN, and the policy granting permission to assume the role. For more information about ARNs, go to ARNs. For more information about roles, go to Working with Roles.

See: AWS API Reference for GetRole.

Synopsis

Creating a Request

getRole Source

Arguments

:: Text

grRoleName

-> GetRole 

Creates a value of GetRole with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

Request Lenses

grRoleName :: Lens' GetRole Text Source

The name of the role to get information about.

Destructuring the Response

getRoleResponse Source

Creates a value of GetRoleResponse with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

data GetRoleResponse Source

Contains the response to a successful GetRole request.

See: getRoleResponse smart constructor.

Response Lenses

grrsStatus :: Lens' GetRoleResponse Int Source

The response status code.

grrsRole :: Lens' GetRoleResponse Role Source

Information about the role.