describeChannelBan method

Future<DescribeChannelBanResponse> describeChannelBan({
  1. required String channelArn,
  2. required String memberArn,
})

Returns the full details of a channel ban.

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 from which the user is banned.

Parameter memberArn : The ARN of the member being banned.

Implementation

Future<DescribeChannelBanResponse> describeChannelBan({
  required String channelArn,
  required String memberArn,
}) async {
  ArgumentError.checkNotNull(channelArn, 'channelArn');
  _s.validateStringLength(
    'channelArn',
    channelArn,
    5,
    1600,
    isRequired: true,
  );
  ArgumentError.checkNotNull(memberArn, 'memberArn');
  _s.validateStringLength(
    'memberArn',
    memberArn,
    5,
    1600,
    isRequired: true,
  );
  final response = await _protocol.send(
    payload: null,
    method: 'GET',
    requestUri:
        '/channels/${Uri.encodeComponent(channelArn)}/bans/${Uri.encodeComponent(memberArn)}',
    exceptionFnMap: _exceptionFns,
  );
  return DescribeChannelBanResponse.fromJson(response);
}