aws_sdk_qconnect/client/create_ai_agent_version.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 [`CreateAIAgentVersion`](crate::operation::create_ai_agent_version::builders::CreateAIAgentVersionFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`assistant_id(impl Into<String>)`](crate::operation::create_ai_agent_version::builders::CreateAIAgentVersionFluentBuilder::assistant_id) / [`set_assistant_id(Option<String>)`](crate::operation::create_ai_agent_version::builders::CreateAIAgentVersionFluentBuilder::set_assistant_id):<br>required: **true**<br><p>The identifier of the Amazon Q in Connect assistant. Can be either the ID or the ARN. URLs cannot contain the ARN.</p><br>
7 /// - [`ai_agent_id(impl Into<String>)`](crate::operation::create_ai_agent_version::builders::CreateAIAgentVersionFluentBuilder::ai_agent_id) / [`set_ai_agent_id(Option<String>)`](crate::operation::create_ai_agent_version::builders::CreateAIAgentVersionFluentBuilder::set_ai_agent_id):<br>required: **true**<br><p>The identifier of the Amazon Q in Connect AI Agent.</p><br>
8 /// - [`modified_time(DateTime)`](crate::operation::create_ai_agent_version::builders::CreateAIAgentVersionFluentBuilder::modified_time) / [`set_modified_time(Option<DateTime>)`](crate::operation::create_ai_agent_version::builders::CreateAIAgentVersionFluentBuilder::set_modified_time):<br>required: **false**<br><p>The modification time of the AI Agent should be tracked for version creation. This field should be specified to avoid version creation when simultaneous update to the underlying AI Agent are possible. The value should be the modifiedTime returned from the request to create or update an AI Agent so that version creation can fail if an update to the AI Agent post the specified modification time has been made.</p><br>
9 /// - [`client_token(impl Into<String>)`](crate::operation::create_ai_agent_version::builders::CreateAIAgentVersionFluentBuilder::client_token) / [`set_client_token(Option<String>)`](crate::operation::create_ai_agent_version::builders::CreateAIAgentVersionFluentBuilder::set_client_token):<br>required: **false**<br><p>A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If not provided, the Amazon Web Services SDK populates this field. For more information about idempotency, see <a href="http://aws.amazon.com/builders-library/making-retries-safe-with-idempotent-APIs/">Making retries safe with idempotent APIs</a>..</p><br>
10 /// - On success, responds with [`CreateAiAgentVersionOutput`](crate::operation::create_ai_agent_version::CreateAiAgentVersionOutput) with field(s):
11 /// - [`ai_agent(Option<AiAgentData>)`](crate::operation::create_ai_agent_version::CreateAiAgentVersionOutput::ai_agent): <p>The data of the AI Agent version.</p>
12 /// - [`version_number(Option<i64>)`](crate::operation::create_ai_agent_version::CreateAiAgentVersionOutput::version_number): <p>The version number of the AI Agent version.</p>
13 /// - On failure, responds with [`SdkError<CreateAIAgentVersionError>`](crate::operation::create_ai_agent_version::CreateAIAgentVersionError)
14 pub fn create_ai_agent_version(&self) -> crate::operation::create_ai_agent_version::builders::CreateAIAgentVersionFluentBuilder {
15 crate::operation::create_ai_agent_version::builders::CreateAIAgentVersionFluentBuilder::new(self.handle.clone())
16 }
17}