waf:ListTagsForResource

Read

waf:ListTagsForResource is a Read access-level action in the waf service. Grants permission to retrieve the tags for a resource

Resource types

ARNs that waf:ListTagsForResource can be scoped to in an IAM policy.

arn:${Partition}:waf::${Account}:ratebasedrule/${Id}
ratebasedrule
arn:${Partition}:waf::${Account}:rule/${Id}
rule
arn:${Partition}:waf::${Account}:rulegroup/${Id}
rulegroup
arn:${Partition}:waf::${Account}:webacl/${Id}
webacl

Condition keys

Keys you can use in the Condition block of a policy that grants waf:ListTagsForResource.

aws:ResourceTag/${TagKey} String

Filters actions based on tag-value associated with the resource

Example IAM policy

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

{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Sid": "AllowWafListTagsForResource",
      "Effect": "Allow",
      "Action": "waf:ListTagsForResource",
      "Resource": "*"
    }
  ]
}

Related actions in waf

View all waf actions →