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 [`UpdateChangeSet`](crate::operation::update_change_set::builders::UpdateChangeSetFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`change_set_id(impl Into<String>)`](crate::operation::update_change_set::builders::UpdateChangeSetFluentBuilder::change_set_id) / [`set_change_set_id(Option<String>)`](crate::operation::update_change_set::builders::UpdateChangeSetFluentBuilder::set_change_set_id):<br>required: **true**<br><p>The change set to edit: the <code>changeSetId</code> that GetCurationProposal returns.</p><br>
    ///   - [`agent_context_id(impl Into<String>)`](crate::operation::update_change_set::builders::UpdateChangeSetFluentBuilder::agent_context_id) / [`set_agent_context_id(Option<String>)`](crate::operation::update_change_set::builders::UpdateChangeSetFluentBuilder::set_agent_context_id):<br>required: **true**<br><p>The agent context that the change set belongs to, by its ID or ARN. AWS Context authorizes the request on this agent context's ARN. If the change set belongs to another agent context, the request fails with <code>ResourceNotFoundException</code>.</p><br>
    ///   - [`change_set_version(i32)`](crate::operation::update_change_set::builders::UpdateChangeSetFluentBuilder::change_set_version) / [`set_change_set_version(Option<i32>)`](crate::operation::update_change_set::builders::UpdateChangeSetFluentBuilder::set_change_set_version):<br>required: **true**<br><p>The change set version that you read with GetChangeSet. The edit applies only if it's still the latest version. Otherwise, the request fails with <code>ConflictException</code>.</p><br>
    ///   - [`client_token(impl Into<String>)`](crate::operation::update_change_set::builders::UpdateChangeSetFluentBuilder::client_token) / [`set_client_token(Option<String>)`](crate::operation::update_change_set::builders::UpdateChangeSetFluentBuilder::set_client_token):<br>required: **false**<br><p>A unique, case-sensitive identifier that you provide to make the request idempotent. For 8 hours, a retry of the same request with the same token returns the change set's latest version without writing again, and the same token used for another change set or a different request returns a <code>ValidationException</code>.</p><br>
    ///   - [`operations_to_remove(ChangeSetOperation)`](crate::operation::update_change_set::builders::UpdateChangeSetFluentBuilder::operations_to_remove) / [`set_operations_to_remove(Option<Vec::<ChangeSetOperation>>)`](crate::operation::update_change_set::builders::UpdateChangeSetFluentBuilder::set_operations_to_remove):<br>required: **true**<br><p>Operations to remove, copied unchanged from <code>ListChangeSetOperations</code>. A retry must resend the same list with the same clientToken.</p><br>
    /// - On success, responds with [`UpdateChangeSetOutput`](crate::operation::update_change_set::UpdateChangeSetOutput) with field(s):
    ///   - [`agent_context_id(String)`](crate::operation::update_change_set::UpdateChangeSetOutput::agent_context_id): <p>The agent context's ID.</p>
    ///   - [`status(ChangeSetStatus)`](crate::operation::update_change_set::UpdateChangeSetOutput::status): <p>The status of the change set. Valid values:</p> <ul>  <li>   <p><code>DRAFT</code> - AWS Context is evaluating the change set against the agent context's curation policies.</p></li>  <li>   <p><code>PENDING</code> - Held for review as a curation proposal. While the change set is <code>PENDING</code>, you can remove operations from it with <code>UpdateChangeSet</code>.</p></li>  <li>   <p><code>AUTHORIZED</code> - The change set is approved, and AWS Context is applying it.</p></li>  <li>   <p><code>SUPPRESSED</code> - AWS Context won't apply the change set, because a curation policy denied it or its curation proposal was closed without approval.</p></li>  <li>   <p><code>PUBLISHED</code> - AWS Context applied the change set to the agent context.</p></li>  <li>   <p><code>FAILED</code> - AWS Context couldn't apply the change set.</p></li> </ul> <p><code>SUPPRESSED</code> and <code>PUBLISHED</code> are final. A <code>FAILED</code> change set can still change to <code>PUBLISHED</code> or <code>PENDING</code> if AWS Context retries applying it. New values can be added, so handle a status that you don't recognize.</p>
    ///   - [`created_at(DateTime)`](crate::operation::update_change_set::UpdateChangeSetOutput::created_at): <p>The date and time when the change set was created.</p>
    ///   - [`updated_at(DateTime)`](crate::operation::update_change_set::UpdateChangeSetOutput::updated_at): <p>The date and time when the change set was last updated, such as when its status changed or its operations were edited.</p>
    ///   - [`access_control(Option<AccessControl>)`](crate::operation::update_change_set::UpdateChangeSetOutput::access_control): <p>See <code>AccessControl</code>. The service returns it on every item.</p> <p>Valid values:</p> <ul>  <li>   <p><code>ACL_RESTRICTED</code> - Only an allowed end user can read the content (its operations), and the change set can't be edited. Every caller can read its metadata, and its proposal's <code>title</code> names no nodes or edges.</p></li>  <li>   <p><code>NO_ACL</code> - Every caller can read the content.</p></li> </ul>
    ///   - [`generated_by(Option<Activity>)`](crate::operation::update_change_set::UpdateChangeSetOutput::generated_by): <p>The activity that generated the change set. A change set that an <code>IMPORT_ONTOLOGY</code> task writes carries <code>IMPORT_ONTOLOGY_TASK</code>, and one that a <code>CreateChangeSet</code> call makes carries <code>DIRECT_MODIFICATION</code>. A sync of a connected data source's own metadata, such as an AWS Glue Data Catalog sync, carries <code>DATA_SOURCE_INGESTION</code>. To list the change sets that carry a value, filter <code>ListChangeSets</code> on it.</p> <p>This member can be absent, so handle a change set that has no activity. For example, it's absent on a change set that records a connection's removal, on a change set that AWS Context wrote when it loaded an ontology's schema, and on a change set whose activity this API version doesn't recognize.</p>
    ///   - [`status_reason(Option<StatusReason>)`](crate::operation::update_change_set::UpdateChangeSetOutput::status_reason): <p>Why AWS Context created or closed the change set, for example because a connection was removed from the agent context. AWS Context keeps it across later status changes, including a curator's decision. Absent when AWS Context gave no reason.</p>
    ///   - [`id(String)`](crate::operation::update_change_set::UpdateChangeSetOutput::id): <p>The change set's opaque instance ID. Requests take it as <code>changeSetId</code>.</p>
    ///   - [`change_set_version(i32)`](crate::operation::update_change_set::UpdateChangeSetOutput::change_set_version): <p>The version the edit created. Pass it to the next UpdateChangeSet.</p>
    /// - On failure, responds with [`SdkError<UpdateChangeSetError>`](crate::operation::update_change_set::UpdateChangeSetError)
    pub fn update_change_set(&self) -> crate::operation::update_change_set::builders::UpdateChangeSetFluentBuilder {
        crate::operation::update_change_set::builders::UpdateChangeSetFluentBuilder::new(self.handle.clone())
    }
}