batch:TerminateServiceJob

Write

batch:TerminateServiceJob is a Write access-level action in the batch service. Grants permission to terminate a service job in an AWS Batch job queue in your account

Resource types

ARNs that batch:TerminateServiceJob can be scoped to in an IAM policy.

arn:${Partition}:batch:${Region}:${Account}:service-job/${JobId}
service-job

Condition keys

Keys you can use in the Condition block of a policy that grants batch:TerminateServiceJob.

aws:ResourceTag/${TagKey} String

Filters access by the tags associated with the resource

Example IAM policy

A minimal policy that allows batch:TerminateServiceJob. Replace "Resource": "*" with a specific ARN to follow least privilege.

{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Sid": "AllowBatchTerminateServiceJob",
      "Effect": "Allow",
      "Action": "batch:TerminateServiceJob",
      "Resource": "*"
    }
  ]
}

Related actions in batch

View all batch actions →