vpc-lattice:ListTargets

List

vpc-lattice:ListTargets is a List access-level action in the vpc-lattice service. Grants permission to list some or all targets in a target group

Resource types

ARNs that vpc-lattice:ListTargets can be scoped to in an IAM policy.

arn:${Partition}:vpc-lattice:${Region}:${Account}:targetgroup/${TargetGroupId}
TargetGroup

Condition keys

Keys you can use in the Condition block of a policy that grants vpc-lattice:ListTargets.

aws:RequestTag/${TagKey} String

Filters access by the presence of tag key-value pairs in the request

aws:ResourceTag/${TagKey} String

Filters access by tag key-value pairs attached to the resource

aws:TagKeys ArrayOfString

Filters access by the presence of tag keys in the request

vpc-lattice:CreateAction String

Filters access by the name of a resource-creating API action

vpc-lattice:VpcId String

Filters access by the ID of a virtual private cloud (VPC)

Example IAM policy

A minimal policy that allows vpc-lattice:ListTargets. Replace "Resource": "*" with a specific ARN to follow least privilege.

{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Sid": "AllowVpclatticeListTargets",
      "Effect": "Allow",
      "Action": "vpc-lattice:ListTargets",
      "Resource": "*"
    }
  ]
}

Related actions in vpc-lattice

View all vpc-lattice actions →