Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Retrieves the service role that is attached to your account.
Synopsis
- data GetServiceRoleForAccount = GetServiceRoleForAccount' {
- newGetServiceRoleForAccount :: GetServiceRoleForAccount
- data GetServiceRoleForAccountResponse = GetServiceRoleForAccountResponse' {
- associatedAt :: Maybe Text
- roleArn :: Maybe Text
- httpStatus :: Int
- newGetServiceRoleForAccountResponse :: Int -> GetServiceRoleForAccountResponse
- getServiceRoleForAccountResponse_associatedAt :: Lens' GetServiceRoleForAccountResponse (Maybe Text)
- getServiceRoleForAccountResponse_roleArn :: Lens' GetServiceRoleForAccountResponse (Maybe Text)
- getServiceRoleForAccountResponse_httpStatus :: Lens' GetServiceRoleForAccountResponse Int
Creating a Request
data GetServiceRoleForAccount Source #
See: newGetServiceRoleForAccount
smart constructor.
Instances
newGetServiceRoleForAccount :: GetServiceRoleForAccount Source #
Create a value of GetServiceRoleForAccount
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
Destructuring the Response
data GetServiceRoleForAccountResponse Source #
See: newGetServiceRoleForAccountResponse
smart constructor.
GetServiceRoleForAccountResponse' | |
|
Instances
newGetServiceRoleForAccountResponse Source #
Create a value of GetServiceRoleForAccountResponse
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:associatedAt:GetServiceRoleForAccountResponse'
, getServiceRoleForAccountResponse_associatedAt
- The time when the service role was associated with the account.
$sel:roleArn:GetServiceRoleForAccountResponse'
, getServiceRoleForAccountResponse_roleArn
- The ARN of the role which is associated with the account.
$sel:httpStatus:GetServiceRoleForAccountResponse'
, getServiceRoleForAccountResponse_httpStatus
- The response's http status code.
Response Lenses
getServiceRoleForAccountResponse_associatedAt :: Lens' GetServiceRoleForAccountResponse (Maybe Text) Source #
The time when the service role was associated with the account.
getServiceRoleForAccountResponse_roleArn :: Lens' GetServiceRoleForAccountResponse (Maybe Text) Source #
The ARN of the role which is associated with the account.
getServiceRoleForAccountResponse_httpStatus :: Lens' GetServiceRoleForAccountResponse Int Source #
The response's http status code.