Copyright | (c) 2013-2016 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@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.
Policies returned by this API are URL-encoded compliant with RFC 3986. You can use a URL decoding method to convert the policy back to plain JSON text. For example, if you use Java, you can use the decode
method of the 'java.net.URLDecoder' utility class in the Java SDK. Other languages and SDKs provide similar functionality.
- 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:
See: getRole
smart constructor.
Request Lenses
grRoleName :: Lens' GetRole Text Source #
The name of the IAM role to get information about.
The regex pattern for this parameter is 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:
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.