本文属于机器翻译版本。若本译文内容与英语原文存在差异,则一律以英文原文为准。
资源:使用 batch:ShareIdentifier
条件键
使用以下策略将使用 jobDefA
作业定义的作业提交到具有 lowCpu
份额标识符的 jobqueue1
作业队列。
{ "Version": "2012-10-17", "Statement": [ { "Effect": "Allow", "Action": [ "batch:SubmitJob" ], "Resource": [ "arn:aws::batch:
<aws_region>
:<aws_account_id>
:job-definition/JobDefA", "arn:aws::batch:<aws_region>
:<aws_account_id>
:job-queue/jobqueue1" ], "Condition": { "StringEquals": { "batch:ShareIdentifier": [ "lowCpu" ] } } } ] }