bedrockagent_put_resource_policy: Associates a resource policy with a knowledge base

View source: R/bedrockagent_operations.R

bedrockagent_put_resource_policyR Documentation

Associates a resource policy with a knowledge base

Description

Associates a resource policy with a knowledge base. A resource policy allows other AWS accounts to access the knowledge base. For more information, see Cross-account access for knowledge bases.

See https://www.paws-r-sdk.com/docs/bedrockagent_put_resource_policy/ for full documentation.

Usage

bedrockagent_put_resource_policy(
  resourceArn,
  policy,
  expectedRevisionId = NULL
)

Arguments

resourceArn

[required] The Amazon Resource Name (ARN) of the knowledge base to attach the resource policy to.

policy

[required] The JSON-formatted resource policy to associate with the knowledge base.

expectedRevisionId

The expected revision identifier of the resource policy. Use this to prevent conflicts when multiple users update the same policy concurrently. Specify the revisionId from the most recent get_resource_policy or put_resource_policy response.


paws.machine.learning documentation built on Oct. 8, 2026, 9:06 a.m.