aws_sdk_lexmodelsv2/client/update_intent.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 [`UpdateIntent`](crate::operation::update_intent::builders::UpdateIntentFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`intent_id(impl Into<String>)`](crate::operation::update_intent::builders::UpdateIntentFluentBuilder::intent_id) / [`set_intent_id(Option<String>)`](crate::operation::update_intent::builders::UpdateIntentFluentBuilder::set_intent_id):<br>required: **true**<br><p>The unique identifier of the intent to update.</p><br>
7 /// - [`intent_name(impl Into<String>)`](crate::operation::update_intent::builders::UpdateIntentFluentBuilder::intent_name) / [`set_intent_name(Option<String>)`](crate::operation::update_intent::builders::UpdateIntentFluentBuilder::set_intent_name):<br>required: **true**<br><p>The new name for the intent.</p><br>
8 /// - [`description(impl Into<String>)`](crate::operation::update_intent::builders::UpdateIntentFluentBuilder::description) / [`set_description(Option<String>)`](crate::operation::update_intent::builders::UpdateIntentFluentBuilder::set_description):<br>required: **false**<br><p>The new description of the intent.</p><br>
9 /// - [`parent_intent_signature(impl Into<String>)`](crate::operation::update_intent::builders::UpdateIntentFluentBuilder::parent_intent_signature) / [`set_parent_intent_signature(Option<String>)`](crate::operation::update_intent::builders::UpdateIntentFluentBuilder::set_parent_intent_signature):<br>required: **false**<br><p>The signature of the new built-in intent to use as the parent of this intent.</p><br>
10 /// - [`sample_utterances(SampleUtterance)`](crate::operation::update_intent::builders::UpdateIntentFluentBuilder::sample_utterances) / [`set_sample_utterances(Option<Vec::<SampleUtterance>>)`](crate::operation::update_intent::builders::UpdateIntentFluentBuilder::set_sample_utterances):<br>required: **false**<br><p>New utterances used to invoke the intent.</p><br>
11 /// - [`dialog_code_hook(DialogCodeHookSettings)`](crate::operation::update_intent::builders::UpdateIntentFluentBuilder::dialog_code_hook) / [`set_dialog_code_hook(Option<DialogCodeHookSettings>)`](crate::operation::update_intent::builders::UpdateIntentFluentBuilder::set_dialog_code_hook):<br>required: **false**<br><p>The new Lambda function to use between each turn of the conversation with the bot.</p><br>
12 /// - [`fulfillment_code_hook(FulfillmentCodeHookSettings)`](crate::operation::update_intent::builders::UpdateIntentFluentBuilder::fulfillment_code_hook) / [`set_fulfillment_code_hook(Option<FulfillmentCodeHookSettings>)`](crate::operation::update_intent::builders::UpdateIntentFluentBuilder::set_fulfillment_code_hook):<br>required: **false**<br><p>The new Lambda function to call when all of the intents required slots are provided and the intent is ready for fulfillment.</p><br>
13 /// - [`slot_priorities(SlotPriority)`](crate::operation::update_intent::builders::UpdateIntentFluentBuilder::slot_priorities) / [`set_slot_priorities(Option<Vec::<SlotPriority>>)`](crate::operation::update_intent::builders::UpdateIntentFluentBuilder::set_slot_priorities):<br>required: **false**<br><p>A new list of slots and their priorities that are contained by the intent.</p><br>
14 /// - [`intent_confirmation_setting(IntentConfirmationSetting)`](crate::operation::update_intent::builders::UpdateIntentFluentBuilder::intent_confirmation_setting) / [`set_intent_confirmation_setting(Option<IntentConfirmationSetting>)`](crate::operation::update_intent::builders::UpdateIntentFluentBuilder::set_intent_confirmation_setting):<br>required: **false**<br><p>New prompts that Amazon Lex sends to the user to confirm the completion of an intent.</p><br>
15 /// - [`intent_closing_setting(IntentClosingSetting)`](crate::operation::update_intent::builders::UpdateIntentFluentBuilder::intent_closing_setting) / [`set_intent_closing_setting(Option<IntentClosingSetting>)`](crate::operation::update_intent::builders::UpdateIntentFluentBuilder::set_intent_closing_setting):<br>required: **false**<br><p>The new response that Amazon Lex sends the user when the intent is closed.</p><br>
16 /// - [`input_contexts(InputContext)`](crate::operation::update_intent::builders::UpdateIntentFluentBuilder::input_contexts) / [`set_input_contexts(Option<Vec::<InputContext>>)`](crate::operation::update_intent::builders::UpdateIntentFluentBuilder::set_input_contexts):<br>required: **false**<br><p>A new list of contexts that must be active in order for Amazon Lex to consider the intent.</p><br>
17 /// - [`output_contexts(OutputContext)`](crate::operation::update_intent::builders::UpdateIntentFluentBuilder::output_contexts) / [`set_output_contexts(Option<Vec::<OutputContext>>)`](crate::operation::update_intent::builders::UpdateIntentFluentBuilder::set_output_contexts):<br>required: **false**<br><p>A new list of contexts that Amazon Lex activates when the intent is fulfilled.</p><br>
18 /// - [`kendra_configuration(KendraConfiguration)`](crate::operation::update_intent::builders::UpdateIntentFluentBuilder::kendra_configuration) / [`set_kendra_configuration(Option<KendraConfiguration>)`](crate::operation::update_intent::builders::UpdateIntentFluentBuilder::set_kendra_configuration):<br>required: **false**<br><p>New configuration settings for connecting to an Amazon Kendra index.</p><br>
19 /// - [`bot_id(impl Into<String>)`](crate::operation::update_intent::builders::UpdateIntentFluentBuilder::bot_id) / [`set_bot_id(Option<String>)`](crate::operation::update_intent::builders::UpdateIntentFluentBuilder::set_bot_id):<br>required: **true**<br><p>The identifier of the bot that contains the intent.</p><br>
20 /// - [`bot_version(impl Into<String>)`](crate::operation::update_intent::builders::UpdateIntentFluentBuilder::bot_version) / [`set_bot_version(Option<String>)`](crate::operation::update_intent::builders::UpdateIntentFluentBuilder::set_bot_version):<br>required: **true**<br><p>The version of the bot that contains the intent. Must be <code>DRAFT</code>.</p><br>
21 /// - [`locale_id(impl Into<String>)`](crate::operation::update_intent::builders::UpdateIntentFluentBuilder::locale_id) / [`set_locale_id(Option<String>)`](crate::operation::update_intent::builders::UpdateIntentFluentBuilder::set_locale_id):<br>required: **true**<br><p>The identifier of the language and locale where this intent is used. The string must match one of the supported locales. For more information, see <a href="https://docs.aws.amazon.com/lexv2/latest/dg/how-languages.html">Supported languages</a>.</p><br>
22 /// - [`initial_response_setting(InitialResponseSetting)`](crate::operation::update_intent::builders::UpdateIntentFluentBuilder::initial_response_setting) / [`set_initial_response_setting(Option<InitialResponseSetting>)`](crate::operation::update_intent::builders::UpdateIntentFluentBuilder::set_initial_response_setting):<br>required: **false**<br><p>Configuration settings for a response sent to the user before Amazon Lex starts eliciting slots.</p><br>
23 /// - [`qn_a_intent_configuration(QnAIntentConfiguration)`](crate::operation::update_intent::builders::UpdateIntentFluentBuilder::qn_a_intent_configuration) / [`set_qn_a_intent_configuration(Option<QnAIntentConfiguration>)`](crate::operation::update_intent::builders::UpdateIntentFluentBuilder::set_qn_a_intent_configuration):<br>required: **false**<br><p>Specifies the configuration of the built-in <code>Amazon.QnAIntent</code>. The <code>AMAZON.QnAIntent</code> intent is called when Amazon Lex can't determine another intent to invoke. If you specify this field, you can't specify the <code>kendraConfiguration</code> field.</p><br>
24 /// - [`q_in_connect_intent_configuration(QInConnectIntentConfiguration)`](crate::operation::update_intent::builders::UpdateIntentFluentBuilder::q_in_connect_intent_configuration) / [`set_q_in_connect_intent_configuration(Option<QInConnectIntentConfiguration>)`](crate::operation::update_intent::builders::UpdateIntentFluentBuilder::set_q_in_connect_intent_configuration):<br>required: **false**<br><p>Qinconnect intent configuration details for the update intent request.</p><br>
25 /// - On success, responds with [`UpdateIntentOutput`](crate::operation::update_intent::UpdateIntentOutput) with field(s):
26 /// - [`intent_id(Option<String>)`](crate::operation::update_intent::UpdateIntentOutput::intent_id): <p>The identifier of the intent that was updated.</p>
27 /// - [`intent_name(Option<String>)`](crate::operation::update_intent::UpdateIntentOutput::intent_name): <p>The updated name of the intent.</p>
28 /// - [`description(Option<String>)`](crate::operation::update_intent::UpdateIntentOutput::description): <p>The updated description of the intent.</p>
29 /// - [`parent_intent_signature(Option<String>)`](crate::operation::update_intent::UpdateIntentOutput::parent_intent_signature): <p>The updated built-in intent that is the parent of this intent.</p>
30 /// - [`sample_utterances(Option<Vec::<SampleUtterance>>)`](crate::operation::update_intent::UpdateIntentOutput::sample_utterances): <p>The updated list of sample utterances for the intent.</p>
31 /// - [`dialog_code_hook(Option<DialogCodeHookSettings>)`](crate::operation::update_intent::UpdateIntentOutput::dialog_code_hook): <p>The updated Lambda function called during each turn of the conversation with the user.</p>
32 /// - [`fulfillment_code_hook(Option<FulfillmentCodeHookSettings>)`](crate::operation::update_intent::UpdateIntentOutput::fulfillment_code_hook): <p>The updated Lambda function called when the intent is ready for fulfillment.</p>
33 /// - [`slot_priorities(Option<Vec::<SlotPriority>>)`](crate::operation::update_intent::UpdateIntentOutput::slot_priorities): <p>The updated list of slots and their priorities that are elicited from the user for the intent.</p>
34 /// - [`intent_confirmation_setting(Option<IntentConfirmationSetting>)`](crate::operation::update_intent::UpdateIntentOutput::intent_confirmation_setting): <p>The updated prompts that Amazon Lex sends to the user to confirm the completion of an intent.</p>
35 /// - [`intent_closing_setting(Option<IntentClosingSetting>)`](crate::operation::update_intent::UpdateIntentOutput::intent_closing_setting): <p>The updated response that Amazon Lex sends the user when the intent is closed.</p>
36 /// - [`input_contexts(Option<Vec::<InputContext>>)`](crate::operation::update_intent::UpdateIntentOutput::input_contexts): <p>The updated list of contexts that must be active for the intent to be considered by Amazon Lex.</p>
37 /// - [`output_contexts(Option<Vec::<OutputContext>>)`](crate::operation::update_intent::UpdateIntentOutput::output_contexts): <p>The updated list of contexts that Amazon Lex activates when the intent is fulfilled.</p>
38 /// - [`kendra_configuration(Option<KendraConfiguration>)`](crate::operation::update_intent::UpdateIntentOutput::kendra_configuration): <p>The updated configuration for connecting to an Amazon Kendra index with the <code>AMAZON.KendraSearchIntent</code> intent.</p>
39 /// - [`bot_id(Option<String>)`](crate::operation::update_intent::UpdateIntentOutput::bot_id): <p>The identifier of the bot that contains the intent.</p>
40 /// - [`bot_version(Option<String>)`](crate::operation::update_intent::UpdateIntentOutput::bot_version): <p>The version of the bot that contains the intent. Will always be <code>DRAFT</code>.</p>
41 /// - [`locale_id(Option<String>)`](crate::operation::update_intent::UpdateIntentOutput::locale_id): <p>The updated language and locale of the intent.</p>
42 /// - [`creation_date_time(Option<DateTime>)`](crate::operation::update_intent::UpdateIntentOutput::creation_date_time): <p>A timestamp of when the intent was created.</p>
43 /// - [`last_updated_date_time(Option<DateTime>)`](crate::operation::update_intent::UpdateIntentOutput::last_updated_date_time): <p>A timestamp of the last time that the intent was modified.</p>
44 /// - [`initial_response_setting(Option<InitialResponseSetting>)`](crate::operation::update_intent::UpdateIntentOutput::initial_response_setting): <p>Configuration settings for a response sent to the user before Amazon Lex starts eliciting slots.</p>
45 /// - [`qn_a_intent_configuration(Option<QnAIntentConfiguration>)`](crate::operation::update_intent::UpdateIntentOutput::qn_a_intent_configuration): <p>Details about the configuration of the built-in <code>Amazon.QnAIntent</code>.</p>
46 /// - [`q_in_connect_intent_configuration(Option<QInConnectIntentConfiguration>)`](crate::operation::update_intent::UpdateIntentOutput::q_in_connect_intent_configuration): <p>Qinconnect intent configuration details for the update intent response.</p>
47 /// - On failure, responds with [`SdkError<UpdateIntentError>`](crate::operation::update_intent::UpdateIntentError)
48 pub fn update_intent(&self) -> crate::operation::update_intent::builders::UpdateIntentFluentBuilder {
49 crate::operation::update_intent::builders::UpdateIntentFluentBuilder::new(self.handle.clone())
50 }
51}