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 |
Associates a role with your account. AWS IoT Greengrass will use the role to access your Lambda functions and AWS IoT resources. This is necessary for deployments to succeed. The role must have at least minimum permissions in the policy ''AWSGreengrassResourceAccessRolePolicy''.
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 ARN of the service role you wish to associate with your account.
Request Lenses
associateServiceRoleToAccount_roleArn :: Lens' AssociateServiceRoleToAccount Text Source #
The ARN of the service role you wish to associate with your account.
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 the account.
$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 the account.
associateServiceRoleToAccountResponse_httpStatus :: Lens' AssociateServiceRoleToAccountResponse Int Source #
The response's http status code.