deleteChannelBan method
Removes a member from a channel's ban list.
May throw BadRequestException.
May throw ForbiddenException.
May throw ServiceFailureException.
May throw ServiceUnavailableException.
May throw ThrottledClientException.
May throw UnauthorizedClientException.
Parameter channelArn :
The ARN of the channel from which the AppInstanceUser was
banned.
Parameter chimeBearer :
The ARN of the AppInstanceUser or AppInstanceBot
that makes the API call.
Parameter memberArn :
The ARN of the AppInstanceUser that you want to reinstate.
Implementation
Future<void> deleteChannelBan({
required String channelArn,
required String chimeBearer,
required String memberArn,
}) async {
final headers = <String, String>{
'x-amz-chime-bearer': chimeBearer.toString(),
};
await _protocol.send(
payload: null,
method: 'DELETE',
requestUri:
'/channels/${Uri.encodeComponent(channelArn)}/bans/${Uri.encodeComponent(memberArn)}',
headers: headers,
exceptionFnMap: _exceptionFns,
);
}