aws-sdk-context 1.0.0

AWS SDK for AWS Context
Documentation
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`UpdateCurationPolicy`](crate::operation::update_curation_policy::builders::UpdateCurationPolicyFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`client_token(impl Into<String>)`](crate::operation::update_curation_policy::builders::UpdateCurationPolicyFluentBuilder::client_token) / [`set_client_token(Option<String>)`](crate::operation::update_curation_policy::builders::UpdateCurationPolicyFluentBuilder::set_client_token):<br>required: **false**<br><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><br>
    ///   - [`curation_policy_id(impl Into<String>)`](crate::operation::update_curation_policy::builders::UpdateCurationPolicyFluentBuilder::curation_policy_id) / [`set_curation_policy_id(Option<String>)`](crate::operation::update_curation_policy::builders::UpdateCurationPolicyFluentBuilder::set_curation_policy_id):<br>required: **true**<br><p>The ID of the curation policy to update.</p><br>
    ///   - [`revision_id(impl Into<String>)`](crate::operation::update_curation_policy::builders::UpdateCurationPolicyFluentBuilder::revision_id) / [`set_revision_id(Option<String>)`](crate::operation::update_curation_policy::builders::UpdateCurationPolicyFluentBuilder::set_revision_id):<br>required: **true**<br><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><br>
    ///   - [`name(impl Into<String>)`](crate::operation::update_curation_policy::builders::UpdateCurationPolicyFluentBuilder::name) / [`set_name(Option<String>)`](crate::operation::update_curation_policy::builders::UpdateCurationPolicyFluentBuilder::set_name):<br>required: **false**<br><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><br>
    ///   - [`description(impl Into<String>)`](crate::operation::update_curation_policy::builders::UpdateCurationPolicyFluentBuilder::description) / [`set_description(Option<String>)`](crate::operation::update_curation_policy::builders::UpdateCurationPolicyFluentBuilder::set_description):<br>required: **false**<br><p>The new description. If you omit it, the description is unchanged.</p><br>
    ///   - [`policy_document(impl Into<String>)`](crate::operation::update_curation_policy::builders::UpdateCurationPolicyFluentBuilder::policy_document) / [`set_policy_document(Option<String>)`](crate::operation::update_curation_policy::builders::UpdateCurationPolicyFluentBuilder::set_policy_document):<br>required: **false**<br><p>The new Cedar policy document. If you omit it, the document is unchanged.</p><br>
    ///   - [`auto_reject_after_seconds(i64)`](crate::operation::update_curation_policy::builders::UpdateCurationPolicyFluentBuilder::auto_reject_after_seconds) / [`set_auto_reject_after_seconds(Option<i64>)`](crate::operation::update_curation_policy::builders::UpdateCurationPolicyFluentBuilder::set_auto_reject_after_seconds):<br>required: **false**<br><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><br>
    /// - On success, responds with [`UpdateCurationPolicyOutput`](crate::operation::update_curation_policy::UpdateCurationPolicyOutput) with field(s):
    ///   - [`id(String)`](crate::operation::update_curation_policy::UpdateCurationPolicyOutput::id): <p>The ID of the curation policy. Requests take it as <code>curationPolicyId</code>.</p>
    ///   - [`arn(String)`](crate::operation::update_curation_policy::UpdateCurationPolicyOutput::arn): <p>The ARN of the curation policy.</p>
    ///   - [`name(String)`](crate::operation::update_curation_policy::UpdateCurationPolicyOutput::name): <p>The name of the curation policy.</p>
    ///   - [`last_published_version(Option<String>)`](crate::operation::update_curation_policy::UpdateCurationPolicyOutput::last_published_version): <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(String)`](crate::operation::update_curation_policy::UpdateCurationPolicyOutput::revision_id): <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)`](crate::operation::update_curation_policy::UpdateCurationPolicyOutput::created_at): <p>The date and time when the curation policy was created.</p>
    ///   - [`updated_at(DateTime)`](crate::operation::update_curation_policy::UpdateCurationPolicyOutput::updated_at): <p>When the resource last changed. Equal to <code>createdAt</code> until the first update.</p>
    ///   - [`auto_reject_after_seconds(Option<i64>)`](crate::operation::update_curation_policy::UpdateCurationPolicyOutput::auto_reject_after_seconds): <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(Option<String>)`](crate::operation::update_curation_policy::UpdateCurationPolicyOutput::description): <p>The description of the curation policy.</p>
    ///   - [`policy_document(String)`](crate::operation::update_curation_policy::UpdateCurationPolicyOutput::policy_document): <p>The policy's rules, as a Cedar policy document: the rule the engine evaluates. Always present on the resource.</p>
    ///   - [`status(CurationPolicyStatus)`](crate::operation::update_curation_policy::UpdateCurationPolicyOutput::status): <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>
    /// - On failure, responds with [`SdkError<UpdateCurationPolicyError>`](crate::operation::update_curation_policy::UpdateCurationPolicyError)
    pub fn update_curation_policy(&self) -> crate::operation::update_curation_policy::builders::UpdateCurationPolicyFluentBuilder {
        crate::operation::update_curation_policy::builders::UpdateCurationPolicyFluentBuilder::new(self.handle.clone())
    }
}