Skip to content

PutResourcePolicyRequest

Source code in docs_src/capo_bedrock_agent/types/put_resource_policy_request.py
class PutResourcePolicyRequest(TypedDict, closed=True):
    resource_arn: "capo_bedrock_agent.types.resource_arn.ResourceArn"
    """<p>The Amazon Resource Name (ARN) of the knowledge base to attach the resource policy to.</p>"""
    policy: "capo_bedrock_agent.types.resource_policy.ResourcePolicy"
    """<p>The JSON-formatted resource policy to associate with the knowledge base.</p>"""
    expected_revision_id: NotRequired["capo_bedrock_agent.types.revision_id.RevisionId"]
    """<p>The expected revision identifier of the resource policy. Use this to prevent conflicts when multiple users update the same policy concurrently. Specify the <code>revisionId</code> from the most recent <code>GetResourcePolicy</code> or <code>PutResourcePolicy</code> response.</p>"""

expected_revision_id instance-attribute

expected_revision_id: NotRequired[RevisionId]

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 GetResourcePolicy or PutResourcePolicy response.

policy instance-attribute

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

resource_arn instance-attribute

resource_arn: ResourceArn

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