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 |
Updates room membership details, such as the member role, for a room in an Amazon Chime Enterprise account. The member role designates whether the member is a chat room administrator or a general chat room member. The member role can be updated only for user IDs.
Synopsis
- data UpdateRoomMembership = UpdateRoomMembership' {}
- newUpdateRoomMembership :: Text -> Text -> Text -> UpdateRoomMembership
- updateRoomMembership_role :: Lens' UpdateRoomMembership (Maybe RoomMembershipRole)
- updateRoomMembership_accountId :: Lens' UpdateRoomMembership Text
- updateRoomMembership_roomId :: Lens' UpdateRoomMembership Text
- updateRoomMembership_memberId :: Lens' UpdateRoomMembership Text
- data UpdateRoomMembershipResponse = UpdateRoomMembershipResponse' {}
- newUpdateRoomMembershipResponse :: Int -> UpdateRoomMembershipResponse
- updateRoomMembershipResponse_roomMembership :: Lens' UpdateRoomMembershipResponse (Maybe RoomMembership)
- updateRoomMembershipResponse_httpStatus :: Lens' UpdateRoomMembershipResponse Int
Creating a Request
data UpdateRoomMembership Source #
See: newUpdateRoomMembership
smart constructor.
Instances
newUpdateRoomMembership Source #
:: Text | |
-> Text | |
-> Text | |
-> UpdateRoomMembership |
Create a value of UpdateRoomMembership
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:role':UpdateRoomMembership'
, updateRoomMembership_role
- The role of the member.
$sel:accountId:UpdateRoomMembership'
, updateRoomMembership_accountId
- The Amazon Chime account ID.
$sel:roomId:UpdateRoomMembership'
, updateRoomMembership_roomId
- The room ID.
$sel:memberId:UpdateRoomMembership'
, updateRoomMembership_memberId
- The member ID.
Request Lenses
updateRoomMembership_role :: Lens' UpdateRoomMembership (Maybe RoomMembershipRole) Source #
The role of the member.
updateRoomMembership_accountId :: Lens' UpdateRoomMembership Text Source #
The Amazon Chime account ID.
updateRoomMembership_roomId :: Lens' UpdateRoomMembership Text Source #
The room ID.
updateRoomMembership_memberId :: Lens' UpdateRoomMembership Text Source #
The member ID.
Destructuring the Response
data UpdateRoomMembershipResponse Source #
See: newUpdateRoomMembershipResponse
smart constructor.
UpdateRoomMembershipResponse' | |
|
Instances
newUpdateRoomMembershipResponse Source #
Create a value of UpdateRoomMembershipResponse
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:roomMembership:UpdateRoomMembershipResponse'
, updateRoomMembershipResponse_roomMembership
- The room membership details.
$sel:httpStatus:UpdateRoomMembershipResponse'
, updateRoomMembershipResponse_httpStatus
- The response's http status code.
Response Lenses
updateRoomMembershipResponse_roomMembership :: Lens' UpdateRoomMembershipResponse (Maybe RoomMembership) Source #
The room membership details.
updateRoomMembershipResponse_httpStatus :: Lens' UpdateRoomMembershipResponse Int Source #
The response's http status code.