Copyright | (c) 2013-2017 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
Retrieves information about the specified role, including the role's path, GUID, ARN, and the role's trust policy that grants permission to assume the role. For more information about roles, see Working with Roles .
- getRole :: Text -> GetRole
- data GetRole
- grRoleName :: Lens' GetRole Text
- getRoleResponse :: Int -> Role -> GetRoleResponse
- data GetRoleResponse
- grrsResponseStatus :: Lens' GetRoleResponse Int
- grrsRole :: Lens' GetRoleResponse Role
Creating a Request
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:
grRoleName
- The name of the IAM role to get information about. This parameter allows (per its regex pattern ) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: _+=,.@-
See: getRole
smart constructor.
Request Lenses
grRoleName :: Lens' GetRole Text Source #
The name of the IAM role to get information about. This parameter allows (per its regex pattern ) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: _+=,.@-
Destructuring the Response
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:
grrsResponseStatus
- -- | The response status code.grrsRole
- A structure containing details about the IAM role.
data GetRoleResponse Source #
Contains the response to a successful GetRole
request.
See: getRoleResponse
smart constructor.
Response Lenses
grrsResponseStatus :: Lens' GetRoleResponse Int Source #
- - | The response status code.