aws_sdk_lexmodelbuilding/client/
create_bot_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 [`CreateBotVersion`](crate::operation::create_bot_version::builders::CreateBotVersionFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`name(impl Into<String>)`](crate::operation::create_bot_version::builders::CreateBotVersionFluentBuilder::name) / [`set_name(Option<String>)`](crate::operation::create_bot_version::builders::CreateBotVersionFluentBuilder::set_name):<br>required: **true**<br><p>The name of the bot that you want to create a new version of. The name is case sensitive.</p><br>
7    ///   - [`checksum(impl Into<String>)`](crate::operation::create_bot_version::builders::CreateBotVersionFluentBuilder::checksum) / [`set_checksum(Option<String>)`](crate::operation::create_bot_version::builders::CreateBotVersionFluentBuilder::set_checksum):<br>required: **false**<br><p>Identifies a specific revision of the <code>$LATEST</code> version of the bot. If you specify a checksum and the <code>$LATEST</code> version of the bot has a different checksum, a <code>PreconditionFailedException</code> exception is returned and Amazon Lex doesn't publish a new version. If you don't specify a checksum, Amazon Lex publishes the <code>$LATEST</code> version.</p><br>
8    /// - On success, responds with [`CreateBotVersionOutput`](crate::operation::create_bot_version::CreateBotVersionOutput) with field(s):
9    ///   - [`name(Option<String>)`](crate::operation::create_bot_version::CreateBotVersionOutput::name): <p>The name of the bot.</p>
10    ///   - [`description(Option<String>)`](crate::operation::create_bot_version::CreateBotVersionOutput::description): <p>A description of the bot.</p>
11    ///   - [`intents(Option<Vec::<Intent>>)`](crate::operation::create_bot_version::CreateBotVersionOutput::intents): <p>An array of <code>Intent</code> objects. For more information, see <code>PutBot</code>.</p>
12    ///   - [`clarification_prompt(Option<Prompt>)`](crate::operation::create_bot_version::CreateBotVersionOutput::clarification_prompt): <p>The message that Amazon Lex uses when it doesn't understand the user's request. For more information, see <code>PutBot</code>.</p>
13    ///   - [`abort_statement(Option<Statement>)`](crate::operation::create_bot_version::CreateBotVersionOutput::abort_statement): <p>The message that Amazon Lex uses to cancel a conversation. For more information, see <code>PutBot</code>.</p>
14    ///   - [`status(Option<Status>)`](crate::operation::create_bot_version::CreateBotVersionOutput::status): <p>When you send a request to create or update a bot, Amazon Lex sets the <code>status</code> response element to <code>BUILDING</code>. After Amazon Lex builds the bot, it sets <code>status</code> to <code>READY</code>. If Amazon Lex can't build the bot, it sets <code>status</code> to <code>FAILED</code>. Amazon Lex returns the reason for the failure in the <code>failureReason</code> response element.</p>
15    ///   - [`failure_reason(Option<String>)`](crate::operation::create_bot_version::CreateBotVersionOutput::failure_reason): <p>If <code>status</code> is <code>FAILED</code>, Amazon Lex provides the reason that it failed to build the bot.</p>
16    ///   - [`last_updated_date(Option<DateTime>)`](crate::operation::create_bot_version::CreateBotVersionOutput::last_updated_date): <p>The date when the <code>$LATEST</code> version of this bot was updated.</p>
17    ///   - [`created_date(Option<DateTime>)`](crate::operation::create_bot_version::CreateBotVersionOutput::created_date): <p>The date when the bot version was created.</p>
18    ///   - [`idle_session_ttl_in_seconds(Option<i32>)`](crate::operation::create_bot_version::CreateBotVersionOutput::idle_session_ttl_in_seconds): <p>The maximum time in seconds that Amazon Lex retains the data gathered in a conversation. For more information, see <code>PutBot</code>.</p>
19    ///   - [`voice_id(Option<String>)`](crate::operation::create_bot_version::CreateBotVersionOutput::voice_id): <p>The Amazon Polly voice ID that Amazon Lex uses for voice interactions with the user.</p>
20    ///   - [`checksum(Option<String>)`](crate::operation::create_bot_version::CreateBotVersionOutput::checksum): <p>Checksum identifying the version of the bot that was created.</p>
21    ///   - [`version(Option<String>)`](crate::operation::create_bot_version::CreateBotVersionOutput::version): <p>The version of the bot.</p>
22    ///   - [`locale(Option<Locale>)`](crate::operation::create_bot_version::CreateBotVersionOutput::locale): <p>Specifies the target locale for the bot.</p>
23    ///   - [`child_directed(Option<bool>)`](crate::operation::create_bot_version::CreateBotVersionOutput::child_directed): <p>For each Amazon Lex bot created with the Amazon Lex Model Building Service, you must specify whether your use of Amazon Lex is related to a website, program, or other application that is directed or targeted, in whole or in part, to children under age 13 and subject to the Children's Online Privacy Protection Act (COPPA) by specifying <code>true</code> or <code>false</code> in the <code>childDirected</code> field. By specifying <code>true</code> in the <code>childDirected</code> field, you confirm that your use of Amazon Lex <b>is</b> related to a website, program, or other application that is directed or targeted, in whole or in part, to children under age 13 and subject to COPPA. By specifying <code>false</code> in the <code>childDirected</code> field, you confirm that your use of Amazon Lex <b>is not</b> related to a website, program, or other application that is directed or targeted, in whole or in part, to children under age 13 and subject to COPPA. You may not specify a default value for the <code>childDirected</code> field that does not accurately reflect whether your use of Amazon Lex is related to a website, program, or other application that is directed or targeted, in whole or in part, to children under age 13 and subject to COPPA.</p> <p>If your use of Amazon Lex relates to a website, program, or other application that is directed in whole or in part, to children under age 13, you must obtain any required verifiable parental consent under COPPA. For information regarding the use of Amazon Lex in connection with websites, programs, or other applications that are directed or targeted, in whole or in part, to children under age 13, see the <a href="https://aws.amazon.com/lex/faqs#data-security">Amazon Lex FAQ.</a></p>
24    ///   - [`enable_model_improvements(Option<bool>)`](crate::operation::create_bot_version::CreateBotVersionOutput::enable_model_improvements): <p>Indicates whether the bot uses accuracy improvements. <code>true</code> indicates that the bot is using the improvements, otherwise, <code>false</code>.</p>
25    ///   - [`detect_sentiment(Option<bool>)`](crate::operation::create_bot_version::CreateBotVersionOutput::detect_sentiment): <p>Indicates whether utterances entered by the user should be sent to Amazon Comprehend for sentiment analysis.</p>
26    /// - On failure, responds with [`SdkError<CreateBotVersionError>`](crate::operation::create_bot_version::CreateBotVersionError)
27    pub fn create_bot_version(&self) -> crate::operation::create_bot_version::builders::CreateBotVersionFluentBuilder {
28        crate::operation::create_bot_version::builders::CreateBotVersionFluentBuilder::new(self.handle.clone())
29    }
30}