Context / Client / update_curation_policy
update_curation_policy¶
- Context.Client.update_curation_policy(**kwargs)¶
Updates a curation policy’s working copy.
See also: AWS API Documentation
Request Syntax
response = client.update_curation_policy( clientToken='string', curationPolicyId='string', revisionId='string', name='string', description='string', policyDocument='string', autoRejectAfterSeconds=123 )
- Parameters:
clientToken (string) –
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.This field is autopopulated if not provided.
curationPolicyId (string) –
[REQUIRED]
The ID of the curation policy to update.
revisionId (string) –
[REQUIRED]
The
revisionIdof the working copy that you edited, as you last read it. If a concurrent edit advanced the revision, the request fails withConflictException.name (string) – 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.
description (string) – The new description. If you omit it, the description is unchanged.
policyDocument (string) – The new Cedar policy document. If you omit it, the document is unchanged.
autoRejectAfterSeconds (integer) – 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.
- 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
revisionIdonUpdateCurationPolicy. 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
createdAtuntil 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
statusReasonCodeREQUEST_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.ThrottlingExceptionContext.Client.exceptions.ConflictExceptionContext.Client.exceptions.ValidationExceptionContext.Client.exceptions.InternalServerExceptionContext.Client.exceptions.ResourceNotFoundExceptionContext.Client.exceptions.AccessDeniedException