macie2:TagResource

Tagging

macie2:TagResource is a Tagging access-level action in the macie2 service. Grants permission to add or update the tags for an Amazon Macie resource

Resource types

ARNs that macie2:TagResource can be scoped to in an IAM policy.

arn:${Partition}:macie2:${Region}:${Account}:allow-list/${ResourceId}
AllowList
arn:${Partition}:macie2:${Region}:${Account}:classification-job/${ResourceId}
ClassificationJob
arn:${Partition}:macie2:${Region}:${Account}:custom-data-identifier/${ResourceId}
CustomDataIdentifier
arn:${Partition}:macie2:${Region}:${Account}:findings-filter/${ResourceId}
FindingsFilter
arn:${Partition}:macie2:${Region}:${Account}:member/${ResourceId}
Member

Condition keys

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

aws:ResourceTag/${TagKey} String

Filters access by a tag key and value pair of a resource

Example IAM policy

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

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

Related actions in macie2

View all macie2 actions →