cancelJob method
Permanently cancel a job. Once you have canceled a job, you can't start it again.
May throw BadRequestException.
May throw ConflictException.
May throw ForbiddenException.
May throw InternalServerErrorException.
May throw NotFoundException.
May throw ServiceQuotaExceededException.
May throw TooManyRequestsException.
Parameter id :
The Job ID of the job to be cancelled.
Implementation
Future<void> cancelJob({
required String id,
}) async {
final response = await _protocol.send(
payload: null,
method: 'DELETE',
requestUri: '/2017-08-29/jobs/${Uri.encodeComponent(id)}',
exceptionFnMap: _exceptionFns,
);
}