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 a group. Your AWS Greengrass core will use the role to access AWS cloud services. The role's permissions should allow Greengrass core Lambda functions to perform actions against the cloud.
- associateRoleToGroup :: Text -> AssociateRoleToGroup
- data AssociateRoleToGroup
- artgRoleARN :: Lens' AssociateRoleToGroup (Maybe Text)
- artgGroupId :: Lens' AssociateRoleToGroup Text
- associateRoleToGroupResponse :: Int -> AssociateRoleToGroupResponse
- data AssociateRoleToGroupResponse
- artgrsAssociatedAt :: Lens' AssociateRoleToGroupResponse (Maybe Text)
- artgrsResponseStatus :: Lens' AssociateRoleToGroupResponse Int
Creating a Request
Creates a value of AssociateRoleToGroup
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
artgRoleARN
- The ARN of the role you wish to associate with this group.artgGroupId
- The ID of the AWS Greengrass group.
data AssociateRoleToGroup Source #
See: associateRoleToGroup
smart constructor.
Request Lenses
artgRoleARN :: Lens' AssociateRoleToGroup (Maybe Text) Source #
The ARN of the role you wish to associate with this group.
artgGroupId :: Lens' AssociateRoleToGroup Text Source #
The ID of the AWS Greengrass group.
Destructuring the Response
associateRoleToGroupResponse Source #
Creates a value of AssociateRoleToGroupResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
artgrsAssociatedAt
- The time, in milliseconds since the epoch, when the role ARN was associated with the group.artgrsResponseStatus
- -- | The response status code.
data AssociateRoleToGroupResponse Source #
See: associateRoleToGroupResponse
smart constructor.
Response Lenses
artgrsAssociatedAt :: Lens' AssociateRoleToGroupResponse (Maybe Text) Source #
The time, in milliseconds since the epoch, when the role ARN was associated with the group.
artgrsResponseStatus :: Lens' AssociateRoleToGroupResponse Int Source #
- - | The response status code.