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 |
Removes a member from a channel.
The x-amz-chime-bearer
request header is mandatory. Use the
AppInstanceUserArn
of the user that makes the API call as the value in
the header.
Synopsis
- data DeleteChannelMembership = DeleteChannelMembership' {
- chimeBearer :: Maybe Text
- channelArn :: Text
- memberArn :: Text
- newDeleteChannelMembership :: Text -> Text -> DeleteChannelMembership
- deleteChannelMembership_chimeBearer :: Lens' DeleteChannelMembership (Maybe Text)
- deleteChannelMembership_channelArn :: Lens' DeleteChannelMembership Text
- deleteChannelMembership_memberArn :: Lens' DeleteChannelMembership Text
- data DeleteChannelMembershipResponse = DeleteChannelMembershipResponse' {
- newDeleteChannelMembershipResponse :: DeleteChannelMembershipResponse
Creating a Request
data DeleteChannelMembership Source #
See: newDeleteChannelMembership
smart constructor.
DeleteChannelMembership' | |
|
Instances
newDeleteChannelMembership Source #
:: Text | |
-> Text | |
-> DeleteChannelMembership |
Create a value of DeleteChannelMembership
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:chimeBearer:DeleteChannelMembership'
, deleteChannelMembership_chimeBearer
- The AppInstanceUserArn
of the user that makes the API call.
$sel:channelArn:DeleteChannelMembership'
, deleteChannelMembership_channelArn
- The ARN of the channel from which you want to remove the user.
$sel:memberArn:DeleteChannelMembership'
, deleteChannelMembership_memberArn
- The ARN of the member that you're removing from the channel.
Request Lenses
deleteChannelMembership_chimeBearer :: Lens' DeleteChannelMembership (Maybe Text) Source #
The AppInstanceUserArn
of the user that makes the API call.
deleteChannelMembership_channelArn :: Lens' DeleteChannelMembership Text Source #
The ARN of the channel from which you want to remove the user.
deleteChannelMembership_memberArn :: Lens' DeleteChannelMembership Text Source #
The ARN of the member that you're removing from the channel.
Destructuring the Response
data DeleteChannelMembershipResponse Source #
See: newDeleteChannelMembershipResponse
smart constructor.
Instances
newDeleteChannelMembershipResponse :: DeleteChannelMembershipResponse Source #
Create a value of DeleteChannelMembershipResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.