codedeploy:BatchGetOnPremisesInstances

Read

codedeploy:BatchGetOnPremisesInstances is a Read access-level action in the codedeploy service. Grants permission to get information about one or more on-premises instances

Resource types

ARNs that codedeploy:BatchGetOnPremisesInstances can be scoped to in an IAM policy.

arn:${Partition}:codedeploy:${Region}:${Account}:instance:${InstanceName}
instance

Condition keys

No condition keys are documented for this action.

Example IAM policy

A minimal policy that allows codedeploy:BatchGetOnPremisesInstances. Replace "Resource": "*" with a specific ARN to follow least privilege.

{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Sid": "AllowCodedeployBatchGetOnPremisesInstances",
      "Effect": "Allow",
      "Action": "codedeploy:BatchGetOnPremisesInstances",
      "Resource": "*"
    }
  ]
}

Related actions in codedeploy

View all codedeploy actions →