| 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 |
Amazonka.ChimeSDKMessaging.DeleteChannelMembership
Description
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' {
- channelArn :: Text
- memberArn :: Text
- chimeBearer :: Text
- newDeleteChannelMembership :: Text -> Text -> Text -> DeleteChannelMembership
- deleteChannelMembership_channelArn :: Lens' DeleteChannelMembership Text
- deleteChannelMembership_memberArn :: Lens' DeleteChannelMembership Text
- deleteChannelMembership_chimeBearer :: Lens' DeleteChannelMembership Text
- data DeleteChannelMembershipResponse = DeleteChannelMembershipResponse' {
- newDeleteChannelMembershipResponse :: DeleteChannelMembershipResponse
Creating a Request
data DeleteChannelMembership Source #
See: newDeleteChannelMembership smart constructor.
Constructors
| DeleteChannelMembership' | |
Fields
| |
Instances
newDeleteChannelMembership Source #
Arguments
| :: Text | |
| -> 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: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.
$sel:chimeBearer:DeleteChannelMembership', deleteChannelMembership_chimeBearer - The AppInstanceUserArn of the user that makes the API call.
Request Lenses
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.
deleteChannelMembership_chimeBearer :: Lens' DeleteChannelMembership Text Source #
The AppInstanceUserArn of the user that makes the API call.
Destructuring the Response
data DeleteChannelMembershipResponse Source #
See: newDeleteChannelMembershipResponse smart constructor.
Constructors
| DeleteChannelMembershipResponse' | |
Instances
newDeleteChannelMembershipResponse :: DeleteChannelMembershipResponse Source #
Create a value of DeleteChannelMembershipResponse with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.