stopSearchJob method

Future<void> stopSearchJob({
  1. required String searchJobIdentifier,
})

This operations ends a search job.

Only a search job with a status of RUNNING can be stopped.

May throw ConflictException. May throw ResourceNotFoundException.

Parameter searchJobIdentifier : The unique string that specifies the search job.

Implementation

Future<void> stopSearchJob({
  required String searchJobIdentifier,
}) async {
  final response = await _protocol.send(
    payload: null,
    method: 'PUT',
    requestUri:
        '/search-jobs/${Uri.encodeComponent(searchJobIdentifier)}/actions/cancel',
    exceptionFnMap: _exceptionFns,
  );
}