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 a group. Your 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.
Synopsis
- data AssociateRoleToGroup = AssociateRoleToGroup' {}
- newAssociateRoleToGroup :: Text -> Text -> AssociateRoleToGroup
- associateRoleToGroup_groupId :: Lens' AssociateRoleToGroup Text
- associateRoleToGroup_roleArn :: Lens' AssociateRoleToGroup Text
- data AssociateRoleToGroupResponse = AssociateRoleToGroupResponse' {
- associatedAt :: Maybe Text
- httpStatus :: Int
- newAssociateRoleToGroupResponse :: Int -> AssociateRoleToGroupResponse
- associateRoleToGroupResponse_associatedAt :: Lens' AssociateRoleToGroupResponse (Maybe Text)
- associateRoleToGroupResponse_httpStatus :: Lens' AssociateRoleToGroupResponse Int
Creating a Request
data AssociateRoleToGroup Source #
See: newAssociateRoleToGroup
smart constructor.
Instances
newAssociateRoleToGroup Source #
:: Text | |
-> Text | |
-> AssociateRoleToGroup |
Create a value of AssociateRoleToGroup
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:groupId:AssociateRoleToGroup'
, associateRoleToGroup_groupId
- The ID of the Greengrass group.
$sel:roleArn:AssociateRoleToGroup'
, associateRoleToGroup_roleArn
- The ARN of the role you wish to associate with this group. The existence
of the role is not validated.
Request Lenses
associateRoleToGroup_groupId :: Lens' AssociateRoleToGroup Text Source #
The ID of the Greengrass group.
associateRoleToGroup_roleArn :: Lens' AssociateRoleToGroup Text Source #
The ARN of the role you wish to associate with this group. The existence of the role is not validated.
Destructuring the Response
data AssociateRoleToGroupResponse Source #
See: newAssociateRoleToGroupResponse
smart constructor.
AssociateRoleToGroupResponse' | |
|
Instances
newAssociateRoleToGroupResponse Source #
Create a value of AssociateRoleToGroupResponse
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:AssociateRoleToGroupResponse'
, associateRoleToGroupResponse_associatedAt
- The time, in milliseconds since the epoch, when the role ARN was
associated with the group.
$sel:httpStatus:AssociateRoleToGroupResponse'
, associateRoleToGroupResponse_httpStatus
- The response's http status code.
Response Lenses
associateRoleToGroupResponse_associatedAt :: Lens' AssociateRoleToGroupResponse (Maybe Text) Source #
The time, in milliseconds since the epoch, when the role ARN was associated with the group.
associateRoleToGroupResponse_httpStatus :: Lens' AssociateRoleToGroupResponse Int Source #
The response's http status code.