agent-registry:TagResource

Tagging

agent-registry:TagResource is a Tagging access-level action in the agent-registry service. Grants permission to tag an Agent Registry resource

Resource types

ARNs that agent-registry:TagResource can be scoped to in an IAM policy.

arn:${Partition}:agent-registry:${Region}:${Account}:registry/${RegistryId}
registry
arn:${Partition}:agent-registry:${Region}:${Account}:registry/${RegistryId}/record/${RecordId}
registry-record

Condition keys

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

aws:RequestTag/${TagKey} String

Filters access by creating requests based on the allowed set of values for each of the mandatory tags

aws:TagKeys ArrayOfString

Filters access by creating requests based on the presence of mandatory tags in the request

aws:ResourceTag/${TagKey} String

Filters access by having actions based on the tag value associated with the resource

Example IAM policy

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

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

Related actions in agent-registry

View all agent-registry actions →