deleteSession method

Future<void> deleteSession({
  1. required String instanceId,
  2. required String sessionId,
})

Deletes a session for the specified Connect Customer instance.

May throw AccessDeniedException. May throw InternalServiceException. May throw InvalidParameterException. May throw InvalidRequestException. May throw ResourceNotFoundException. May throw ThrottlingException.

Parameter instanceId : The identifier of the Connect Customer instance. You can find the instance ID in the Amazon Resource Name (ARN) of the instance.

Parameter sessionId : The identifier of the session to delete.

Implementation

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