Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions,
see Getting Started with Amazon Web Services in China
(PDF).
Resource: Use the batch:ShareIdentifier
condition key
Use the following policy to submit jobs that use the jobDefA
job
definition to the jobqueue1
job queue with the lowCpu
share
identifier.
- JSON
-
-
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": [
"batch:SubmitJob"
],
"Resource": [
"arn:aws-cn:batch:us-west-2
:555555555555
:job-definition/JobDefA",
"arn:aws-cn:batch:us-west-2
:555555555555
:job-queue/jobqueue1"
],
"Condition": {
"StringEquals": {
"batch:ShareIdentifier": [
"lowCpu"
]
}
}
}
]
}