View a markdown version of this page

Actions, resources, and condition keys for AWS Batch - Service Authorization Reference

Actions, resources, and condition keys for AWS Batch

AWS Batch (service prefix: batch) provides the following service-specific operations, resources, actions, and condition keys for use in IAM permission policies.

References:

API operations defined by AWS Batch

The following table maps API operations to the IAM actions they authorize. Only condition keys that have static values for the given API and action are listed; for the full set of condition keys supported by each action, see the Actions table.

Operation IAM action Condition key Possible value(s) Access level

CancelJob

batch:CancelJob

Write

CancelJobs

batch:CancelJob

Write

CreateComputeEnvironment

batch:CreateComputeEnvironment

Write

batch:SetCapacityTags

Tagging, Write

batch:TagResource

Tagging, Write

iam:PassRole

iam:PassedToService

batch.amazonaws.com, ec2.amazonaws.com, ecs.amazonaws.com, spotfleet.amazonaws.com

Write

CreateConsumableResource

batch:CreateConsumableResource

Write

batch:TagResource

Tagging, Write

CreateJobQueue

batch:CreateJobQueue

Write

batch:TagResource

Tagging, Write

CreateQuotaShare

batch:CreateQuotaShare

Write

batch:TagResource

Tagging, Write

CreateSchedulingPolicy

batch:CreateSchedulingPolicy

Write

batch:TagResource

Tagging, Write

CreateServiceEnvironment

batch:CreateServiceEnvironment

Write

batch:TagResource

Tagging, Write

DeleteComputeEnvironment

batch:DeleteComputeEnvironment

Write

DeleteConsumableResource

batch:DeleteConsumableResource

Write

DeleteJobQueue

batch:DeleteJobQueue

Write

DeleteQuotaShare

batch:DeleteQuotaShare

Write

DeleteSchedulingPolicy

batch:DeleteSchedulingPolicy

Write

DeleteServiceEnvironment

batch:DeleteServiceEnvironment

Write

DeregisterJobDefinition

batch:DeregisterJobDefinition

Write

DescribeComputeEnvironments

batch:DescribeComputeEnvironments

Read

DescribeConsumableResource

batch:DescribeConsumableResource

Read

DescribeJobDefinitions

batch:DescribeJobDefinitions

Read

DescribeJobQueues

batch:DescribeJobQueues

Read

DescribeJobs

batch:DescribeJobs

Read

DescribeQuotaShare

batch:DescribeQuotaShare

Read

DescribeSchedulingPolicies

batch:DescribeSchedulingPolicies

Read

DescribeServiceEnvironments

batch:DescribeServiceEnvironments

Read

DescribeServiceJob

batch:DescribeServiceJob

Read

GetJobQueueSnapshot

batch:GetJobQueueSnapshot

Read

ListConsumableResources

batch:ListConsumableResources

List

ListJobs

batch:ListJobs

List

ListJobsByConsumableResource

batch:ListJobsByConsumableResource

List

ListQuotaShares

batch:ListQuotaShares

List

ListSchedulingPolicies

batch:ListSchedulingPolicies

Read

ListServiceJobs

batch:ListServiceJobs

List

ListTagsForResource

batch:ListTagsForResource

Read

RegisterJobDefinition

batch:RegisterJobDefinition

Write

batch:TagResource

Tagging, Write

iam:PassRole

iam:PassedToService

ecs-tasks.amazonaws.com

Write

SubmitJob

batch:SubmitJob

Write

batch:TagResource