batch:CancelJob

Write

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

Resource types

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

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

Condition keys

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

aws:ResourceTag/${TagKey} String

Filters access by the tags associated with the resource

Example IAM policy

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

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

Related actions in batch

View all batch actions →