cancelJob method

Future<void> cancelJob({
  1. required String id,
})

Permanently cancel a job. Once you have canceled a job, you can't start it again.

May throw BadRequestException. May throw InternalServerErrorException. May throw ForbiddenException. May throw NotFoundException. May throw TooManyRequestsException. May throw ConflictException.

Parameter id : The Job ID of the job to be cancelled.

Implementation

Future<void> cancelJob({
  required String id,
}) async {
  ArgumentError.checkNotNull(id, 'id');
  final response = await _protocol.send(
    payload: null,
    method: 'DELETE',
    requestUri: '/2017-08-29/jobs/${Uri.encodeComponent(id)}',
    exceptionFnMap: _exceptionFns,
  );
}