Skip to content

GetResourcePolicyResponse

Source code in docs_src/capo_lambda/types/get_resource_policy_response.py
class GetResourcePolicyResponse(TypedDict, closed=True):
    policy: NotRequired["capo_lambda.types.resource_policy.ResourcePolicy"]
    """<p>The resource-based policy attached to the Lambda resource you specified.</p>"""
    revision_id: NotRequired["capo_lambda.types.revision_id.RevisionId"]
    """<p>The revision ID of the policy. Pass this value as the <code>RevisionId</code> in a <a>PutResourcePolicy</a> or <a>DeleteResourcePolicy</a> request. Doing so ensures the operation acts on the expected version of the policy.</p>"""

policy instance-attribute

policy: NotRequired[ResourcePolicy]

The resource-based policy attached to the Lambda resource you specified.

revision_id instance-attribute

revision_id: NotRequired[RevisionId]

The revision ID of the policy. Pass this value as the RevisionId in a PutResourcePolicy or DeleteResourcePolicy request. Doing so ensures the operation acts on the expected version of the policy.