Skip to content

PutResourcePolicyRequest

Source code in docs_src/capo_context/types/put_resource_policy_request.py
class PutResourcePolicyRequest(TypedDict, closed=True):
    resource_arn: (
        "capo_context.types.resource_policy_resource_arn.ResourcePolicyResourceArn"
    )
    """<p>ARN of the agent context to attach the policy to.</p>"""
    policy: "capo_context.types.resource_policy.ResourcePolicy"
    """<p>The resource-based policy document.</p>"""
    expected_revision_id: NotRequired["capo_context.types.revision_id.RevisionId"]
    """<p>The revision that you last read. The write succeeds only if it matches the stored revision.</p>"""

expected_revision_id instance-attribute

expected_revision_id: NotRequired[RevisionId]

The revision that you last read. The write succeeds only if it matches the stored revision.

policy instance-attribute

The resource-based policy document.

resource_arn instance-attribute

ARN of the agent context to attach the policy to.