guardduty:ListTagsForResource

Read

guardduty:ListTagsForResource is a Read access-level action in the guardduty service. Grants permission to retrieve a list of tags associated with a GuardDuty resource

Resource types

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

arn:${Partition}:guardduty:${Region}:${Account}:detector/${DetectorId}
detector
arn:${Partition}:guardduty:${Region}:${Account}:detector/${DetectorId}/filter/${FilterName}
filter
arn:${Partition}:guardduty:${Region}:${Account}:detector/${DetectorId}/ipset/${IPSetId}
ipset
arn:${Partition}:guardduty:${Region}:${Account}:malware-protection-plan/${MalwareProtectionPlanId}
malwareprotectionplan
arn:${Partition}:guardduty:${Region}:${Account}:detector/${DetectorId}/publishingdestination/${PublishingDestinationId}
publishingDestination
arn:${Partition}:guardduty:${Region}:${Account}:detector/${DetectorId}/threatentityset/${ThreatEntitySetId}
threatentityset
arn:${Partition}:guardduty:${Region}:${Account}:detector/${DetectorId}/threatintelset/${ThreatIntelSetId}
threatintelset
arn:${Partition}:guardduty:${Region}:${Account}:detector/${DetectorId}/trustedentityset/${TrustedEntitySetId}
trustedentityset

Condition keys

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

aws:ResourceTag/${TagKey} String

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

Example IAM policy

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

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

Related actions in guardduty

View all guardduty actions →