appsync:ListTagsForResource

Read

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

Resource types

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

arn:${Partition}:appsync:${Region}:${Account}:apis/${ApiId}
api
arn:${Partition}:appsync:${Region}:${Account}:apis/${ApiId}/channelNamespace/${ChannelNamespaceName}
channelNamespace
arn:${Partition}:appsync:${Region}:${Account}:domainnames/${DomainName}
domain
arn:${Partition}:appsync:${Region}:${Account}:apis/${GraphQLAPIId}
graphqlapi

Condition keys

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

aws:ResourceTag/${TagKey} String

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

Example IAM policy

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

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

Related actions in appsync

View all appsync actions →