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 |
Adds a member to a chat room in an Amazon Chime Enterprise account. A member can be either a user or a bot. The member role designates whether the member is a chat room administrator or a general chat room member.
Synopsis
- data CreateRoomMembership = CreateRoomMembership' {}
- newCreateRoomMembership :: Text -> Text -> Text -> CreateRoomMembership
- createRoomMembership_role :: Lens' CreateRoomMembership (Maybe RoomMembershipRole)
- createRoomMembership_accountId :: Lens' CreateRoomMembership Text
- createRoomMembership_roomId :: Lens' CreateRoomMembership Text
- createRoomMembership_memberId :: Lens' CreateRoomMembership Text
- data CreateRoomMembershipResponse = CreateRoomMembershipResponse' {}
- newCreateRoomMembershipResponse :: Int -> CreateRoomMembershipResponse
- createRoomMembershipResponse_roomMembership :: Lens' CreateRoomMembershipResponse (Maybe RoomMembership)
- createRoomMembershipResponse_httpStatus :: Lens' CreateRoomMembershipResponse Int
Creating a Request
data CreateRoomMembership Source #
See: newCreateRoomMembership
smart constructor.
Instances
newCreateRoomMembership Source #
:: Text | |
-> Text | |
-> Text | |
-> CreateRoomMembership |
Create a value of CreateRoomMembership
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':CreateRoomMembership'
, createRoomMembership_role
- The role of the member.
$sel:accountId:CreateRoomMembership'
, createRoomMembership_accountId
- The Amazon Chime account ID.
$sel:roomId:CreateRoomMembership'
, createRoomMembership_roomId
- The room ID.
$sel:memberId:CreateRoomMembership'
, createRoomMembership_memberId
- The Amazon Chime member ID (user ID or bot ID).
Request Lenses
createRoomMembership_role :: Lens' CreateRoomMembership (Maybe RoomMembershipRole) Source #
The role of the member.
createRoomMembership_accountId :: Lens' CreateRoomMembership Text Source #
The Amazon Chime account ID.
createRoomMembership_roomId :: Lens' CreateRoomMembership Text Source #
The room ID.
createRoomMembership_memberId :: Lens' CreateRoomMembership Text Source #
The Amazon Chime member ID (user ID or bot ID).
Destructuring the Response
data CreateRoomMembershipResponse Source #
See: newCreateRoomMembershipResponse
smart constructor.
CreateRoomMembershipResponse' | |
|
Instances
newCreateRoomMembershipResponse Source #
Create a value of CreateRoomMembershipResponse
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:CreateRoomMembershipResponse'
, createRoomMembershipResponse_roomMembership
- The room membership details.
$sel:httpStatus:CreateRoomMembershipResponse'
, createRoomMembershipResponse_httpStatus
- The response's http status code.
Response Lenses
createRoomMembershipResponse_roomMembership :: Lens' CreateRoomMembershipResponse (Maybe RoomMembership) Source #
The room membership details.
createRoomMembershipResponse_httpStatus :: Lens' CreateRoomMembershipResponse Int Source #
The response's http status code.