logoutUser method

Future<void> logoutUser({
  1. required String accountId,
  2. required String userId,
})

Logs out the specified user from all of the devices they are currently logged into.

May throw BadRequestException. May throw ForbiddenException. May throw NotFoundException. May throw ServiceFailureException. May throw ServiceUnavailableException. May throw ThrottledClientException. May throw UnauthorizedClientException.

Parameter accountId : The Amazon Chime account ID.

Parameter userId : The user ID.

Implementation

Future<void> logoutUser({
  required String accountId,
  required String userId,
}) async {
  final response = await _protocol.send(
    payload: null,
    method: 'POST',
    requestUri:
        '/accounts/${Uri.encodeComponent(accountId)}/users/${Uri.encodeComponent(userId)}?operation=logout',
    exceptionFnMap: _exceptionFns,
  );
}