Copyright | (c) 2013-2018 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 |
Language | Haskell2010 |
Associates a role with your account. AWS 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'
.
- associateServiceRoleToAccount :: AssociateServiceRoleToAccount
- data AssociateServiceRoleToAccount
- asrtaRoleARN :: Lens' AssociateServiceRoleToAccount (Maybe Text)
- associateServiceRoleToAccountResponse :: Int -> AssociateServiceRoleToAccountResponse
- data AssociateServiceRoleToAccountResponse
- asrtarsAssociatedAt :: Lens' AssociateServiceRoleToAccountResponse (Maybe Text)
- asrtarsResponseStatus :: Lens' AssociateServiceRoleToAccountResponse Int
Creating a Request
associateServiceRoleToAccount :: AssociateServiceRoleToAccount Source #
Creates a value of AssociateServiceRoleToAccount
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
asrtaRoleARN
- The ARN of the service role you wish to associate with your account.
data AssociateServiceRoleToAccount Source #
See: associateServiceRoleToAccount
smart constructor.
Request Lenses
asrtaRoleARN :: Lens' AssociateServiceRoleToAccount (Maybe Text) Source #
The ARN of the service role you wish to associate with your account.
Destructuring the Response
associateServiceRoleToAccountResponse Source #
Creates a value of AssociateServiceRoleToAccountResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
asrtarsAssociatedAt
- The time when the service role was associated with the account.asrtarsResponseStatus
- -- | The response status code.
data AssociateServiceRoleToAccountResponse Source #
See: associateServiceRoleToAccountResponse
smart constructor.
Response Lenses
asrtarsAssociatedAt :: Lens' AssociateServiceRoleToAccountResponse (Maybe Text) Source #
The time when the service role was associated with the account.
asrtarsResponseStatus :: Lens' AssociateServiceRoleToAccountResponse Int Source #
- - | The response status code.