deleteChannelModerator method
Deletes a channel moderator.
May throw BadRequestException.
May throw ForbiddenException.
May throw ServiceFailureException.
May throw ServiceUnavailableException.
May throw ThrottledClientException.
May throw UnauthorizedClientException.
Parameter channelArn :
The ARN of the channel.
Parameter channelModeratorArn :
The AppInstanceUserArn of the moderator being deleted.
Parameter chimeBearer :
The ARN of the AppInstanceUser or AppInstanceBot
that makes the API call.
Implementation
Future<void> deleteChannelModerator({
required String channelArn,
required String channelModeratorArn,
required String chimeBearer,
}) async {
final headers = <String, String>{
'x-amz-chime-bearer': chimeBearer.toString(),
};
await _protocol.send(
payload: null,
method: 'DELETE',
requestUri:
'/channels/${Uri.encodeComponent(channelArn)}/moderators/${Uri.encodeComponent(channelModeratorArn)}',
headers: headers,
exceptionFnMap: _exceptionFns,
);
}