terminateServiceJob method
Terminates a service job in a job queue.
May throw ClientException.
May throw ServerException.
Parameter jobId :
The service job ID of the service job to terminate.
Parameter reason :
A message to attach to the service job that explains the reason for
canceling it. This message is returned by DescribeServiceJob
operations on the service job.
Implementation
Future<void> terminateServiceJob({
required String jobId,
required String reason,
}) async {
final $payload = <String, dynamic>{
'jobId': jobId,
'reason': reason,
};
final response = await _protocol.send(
payload: $payload,
method: 'POST',
requestUri: '/v1/terminateservicejob',
exceptionFnMap: _exceptionFns,
);
}