aws_sdk_context/client/create_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 [`CreateChangeSet`](crate::operation::create_change_set::builders::CreateChangeSetFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`client_token(impl Into<String>)`](crate::operation::create_change_set::builders::CreateChangeSetFluentBuilder::client_token) / [`set_client_token(Option<String>)`](crate::operation::create_change_set::builders::CreateChangeSetFluentBuilder::set_client_token):<br>required: **false**<br><p>A unique, case-sensitive identifier that you provide to make the request idempotent. A retry with the same token returns the same change set.</p><br>
7 /// - [`access_control_config(AccessControlConfig)`](crate::operation::create_change_set::builders::CreateChangeSetFluentBuilder::access_control_config) / [`set_access_control_config(Option<AccessControlConfig>)`](crate::operation::create_change_set::builders::CreateChangeSetFluentBuilder::set_access_control_config):<br>required: **false**<br><p>Who can read the nodes that this change set writes. AWS Context refuses it on a change set that only deletes. If you omit it, every reader of the agent context can read a node that the change creates, and every other node keeps its access control. If you specify it, it replaces the access control of every node that the change set writes, and an absent or empty <code>accessControlList</code> lets nobody read them.</p><br>
8 /// - [`agent_context_id(impl Into<String>)`](crate::operation::create_change_set::builders::CreateChangeSetFluentBuilder::agent_context_id) / [`set_agent_context_id(Option<String>)`](crate::operation::create_change_set::builders::CreateChangeSetFluentBuilder::set_agent_context_id):<br>required: **true**<br><p>The agent context to change, by its ID or ARN.</p><br>
9 /// - [`operations(ChangeSetOperation)`](crate::operation::create_change_set::builders::CreateChangeSetFluentBuilder::operations) / [`set_operations(Option<Vec::<ChangeSetOperation>>)`](crate::operation::create_change_set::builders::CreateChangeSetFluentBuilder::set_operations):<br>required: **true**<br><p>The operations to write, each a <code>ChangeSetOperation</code>, from 1 to 1,000. If the list is empty or names the same entity twice, the request fails with <code>ValidationException</code>.</p><br>
10 /// - On success, responds with [`CreateChangeSetOutput`](crate::operation::create_change_set::CreateChangeSetOutput) with field(s):
11 /// - [`status(ChangeSetStatus)`](crate::operation::create_change_set::CreateChangeSetOutput::status): <p>PENDING (held for curator review) or PUBLISHED (applied). A replay reports the change set's current one.</p>
12 /// - [`access_control(Option<AccessControl>)`](crate::operation::create_change_set::CreateChangeSetOutput::access_control): <p>See <code>AccessControl</code>. The service returns it on every response.</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>
13 /// - [`id(String)`](crate::operation::create_change_set::CreateChangeSetOutput::id): <p>The ID of the change set, which AWS Context assigns. The create is idempotent on <code>clientToken</code>: a retry with the same token returns the same change set. Treat this ID as opaque, and don't assume any relationship to <code>clientToken</code>.</p>
14 /// - On failure, responds with [`SdkError<CreateChangeSetError>`](crate::operation::create_change_set::CreateChangeSetError)
15 pub fn create_change_set(&self) -> crate::operation::create_change_set::builders::CreateChangeSetFluentBuilder {
16 crate::operation::create_change_set::builders::CreateChangeSetFluentBuilder::new(self.handle.clone())
17 }
18}