Skip to content

CreateCurationPolicyResponse

Source code in docs_src/capo_context/types/create_curation_policy_response.py
class CreateCurationPolicyResponse(TypedDict, closed=True):
    id: "capo_context.types.curation_policy_id.CurationPolicyId"
    """<p>The ID of the curation policy. Requests take it as <code>curationPolicyId</code>.</p>"""
    arn: "capo_context.types.curation_policy_arn_string.CurationPolicyArnString"
    """<p>The ARN of the curation policy.</p>"""
    name: "capo_context.types.resource_name.ResourceName"
    """<p>The name of the curation policy.</p>"""
    last_published_version: NotRequired[
        "capo_context.types.curation_policy_version_string.CurationPolicyVersionString"
    ]
    """<p>Newest published version. Absent until the policy's first version is created (a DRAFT that has never been published has no version).</p>"""
    revision_id: "capo_context.types.curation_policy_revision.CurationPolicyRevision"
    """<p>An opaque revision token for the working copy. Pass it as <code>revisionId</code> on <code>UpdateCurationPolicy</code>. The update applies only if the token still matches the current working copy.</p>"""
    created_at: "datetime.datetime"
    """<p>The date and time when the curation policy was created.</p>"""
    updated_at: "datetime.datetime"
    """<p>When the resource last changed. Equal to <code>createdAt</code> until the first update.</p>"""
    auto_reject_after_seconds: NotRequired[
        "capo_context.types.auto_reject_after_seconds.AutoRejectAfterSeconds"
    ]
    """<p>The number of seconds that a proposal held for review under this policy can wait for a decision before AWS Context rejects it with <code>statusReasonCode</code> <code>REQUEST_EXPIRED</code>. From 86,400 seconds (1 day) to 15,552,000 seconds (180 days). Absent if proposals held under this policy are never rejected automatically.</p>"""
    description: NotRequired["capo_context.types.user_defined_string.UserDefinedString"]
    """<p>The description of the curation policy.</p>"""
    policy_document: "capo_context.types.policy_text.PolicyText"
    """<p>The policy's rules, as a Cedar policy document: the rule the engine evaluates. Always present on the resource.</p>"""
    status: "capo_context.types.curation_policy_status.CurationPolicyStatus"
    """<p>The policy's status.</p> <p>Valid values:</p> <ul> <li> <p> <code>DRAFT</code> - The policy has never been published, so no agent context enforces it.</p> </li> <li> <p> <code>ACTIVE</code> - The policy has a published version, which the agent contexts associated with it enforce.</p> </li> <li> <p> <code>DELETED</code> - The policy is deleted. Nothing enforces it, and only GetCurationPolicy still returns it.</p> </li> </ul>"""

arn instance-attribute

The ARN of the curation policy.

auto_reject_after_seconds instance-attribute

auto_reject_after_seconds: NotRequired[AutoRejectAfterSeconds]

The number of seconds that a proposal held for review under this policy can wait for a decision before AWS Context rejects it with statusReasonCode REQUEST_EXPIRED. From 86,400 seconds (1 day) to 15,552,000 seconds (180 days). Absent if proposals held under this policy are never rejected automatically.

created_at instance-attribute

created_at: datetime

The date and time when the curation policy was created.

description instance-attribute

description: NotRequired[UserDefinedString]

The description of the curation policy.

id instance-attribute

The ID of the curation policy. Requests take it as curationPolicyId.

last_published_version instance-attribute

last_published_version: NotRequired[CurationPolicyVersionString]

Newest published version. Absent until the policy's first version is created (a DRAFT that has never been published has no version).

name instance-attribute

The name of the curation policy.

policy_document instance-attribute

policy_document: PolicyText

The policy's rules, as a Cedar policy document: the rule the engine evaluates. Always present on the resource.

revision_id instance-attribute

An opaque revision token for the working copy. Pass it as revisionId on UpdateCurationPolicy. The update applies only if the token still matches the current working copy.

status instance-attribute

The policy's status.

Valid values:

  • DRAFT - The policy has never been published, so no agent context enforces it.

  • ACTIVE - The policy has a published version, which the agent contexts associated with it enforce.

  • DELETED - The policy is deleted. Nothing enforces it, and only GetCurationPolicy still returns it.

updated_at instance-attribute

updated_at: datetime

When the resource last changed. Equal to createdAt until the first update.