Skip to content

Removes the resource policy associated with a knowledge base

Description

Removes the resource policy associated with a knowledge base. After deletion, other AWS accounts can no longer access the knowledge base using cross-account permissions.

Usage

bedrockagent_delete_resource_policy(resourceArn, expectedRevisionId)

Arguments

  • resourceArn

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

  • expectedRevisionId

The expected revision identifier of the resource policy. Use this to prevent conflicts when multiple users update the same policy concurrently.

Value

A list with the following syntax:

list(
  resourceArn = "string",
  revisionId = "string"
)

Request syntax

svc$delete_resource_policy(
  resourceArn = "string",
  expectedRevisionId = "string"
)