describeChannelBan method
Returns the full details of a channel ban.
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 from which the user is banned.
Parameter chimeBearer :
The ARN of the AppInstanceUser or AppInstanceBot
that makes the API call.
Parameter memberArn :
The AppInstanceUserArn of the member being banned.
Implementation
Future<DescribeChannelBanResponse> describeChannelBan({
required String channelArn,
required String chimeBearer,
required String memberArn,
}) 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)}/bans/${Uri.encodeComponent(memberArn)}',
headers: headers,
exceptionFnMap: _exceptionFns,
);
return DescribeChannelBanResponse.fromJson(response);
}