deleteChannelBan method
Removes a user from a channel's ban list.
May throw BadRequestException. May throw ForbiddenException. May throw UnauthorizedClientException. May throw ThrottledClientException. May throw ServiceUnavailableException. May throw ServiceFailureException.
Parameter channelArn
:
The ARN of the channel from which the app instance user was banned.
Parameter memberArn
:
The ARN of the app instance user that you want to reinstate.
Implementation
Future<void> deleteChannelBan({
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,
);
await _protocol.send(
payload: null,
method: 'DELETE',
requestUri:
'/channels/${Uri.encodeComponent(channelArn)}/bans/${Uri.encodeComponent(memberArn)}',
exceptionFnMap: _exceptionFns,
);
}