cancelJob method
This operation cancels a job. Jobs can be cancelled only when they are in the WAITING state.
May throw ResourceNotFoundException. May throw ThrottlingException. May throw ValidationException. May throw InternalServerException. May throw ConflictException.
Parameter jobId
:
The unique identifier for a job.
Implementation
Future<void> cancelJob({
required String jobId,
}) async {
ArgumentError.checkNotNull(jobId, 'jobId');
await _protocol.send(
payload: null,
method: 'DELETE',
requestUri: '/v1/jobs/${Uri.encodeComponent(jobId)}',
exceptionFnMap: _exceptionFns,
);
}