agent-registry:GetResourcePolicy

Read

agent-registry:GetResourcePolicy is a Read access-level action in the agent-registry service. Grants permission to retrieve the resource-based policy for a specified resource

Resource types

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

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

Condition keys

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

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:GetResourcePolicy. Replace "Resource": "*" with a specific ARN to follow least privilege.

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

Related actions in agent-registry

View all agent-registry actions →