Context / Client / get_curation_policy

get_curation_policy

Context.Client.get_curation_policy(**kwargs)

Returns a curation policy’s configuration, status, and policy document.

See also: AWS API Documentation

Request Syntax

response = client.get_curation_policy(
    curationPolicyId='string',
    version='string'
)
Parameters:
  • curationPolicyId (string) –

    [REQUIRED]

    The ID of the curation policy to return.

  • version (string) – The version to return: DRAFT for the working copy, or a published version number. If you omit it, AWS Context returns the working copy.

Return type:

dict

Returns:

Response Syntax

{
    'id': 'string',
    'arn': 'string',
    'name': 'string',
    'lastPublishedVersion': 'string',
    'revisionId': 'string',
    'createdAt': datetime(2015, 1, 1),
    'updatedAt': datetime(2015, 1, 1),
    'autoRejectAfterSeconds': 123,
    'description': 'string',
    'policyDocument': 'string',
    'status': 'DRAFT'|'ACTIVE'|'DELETED'
}

Response Structure

  • (dict) –

    • id (string) –

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

    • arn (string) –

      The ARN of the curation policy.

    • name (string) –

      The name of the curation policy.

    • lastPublishedVersion (string) –

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

    • revisionId (string) –

      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.

    • createdAt (datetime) –

      The date and time when the curation policy was created.

    • updatedAt (datetime) –

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

    • autoRejectAfterSeconds (integer) –

      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.

    • description (string) –

      The description of the curation policy.

    • policyDocument (string) –

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

    • status (string) –

      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.

Exceptions

  • Context.Client.exceptions.ThrottlingException

  • Context.Client.exceptions.ValidationException

  • Context.Client.exceptions.InternalServerException

  • Context.Client.exceptions.ResourceNotFoundException

  • Context.Client.exceptions.AccessDeniedException