access-analyzer:TagResource

Tagging

access-analyzer:TagResource is a Tagging access-level action in the access-analyzer service. Grants permission to add a tag to a resource

Resource types

ARNs that access-analyzer:TagResource can be scoped to in an IAM policy.

arn:${Partition}:access-analyzer:${Region}:${Account}:analyzer/${AnalyzerName}
Analyzer

Condition keys

Keys you can use in the Condition block of a policy that grants access-analyzer:TagResource.

aws:ResourceTag/${TagKey} String

Filters actions based on tag key-value pairs attached to the resource

Example IAM policy

A minimal policy that allows access-analyzer:TagResource. Replace "Resource": "*" with a specific ARN to follow least privilege.

{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Sid": "AllowAccessanalyzerTagResource",
      "Effect": "Allow",
      "Action": "access-analyzer:TagResource",
      "Resource": "*"
    }
  ]
}

Related actions in access-analyzer

View all access-analyzer actions →