aps:ListTagsForResource

Read

aps:ListTagsForResource is a Read access-level action in the aps service. Grants permission to list tags on an AMP resource

Resource types

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

arn:${Partition}:aps:${Region}:${Account}:anomalydetector/${WorkspaceId}/${AnomalyDetectorId}
anomalydetector
arn:${Partition}:aps:${Region}:${Account}:rulegroupsnamespace/${WorkspaceId}/${Namespace}
rulegroupsnamespace
arn:${Partition}:aps:${Region}:${Account}:scraper/${ScraperId}
scraper
arn:${Partition}:aps:${Region}:${Account}:workspace/${WorkspaceId}
workspace

Condition keys

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

aws:RequestTag/${TagKey} String

Filters access based on the tags that are passed in the request

aws:ResourceTag/${TagKey} String

Filters access based on the tags associated with the resource

aws:TagKeys ArrayOfString

Filters access based on the tag keys that are passed in the request

Example IAM policy

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

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

Related actions in aps

View all aps actions →