expireSession method

Future<void> expireSession({
  1. required String portalId,
  2. required String sessionId,
})

Expires an active secure browser session.

May throw AccessDeniedException. May throw InternalServerException. May throw ResourceNotFoundException. May throw ThrottlingException. May throw ValidationException.

Parameter portalId : The ID of the web portal for the session.

Parameter sessionId : The ID of the session to expire.

Implementation

Future<void> expireSession({
  required String portalId,
  required String sessionId,
}) async {
  final response = await _protocol.send(
    payload: null,
    method: 'DELETE',
    requestUri:
        '/portals/${Uri.encodeComponent(portalId)}/sessions/${Uri.encodeComponent(sessionId)}',
    exceptionFnMap: _exceptionFns,
  );
}