aws_sdk_lexmodelbuilding/client/create_intent_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 [`CreateIntentVersion`](crate::operation::create_intent_version::builders::CreateIntentVersionFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`name(impl Into<String>)`](crate::operation::create_intent_version::builders::CreateIntentVersionFluentBuilder::name) / [`set_name(Option<String>)`](crate::operation::create_intent_version::builders::CreateIntentVersionFluentBuilder::set_name):<br>required: **true**<br><p>The name of the intent that you want to create a new version of. The name is case sensitive.</p><br>
7 /// - [`checksum(impl Into<String>)`](crate::operation::create_intent_version::builders::CreateIntentVersionFluentBuilder::checksum) / [`set_checksum(Option<String>)`](crate::operation::create_intent_version::builders::CreateIntentVersionFluentBuilder::set_checksum):<br>required: **false**<br><p>Checksum of the <code>$LATEST</code> version of the intent that should be used to create the new version. If you specify a checksum and the <code>$LATEST</code> version of the intent has a different checksum, Amazon Lex returns a <code>PreconditionFailedException</code> exception and 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 [`CreateIntentVersionOutput`](crate::operation::create_intent_version::CreateIntentVersionOutput) with field(s):
9 /// - [`name(Option<String>)`](crate::operation::create_intent_version::CreateIntentVersionOutput::name): <p>The name of the intent.</p>
10 /// - [`description(Option<String>)`](crate::operation::create_intent_version::CreateIntentVersionOutput::description): <p>A description of the intent.</p>
11 /// - [`slots(Option<Vec::<Slot>>)`](crate::operation::create_intent_version::CreateIntentVersionOutput::slots): <p>An array of slot types that defines the information required to fulfill the intent.</p>
12 /// - [`sample_utterances(Option<Vec::<String>>)`](crate::operation::create_intent_version::CreateIntentVersionOutput::sample_utterances): <p>An array of sample utterances configured for the intent.</p>
13 /// - [`confirmation_prompt(Option<Prompt>)`](crate::operation::create_intent_version::CreateIntentVersionOutput::confirmation_prompt): <p>If defined, the prompt that Amazon Lex uses to confirm the user's intent before fulfilling it.</p>
14 /// - [`rejection_statement(Option<Statement>)`](crate::operation::create_intent_version::CreateIntentVersionOutput::rejection_statement): <p>If the user answers "no" to the question defined in <code>confirmationPrompt</code>, Amazon Lex responds with this statement to acknowledge that the intent was canceled.</p>
15 /// - [`follow_up_prompt(Option<FollowUpPrompt>)`](crate::operation::create_intent_version::CreateIntentVersionOutput::follow_up_prompt): <p>If defined, Amazon Lex uses this prompt to solicit additional user activity after the intent is fulfilled.</p>
16 /// - [`conclusion_statement(Option<Statement>)`](crate::operation::create_intent_version::CreateIntentVersionOutput::conclusion_statement): <p>After the Lambda function specified in the <code>fulfillmentActivity</code> field fulfills the intent, Amazon Lex conveys this statement to the user.</p>
17 /// - [`dialog_code_hook(Option<CodeHook>)`](crate::operation::create_intent_version::CreateIntentVersionOutput::dialog_code_hook): <p>If defined, Amazon Lex invokes this Lambda function for each user input.</p>
18 /// - [`fulfillment_activity(Option<FulfillmentActivity>)`](crate::operation::create_intent_version::CreateIntentVersionOutput::fulfillment_activity): <p>Describes how the intent is fulfilled.</p>
19 /// - [`parent_intent_signature(Option<String>)`](crate::operation::create_intent_version::CreateIntentVersionOutput::parent_intent_signature): <p>A unique identifier for a built-in intent.</p>
20 /// - [`last_updated_date(Option<DateTime>)`](crate::operation::create_intent_version::CreateIntentVersionOutput::last_updated_date): <p>The date that the intent was updated.</p>
21 /// - [`created_date(Option<DateTime>)`](crate::operation::create_intent_version::CreateIntentVersionOutput::created_date): <p>The date that the intent was created.</p>
22 /// - [`version(Option<String>)`](crate::operation::create_intent_version::CreateIntentVersionOutput::version): <p>The version number assigned to the new version of the intent.</p>
23 /// - [`checksum(Option<String>)`](crate::operation::create_intent_version::CreateIntentVersionOutput::checksum): <p>Checksum of the intent version created.</p>
24 /// - [`kendra_configuration(Option<KendraConfiguration>)`](crate::operation::create_intent_version::CreateIntentVersionOutput::kendra_configuration): <p>Configuration information, if any, for connecting an Amazon Kendra index with the <code>AMAZON.KendraSearchIntent</code> intent.</p>
25 /// - [`input_contexts(Option<Vec::<InputContext>>)`](crate::operation::create_intent_version::CreateIntentVersionOutput::input_contexts): <p>An array of <code>InputContext</code> objects that lists the contexts that must be active for Amazon Lex to choose the intent in a conversation with the user.</p>
26 /// - [`output_contexts(Option<Vec::<OutputContext>>)`](crate::operation::create_intent_version::CreateIntentVersionOutput::output_contexts): <p>An array of <code>OutputContext</code> objects that lists the contexts that the intent activates when the intent is fulfilled.</p>
27 /// - On failure, responds with [`SdkError<CreateIntentVersionError>`](crate::operation::create_intent_version::CreateIntentVersionError)
28 pub fn create_intent_version(&self) -> crate::operation::create_intent_version::builders::CreateIntentVersionFluentBuilder {
29 crate::operation::create_intent_version::builders::CreateIntentVersionFluentBuilder::new(self.handle.clone())
30 }
31}