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 up to 50 members to a chat room in an Amazon Chime Enterprise account. Members can be users or bots. The member role designates whether the member is a chat room administrator or a general chat room member.
Synopsis
- data BatchCreateRoomMembership = BatchCreateRoomMembership' {
- accountId :: Text
- roomId :: Text
- membershipItemList :: [MembershipItem]
- newBatchCreateRoomMembership :: Text -> Text -> BatchCreateRoomMembership
- batchCreateRoomMembership_accountId :: Lens' BatchCreateRoomMembership Text
- batchCreateRoomMembership_roomId :: Lens' BatchCreateRoomMembership Text
- batchCreateRoomMembership_membershipItemList :: Lens' BatchCreateRoomMembership [MembershipItem]
- data BatchCreateRoomMembershipResponse = BatchCreateRoomMembershipResponse' {
- errors :: Maybe [MemberError]
- httpStatus :: Int
- newBatchCreateRoomMembershipResponse :: Int -> BatchCreateRoomMembershipResponse
- batchCreateRoomMembershipResponse_errors :: Lens' BatchCreateRoomMembershipResponse (Maybe [MemberError])
- batchCreateRoomMembershipResponse_httpStatus :: Lens' BatchCreateRoomMembershipResponse Int
Creating a Request
data BatchCreateRoomMembership Source #
See: newBatchCreateRoomMembership
smart constructor.
BatchCreateRoomMembership' | |
|
Instances
newBatchCreateRoomMembership Source #
:: Text | |
-> Text | |
-> BatchCreateRoomMembership |
Create a value of BatchCreateRoomMembership
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:accountId:BatchCreateRoomMembership'
, batchCreateRoomMembership_accountId
- The Amazon Chime account ID.
$sel:roomId:BatchCreateRoomMembership'
, batchCreateRoomMembership_roomId
- The room ID.
$sel:membershipItemList:BatchCreateRoomMembership'
, batchCreateRoomMembership_membershipItemList
- The list of membership items.
Request Lenses
batchCreateRoomMembership_accountId :: Lens' BatchCreateRoomMembership Text Source #
The Amazon Chime account ID.
batchCreateRoomMembership_roomId :: Lens' BatchCreateRoomMembership Text Source #
The room ID.
batchCreateRoomMembership_membershipItemList :: Lens' BatchCreateRoomMembership [MembershipItem] Source #
The list of membership items.
Destructuring the Response
data BatchCreateRoomMembershipResponse Source #
See: newBatchCreateRoomMembershipResponse
smart constructor.
BatchCreateRoomMembershipResponse' | |
|
Instances
Eq BatchCreateRoomMembershipResponse Source # | |
Read BatchCreateRoomMembershipResponse Source # | |
Show BatchCreateRoomMembershipResponse Source # | |
Generic BatchCreateRoomMembershipResponse Source # | |
NFData BatchCreateRoomMembershipResponse Source # | |
Defined in Amazonka.Chime.BatchCreateRoomMembership rnf :: BatchCreateRoomMembershipResponse -> () # | |
type Rep BatchCreateRoomMembershipResponse Source # | |
Defined in Amazonka.Chime.BatchCreateRoomMembership type Rep BatchCreateRoomMembershipResponse = D1 ('MetaData "BatchCreateRoomMembershipResponse" "Amazonka.Chime.BatchCreateRoomMembership" "libZSservicesZSamazonka-chimeZSamazonka-chime" 'False) (C1 ('MetaCons "BatchCreateRoomMembershipResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "errors") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [MemberError])) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))) |
newBatchCreateRoomMembershipResponse Source #
Create a value of BatchCreateRoomMembershipResponse
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:errors:BatchCreateRoomMembershipResponse'
, batchCreateRoomMembershipResponse_errors
- If the action fails for one or more of the member IDs in the request, a
list of the member IDs is returned, along with error codes and error
messages.
$sel:httpStatus:BatchCreateRoomMembershipResponse'
, batchCreateRoomMembershipResponse_httpStatus
- The response's http status code.
Response Lenses
batchCreateRoomMembershipResponse_errors :: Lens' BatchCreateRoomMembershipResponse (Maybe [MemberError]) Source #
If the action fails for one or more of the member IDs in the request, a list of the member IDs is returned, along with error codes and error messages.
batchCreateRoomMembershipResponse_httpStatus :: Lens' BatchCreateRoomMembershipResponse Int Source #
The response's http status code.