bedrock:DeleteResourcePolicy

Write

bedrock:DeleteResourcePolicy is a Write access-level action in the bedrock service. Deletes a previously created Bedrock resource policy

Resource types

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

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

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

Related actions in bedrock

View all bedrock actions →