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