deleteChannelModerator method

Future<void> deleteChannelModerator({
  1. required String channelArn,
  2. required String channelModeratorArn,
})

Deletes a channel moderator.

May throw BadRequestException. May throw ForbiddenException. May throw UnauthorizedClientException. May throw ThrottledClientException. May throw ServiceUnavailableException. May throw ServiceFailureException.

Parameter channelArn : The ARN of the channel.

Parameter channelModeratorArn : The ARN of the moderator being deleted.

Implementation

Future<void> deleteChannelModerator({
  required String channelArn,
  required String channelModeratorArn,
}) async {
  ArgumentError.checkNotNull(channelArn, 'channelArn');
  _s.validateStringLength(
    'channelArn',
    channelArn,
    5,
    1600,
    isRequired: true,
  );
  ArgumentError.checkNotNull(channelModeratorArn, 'channelModeratorArn');
  _s.validateStringLength(
    'channelModeratorArn',
    channelModeratorArn,
    5,
    1600,
    isRequired: true,
  );
  await _protocol.send(
    payload: null,
    method: 'DELETE',
    requestUri:
        '/channels/${Uri.encodeComponent(channelArn)}/moderators/${Uri.encodeComponent(channelModeratorArn)}',
    exceptionFnMap: _exceptionFns,
  );
}