schemas:GetResourcePolicy

Read

schemas:GetResourcePolicy is a Read access-level action in the schemas service. Grants permission to retrieve the resource-based policy attached to a given registry

Resource types

ARNs that schemas:GetResourcePolicy can be scoped to in an IAM policy.

arn:${Partition}:schemas:${Region}:${Account}:registry/${RegistryName}
registry

Condition keys

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

aws:ResourceTag/${TagKey} String

Filters access by tag-value associated with the resource

Example IAM policy

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

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

Related actions in schemas

View all schemas actions →