bedrock:PutResourcePolicy

Write

bedrock:PutResourcePolicy is a Write access-level action in the bedrock service. Adds a resource policy for a Bedrock resource

Resource types

ARNs that bedrock:PutResourcePolicy 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:PutResourcePolicy.

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

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

Related actions in bedrock

View all bedrock actions →