Skip to content

UpdateStaticPolicyDefinition

Source code in docs_src/capo_verifiedpermissions/types/update_static_policy_definition.py
class UpdateStaticPolicyDefinition(TypedDict, closed=True):
    description: NotRequired[
        "capo_verifiedpermissions.types.static_policy_description.StaticPolicyDescription"
    ]
    """<p>Specifies the description to be added to or replaced on the static policy.</p>"""
    statement: "capo_verifiedpermissions.types.policy_statement.PolicyStatement"
    """<p>Specifies the Cedar policy language text to be added to or replaced on the static policy.</p> <important> <p>You can change only the following elements from the original content:</p> <ul> <li> <p>The <code>action</code> referenced by the policy.</p> </li> <li> <p>Any conditional clauses, such as <code>when</code> or <code>unless</code> clauses.</p> </li> </ul> <p>You <b>can't</b> change the following elements:</p> <ul> <li> <p>Changing from <code>StaticPolicy</code> to <code>TemplateLinkedPolicy</code>.</p> </li> <li> <p>The effect (<code>permit</code> or <code>forbid</code>) of the policy.</p> </li> <li> <p>The <code>principal</code> referenced by the policy.</p> </li> <li> <p>The <code>resource</code> referenced by the policy.</p> </li> </ul> </important>"""

description instance-attribute

description: NotRequired[StaticPolicyDescription]

Specifies the description to be added to or replaced on the static policy.

statement instance-attribute

statement: PolicyStatement

Specifies the Cedar policy language text to be added to or replaced on the static policy.

You can change only the following elements from the original content:

  • The action referenced by the policy.

  • Any conditional clauses, such as when or unless clauses.

You can't change the following elements:

  • Changing from StaticPolicy to TemplateLinkedPolicy.

  • The effect (permit or forbid) of the policy.

  • The principal referenced by the policy.

  • The resource referenced by the policy.