aws_sdk_context/client/get_change_set.rs
1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2impl super::Client {
3 /// Constructs a fluent builder for the [`GetChangeSet`](crate::operation::get_change_set::builders::GetChangeSetFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`change_set_id(impl Into<String>)`](crate::operation::get_change_set::builders::GetChangeSetFluentBuilder::change_set_id) / [`set_change_set_id(Option<String>)`](crate::operation::get_change_set::builders::GetChangeSetFluentBuilder::set_change_set_id):<br>required: **true**<br><p>The change set to fetch, by its opaque instance ID.</p><br>
7 /// - [`agent_context_id(impl Into<String>)`](crate::operation::get_change_set::builders::GetChangeSetFluentBuilder::agent_context_id) / [`set_agent_context_id(Option<String>)`](crate::operation::get_change_set::builders::GetChangeSetFluentBuilder::set_agent_context_id):<br>required: **true**<br><p>The agent context that owns the change set, by its ID or ARN.</p><br>
8 /// - On success, responds with [`GetChangeSetOutput`](crate::operation::get_change_set::GetChangeSetOutput) with field(s):
9 /// - [`agent_context_id(String)`](crate::operation::get_change_set::GetChangeSetOutput::agent_context_id): <p>The agent context's ID.</p>
10 /// - [`status(ChangeSetStatus)`](crate::operation::get_change_set::GetChangeSetOutput::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>
11 /// - [`created_at(DateTime)`](crate::operation::get_change_set::GetChangeSetOutput::created_at): <p>The date and time when the change set was created.</p>
12 /// - [`updated_at(DateTime)`](crate::operation::get_change_set::GetChangeSetOutput::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>
13 /// - [`access_control(Option<AccessControl>)`](crate::operation::get_change_set::GetChangeSetOutput::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>
14 /// - [`generated_by(Option<Activity>)`](crate::operation::get_change_set::GetChangeSetOutput::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>
15 /// - [`status_reason(Option<StatusReason>)`](crate::operation::get_change_set::GetChangeSetOutput::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>
16 /// - [`id(String)`](crate::operation::get_change_set::GetChangeSetOutput::id): <p>The change set's opaque instance ID. Requests take it as <code>changeSetId</code>.</p>
17 /// - [`change_set_version(Option<i32>)`](crate::operation::get_change_set::GetChangeSetOutput::change_set_version): <p>The change set's latest version. Pass it to <code>UpdateChangeSet</code>. Each version is immutable. The number increases by one on each edit and each status change.</p>
18 /// - [`connection_arn(Option<String>)`](crate::operation::get_change_set::GetChangeSetOutput::connection_arn): <p>The ARN of the connection that produced this change set. Absent for a change that no connection produced, such as a direct <code>CreateChangeSet</code> call, and for every <code>ACL_RESTRICTED</code> change set, because the connection would identify the source of the restricted content.</p>
19 /// - On failure, responds with [`SdkError<GetChangeSetError>`](crate::operation::get_change_set::GetChangeSetError)
20 pub fn get_change_set(&self) -> crate::operation::get_change_set::builders::GetChangeSetFluentBuilder {
21 crate::operation::get_change_set::builders::GetChangeSetFluentBuilder::new(self.handle.clone())
22 }
23}