Copyright | (c) 2013-2021 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 |
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 operation 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.
Synopsis
- data GetRole = GetRole' {}
- newGetRole :: Text -> GetRole
- getRole_roleName :: Lens' GetRole Text
- data GetRoleResponse = GetRoleResponse' {
- httpStatus :: Int
- role' :: Role
- newGetRoleResponse :: Int -> Role -> GetRoleResponse
- getRoleResponse_httpStatus :: Lens' GetRoleResponse Int
- getRoleResponse_role :: Lens' GetRoleResponse Role
Creating a Request
See: newGetRole
smart constructor.
GetRole' | |
|
Instances
Eq GetRole Source # | |
Read GetRole Source # | |
Show GetRole Source # | |
Generic GetRole Source # | |
NFData GetRole Source # | |
Defined in Amazonka.IAM.GetRole | |
Hashable GetRole Source # | |
Defined in Amazonka.IAM.GetRole | |
AWSRequest GetRole Source # | |
Defined in Amazonka.IAM.GetRole type AWSResponse GetRole # request :: GetRole -> Request GetRole # response :: MonadResource m => Logger -> Service -> Proxy GetRole -> ClientResponse ClientBody -> m (Either Error (ClientResponse (AWSResponse GetRole))) # | |
ToHeaders GetRole Source # | |
Defined in Amazonka.IAM.GetRole | |
ToPath GetRole Source # | |
Defined in Amazonka.IAM.GetRole toPath :: GetRole -> ByteString # | |
ToQuery GetRole Source # | |
Defined in Amazonka.IAM.GetRole toQuery :: GetRole -> QueryString # | |
type Rep GetRole Source # | |
Defined in Amazonka.IAM.GetRole | |
type AWSResponse GetRole Source # | |
Defined in Amazonka.IAM.GetRole |
Create a value of GetRole
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:roleName:GetRole'
, getRole_roleName
- The name of the IAM role to get information about.
This parameter allows (through 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: _+=,.@-
Request Lenses
getRole_roleName :: Lens' GetRole Text Source #
The name of the IAM role to get information about.
This parameter allows (through 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
data GetRoleResponse Source #
Contains the response to a successful GetRole request.
See: newGetRoleResponse
smart constructor.
GetRoleResponse' | |
|
Instances
Create a value of GetRoleResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:httpStatus:GetRoleResponse'
, getRoleResponse_httpStatus
- The response's http status code.
$sel:role':GetRoleResponse'
, getRoleResponse_role
- A structure containing details about the IAM role.
Response Lenses
getRoleResponse_httpStatus :: Lens' GetRoleResponse Int Source #
The response's http status code.
getRoleResponse_role :: Lens' GetRoleResponse Role Source #
A structure containing details about the IAM role.