codedeploy:BatchGetDeploymentTargets is a Read access-level action in the codedeploy service. Grants permission to return an array of one or more targets associated with a deployment. This method works with all compute types and should be used instead of the deprecated BatchGetDeploymentInstances. The maximum number of targets that can be returned is 25
This action does not support resource-level permissions; use "Resource": "*" in your policy.
No condition keys are documented for this action.
A minimal policy that allows codedeploy:BatchGetDeploymentTargets. Replace "Resource": "*" with a specific ARN to follow least privilege.
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "AllowCodedeployBatchGetDeploymentTargets",
"Effect": "Allow",
"Action": "codedeploy:BatchGetDeploymentTargets",
"Resource": "*"
}
]
}