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 |
Gets the service role associated with IoT Greengrass for your Amazon Web Services account in this Amazon Web Services Region. IoT Greengrass uses this role to verify the identity of client devices and manage core device connectivity information. For more information, see Greengrass service role in the IoT Greengrass Version 2 Developer Guide.
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 IoT Greengrass for
your Amazon Web Services account in this Amazon Web Services Region.
$sel:roleArn:GetServiceRoleForAccountResponse'
, getServiceRoleForAccountResponse_roleArn
- The ARN of the service role that is associated with IoT Greengrass for
your Amazon Web Services account in this Amazon Web Services Region.
$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 IoT Greengrass for your Amazon Web Services account in this Amazon Web Services Region.
getServiceRoleForAccountResponse_roleArn :: Lens' GetServiceRoleForAccountResponse (Maybe Text) Source #
The ARN of the service role that is associated with IoT Greengrass for your Amazon Web Services account in this Amazon Web Services Region.
getServiceRoleForAccountResponse_httpStatus :: Lens' GetServiceRoleForAccountResponse Int Source #
The response's http status code.