describeChannelModerator method

Future<DescribeChannelModeratorResponse> describeChannelModerator({
  1. required String channelArn,
  2. required String channelModeratorArn,
})

Returns the full details of a single ChannelModerator.

May throw BadRequestException. May throw ForbiddenException. May throw NotFoundException. 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 channel moderator.

Implementation

Future<DescribeChannelModeratorResponse> describeChannelModerator({
  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,
  );
  final response = await _protocol.send(
    payload: null,
    method: 'GET',
    requestUri:
        '/channels/${Uri.encodeComponent(channelArn)}/moderators/${Uri.encodeComponent(channelModeratorArn)}',
    exceptionFnMap: _exceptionFns,
  );
  return DescribeChannelModeratorResponse.fromJson(response);
}