| 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 |
Amazonka.WorkMail.AssociateMemberToGroup
Description
Adds a member (user or group) to the group's set.
Synopsis
- data AssociateMemberToGroup = AssociateMemberToGroup' {}
- newAssociateMemberToGroup :: Text -> Text -> Text -> AssociateMemberToGroup
- associateMemberToGroup_organizationId :: Lens' AssociateMemberToGroup Text
- associateMemberToGroup_groupId :: Lens' AssociateMemberToGroup Text
- associateMemberToGroup_memberId :: Lens' AssociateMemberToGroup Text
- data AssociateMemberToGroupResponse = AssociateMemberToGroupResponse' {
- httpStatus :: Int
- newAssociateMemberToGroupResponse :: Int -> AssociateMemberToGroupResponse
- associateMemberToGroupResponse_httpStatus :: Lens' AssociateMemberToGroupResponse Int
Creating a Request
data AssociateMemberToGroup Source #
See: newAssociateMemberToGroup smart constructor.
Constructors
| AssociateMemberToGroup' | |
Instances
newAssociateMemberToGroup Source #
Arguments
| :: Text | |
| -> Text | |
| -> Text | |
| -> AssociateMemberToGroup |
Create a value of AssociateMemberToGroup 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:
AssociateMemberToGroup, associateMemberToGroup_organizationId - The organization under which the group exists.
$sel:groupId:AssociateMemberToGroup', associateMemberToGroup_groupId - The group to which the member (user or group) is associated.
$sel:memberId:AssociateMemberToGroup', associateMemberToGroup_memberId - The member (user or group) to associate to the group.
Request Lenses
associateMemberToGroup_organizationId :: Lens' AssociateMemberToGroup Text Source #
The organization under which the group exists.
associateMemberToGroup_groupId :: Lens' AssociateMemberToGroup Text Source #
The group to which the member (user or group) is associated.
associateMemberToGroup_memberId :: Lens' AssociateMemberToGroup Text Source #
The member (user or group) to associate to the group.
Destructuring the Response
data AssociateMemberToGroupResponse Source #
See: newAssociateMemberToGroupResponse smart constructor.
Constructors
| AssociateMemberToGroupResponse' | |
Fields
| |
Instances
newAssociateMemberToGroupResponse Source #
Create a value of AssociateMemberToGroupResponse 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:httpStatus:AssociateMemberToGroupResponse', associateMemberToGroupResponse_httpStatus - The response's http status code.
Response Lenses
associateMemberToGroupResponse_httpStatus :: Lens' AssociateMemberToGroupResponse Int Source #
The response's http status code.