codedeploy:BatchGetDeploymentTargets

Read

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

Resource types

This action does not support resource-level permissions; use "Resource": "*" in your policy.

Condition keys

No condition keys are documented for this action.

Example IAM policy

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": "*"
    }
  ]
}

Related actions in codedeploy

View all codedeploy actions →