Terminates up to 50 jobs in a job queue. This is a bulk version of
TerminateJob. Jobs that are in the
STARTING or
RUNNING state are terminated, which causes them to transition to
FAILED. Jobs that have not progressed to the
STARTING state are cancelled.
Batch reports the result for each job individually in the response. Jobs that were processed successfully are reported in the
successful list. Jobs that encountered errors are reported in the
errors list. The response returns an HTTP status code of
200 even when some jobs encountered errors, so check the
errors list. Jobs that can't be found are treated as successfully processed.
This operation requires batch:TerminateJob permission for each job in the request. There is no separate batch:TerminateJobs IAM action. If a caller's IAM policy grants batch:TerminateJob, they can use both the singular TerminateJob and bulk TerminateJobs operations.