bedrock:GetResourcePolicy

Read

bedrock:GetResourcePolicy is a Read access-level action in the bedrock service. Gets the resource policy document for a Bedrock resource

Resource types

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

arn:${Partition}:bedrock:${Region}:${Account}:custom-model/${ResourceId}
custom-model
arn:${Partition}:bedrock:${Region}:${Account}:guardrail/${GuardrailId}
guardrail
arn:${Partition}:bedrock:${Region}:${Account}:guardrail-profile/${ResourceId}
guardrail-profile
arn:${Partition}:bedrock:${Region}:${Account}:knowledge-base/${KnowledgeBaseId}
knowledge-base

Condition keys

Keys you can use in the Condition block of a policy that grants bedrock: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 bedrock:GetResourcePolicy. Replace "Resource": "*" with a specific ARN to follow least privilege.

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

Related actions in bedrock

View all bedrock actions →