describeChannelModerator method

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

Returns the full details of a single ChannelModerator.

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

Parameter chimeBearer : The ARN of the AppInstanceUser or AppInstanceBot that makes the API call.

Implementation

Future<DescribeChannelModeratorResponse> describeChannelModerator({
  required String channelArn,
  required String channelModeratorArn,
  required String chimeBearer,
}) async {
  final headers = <String, String>{
    'x-amz-chime-bearer': chimeBearer.toString(),
  };
  final response = await _protocol.send(
    payload: null,
    method: 'GET',
    requestUri:
        '/channels/${Uri.encodeComponent(channelArn)}/moderators/${Uri.encodeComponent(channelModeratorArn)}',
    headers: headers,
    exceptionFnMap: _exceptionFns,
  );
  return DescribeChannelModeratorResponse.fromJson(response);
}