Skip to content

UpdateCurationPolicyRequest

Source code in docs_src/capo_context/types/update_curation_policy_request.py
class UpdateCurationPolicyRequest(TypedDict, closed=True):
    client_token: NotRequired["capo_context.types.client_token.ClientToken"]
    """<p>Makes a retry safe: the same token with the same parameters returns the current policy instead of a ConflictException. A token used with different parameters is a ValidationException whose message names <code>clientToken</code>, checked first. A retry with the same parameters after the policy was deleted is a ConflictException.</p>"""
    curation_policy_id: "capo_context.types.curation_policy_id.CurationPolicyId"
    """<p>The ID of the curation policy to update.</p>"""
    revision_id: "capo_context.types.curation_policy_revision.CurationPolicyRevision"
    """<p>The <code>revisionId</code> of the working copy that you edited, as you last read it. If a concurrent edit advanced the revision, the request fails with <code>ConflictException</code>.</p>"""
    name: NotRequired["capo_context.types.resource_name.ResourceName"]
    """<p>The new name. If you omit it, the name is unchanged. This operation updates only the members that you include. You can't use it to clear an optional member.</p>"""
    description: NotRequired["capo_context.types.user_defined_string.UserDefinedString"]
    """<p>The new description. If you omit it, the description is unchanged.</p>"""
    policy_document: NotRequired["capo_context.types.policy_text.PolicyText"]
    """<p>The new Cedar policy document. If you omit it, the document is unchanged.</p>"""
    auto_reject_after_seconds: NotRequired[
        "capo_context.types.auto_reject_after_seconds.AutoRejectAfterSeconds"
    ]
    """<p>The new auto-reject window, in seconds, from 86,400 (1 day) to 15,552,000 (180 days). If you omit it, the window is unchanged. You can't clear it with this operation.</p>"""

auto_reject_after_seconds instance-attribute

auto_reject_after_seconds: NotRequired[AutoRejectAfterSeconds]

The new auto-reject window, in seconds, from 86,400 (1 day) to 15,552,000 (180 days). If you omit it, the window is unchanged. You can't clear it with this operation.

client_token instance-attribute

client_token: NotRequired[ClientToken]

Makes a retry safe: the same token with the same parameters returns the current policy instead of a ConflictException. A token used with different parameters is a ValidationException whose message names clientToken, checked first. A retry with the same parameters after the policy was deleted is a ConflictException.

curation_policy_id instance-attribute

curation_policy_id: CurationPolicyId

The ID of the curation policy to update.

description instance-attribute

description: NotRequired[UserDefinedString]

The new description. If you omit it, the description is unchanged.

name instance-attribute

name: NotRequired[ResourceName]

The new name. If you omit it, the name is unchanged. This operation updates only the members that you include. You can't use it to clear an optional member.

policy_document instance-attribute

policy_document: NotRequired[PolicyText]

The new Cedar policy document. If you omit it, the document is unchanged.

revision_id instance-attribute

The revisionId of the working copy that you edited, as you last read it. If a concurrent edit advanced the revision, the request fails with ConflictException.