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 |
Associates a Greengrass service role 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. The role must include the AWSGreengrassResourceAccessRolePolicy managed policy or a custom policy that defines equivalent permissions for the IoT Greengrass features that you use. For more information, see Greengrass service role in the IoT Greengrass Version 2 Developer Guide.
Synopsis
- data AssociateServiceRoleToAccount = AssociateServiceRoleToAccount' {}
- newAssociateServiceRoleToAccount :: Text -> AssociateServiceRoleToAccount
- associateServiceRoleToAccount_roleArn :: Lens' AssociateServiceRoleToAccount Text
- data AssociateServiceRoleToAccountResponse = AssociateServiceRoleToAccountResponse' {
- associatedAt :: Maybe Text
- httpStatus :: Int
- newAssociateServiceRoleToAccountResponse :: Int -> AssociateServiceRoleToAccountResponse
- associateServiceRoleToAccountResponse_associatedAt :: Lens' AssociateServiceRoleToAccountResponse (Maybe Text)
- associateServiceRoleToAccountResponse_httpStatus :: Lens' AssociateServiceRoleToAccountResponse Int
Creating a Request
data AssociateServiceRoleToAccount Source #
See: newAssociateServiceRoleToAccount
smart constructor.
Instances
newAssociateServiceRoleToAccount Source #
Create a value of AssociateServiceRoleToAccount
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:roleArn:AssociateServiceRoleToAccount'
, associateServiceRoleToAccount_roleArn
- The Amazon Resource Name (ARN) of the service role to associate with IoT
Greengrass for your Amazon Web Services account in this Amazon Web
Services Region.
Request Lenses
associateServiceRoleToAccount_roleArn :: Lens' AssociateServiceRoleToAccount Text Source #
The Amazon Resource Name (ARN) of the service role to associate with IoT Greengrass for your Amazon Web Services account in this Amazon Web Services Region.
Destructuring the Response
data AssociateServiceRoleToAccountResponse Source #
See: newAssociateServiceRoleToAccountResponse
smart constructor.
AssociateServiceRoleToAccountResponse' | |
|
Instances
newAssociateServiceRoleToAccountResponse Source #
Create a value of AssociateServiceRoleToAccountResponse
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:AssociateServiceRoleToAccountResponse'
, associateServiceRoleToAccountResponse_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:httpStatus:AssociateServiceRoleToAccountResponse'
, associateServiceRoleToAccountResponse_httpStatus
- The response's http status code.
Response Lenses
associateServiceRoleToAccountResponse_associatedAt :: Lens' AssociateServiceRoleToAccountResponse (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.
associateServiceRoleToAccountResponse_httpStatus :: Lens' AssociateServiceRoleToAccountResponse Int Source #
The response's http status code.