delete_channel_membership
(**kwargs)¶Removes a member from a channel.
Note
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.
See also: AWS API Documentation
Request Syntax
response = client.delete_channel_membership(
ChannelArn='string',
MemberArn='string',
ChimeBearer='string',
SubChannelId='string'
)
[REQUIRED]
The ARN of the channel from which you want to remove the user.
[REQUIRED]
The AppInstanceUserArn
of the member that you're removing from the channel.
[REQUIRED]
The AppInstanceUserArn
of the user that makes the API call.
The ID of the SubChannel in the request.
Note
Only for use by moderators.
None
Exceptions
ChimeSDKMessaging.Client.exceptions.BadRequestException
ChimeSDKMessaging.Client.exceptions.ForbiddenException
ChimeSDKMessaging.Client.exceptions.UnauthorizedClientException
ChimeSDKMessaging.Client.exceptions.ConflictException
ChimeSDKMessaging.Client.exceptions.ThrottledClientException
ChimeSDKMessaging.Client.exceptions.ServiceUnavailableException
ChimeSDKMessaging.Client.exceptions.ServiceFailureException