Struct aws_sdk_lexmodelsv2::input::UpdateIntentInput
source · #[non_exhaustive]pub struct UpdateIntentInput { /* private fields */ }Implementations§
source§impl UpdateIntentInput
impl UpdateIntentInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<UpdateIntent, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<UpdateIntent, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<UpdateIntent>
Examples found in repository?
8829 8830 8831 8832 8833 8834 8835 8836 8837 8838 8839 8840 8841 8842 8843 8844 8845 8846 8847 8848 8849 8850 8851 8852 8853 8854 8855 8856 8857 8858 8859 8860 8861 8862 8863 8864 8865 8866 8867 8868 8869 8870 8871
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::UpdateIntent,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::UpdateIntentError>,
> {
let handle = self.handle.clone();
let operation = self
.inner
.build()
.map_err(aws_smithy_http::result::SdkError::construction_failure)?
.make_operation(&handle.conf)
.await
.map_err(aws_smithy_http::result::SdkError::construction_failure)?;
Ok(crate::operation::customize::CustomizableOperation { handle, operation })
}
/// Sends the request and returns the response.
///
/// If an error occurs, an `SdkError` will be returned with additional details that
/// can be matched against.
///
/// By default, any retryable failures will be retried twice. Retry behavior
/// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::UpdateIntentOutput,
aws_smithy_http::result::SdkError<crate::error::UpdateIntentError>,
> {
let op = self
.inner
.build()
.map_err(aws_smithy_http::result::SdkError::construction_failure)?
.make_operation(&self.handle.conf)
.await
.map_err(aws_smithy_http::result::SdkError::construction_failure)?;
self.handle.client.call(op).await
}sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture UpdateIntentInput.
source§impl UpdateIntentInput
impl UpdateIntentInput
sourcepub fn intent_name(&self) -> Option<&str>
pub fn intent_name(&self) -> Option<&str>
The new name for the intent.
sourcepub fn description(&self) -> Option<&str>
pub fn description(&self) -> Option<&str>
The new description of the intent.
sourcepub fn parent_intent_signature(&self) -> Option<&str>
pub fn parent_intent_signature(&self) -> Option<&str>
The signature of the new built-in intent to use as the parent of this intent.
sourcepub fn sample_utterances(&self) -> Option<&[SampleUtterance]>
pub fn sample_utterances(&self) -> Option<&[SampleUtterance]>
New utterances used to invoke the intent.
sourcepub fn dialog_code_hook(&self) -> Option<&DialogCodeHookSettings>
pub fn dialog_code_hook(&self) -> Option<&DialogCodeHookSettings>
The new Lambda function to use between each turn of the conversation with the bot.
sourcepub fn fulfillment_code_hook(&self) -> Option<&FulfillmentCodeHookSettings>
pub fn fulfillment_code_hook(&self) -> Option<&FulfillmentCodeHookSettings>
The new Lambda function to call when all of the intents required slots are provided and the intent is ready for fulfillment.
sourcepub fn slot_priorities(&self) -> Option<&[SlotPriority]>
pub fn slot_priorities(&self) -> Option<&[SlotPriority]>
A new list of slots and their priorities that are contained by the intent.
sourcepub fn intent_confirmation_setting(&self) -> Option<&IntentConfirmationSetting>
pub fn intent_confirmation_setting(&self) -> Option<&IntentConfirmationSetting>
New prompts that Amazon Lex sends to the user to confirm the completion of an intent.
sourcepub fn intent_closing_setting(&self) -> Option<&IntentClosingSetting>
pub fn intent_closing_setting(&self) -> Option<&IntentClosingSetting>
The new response that Amazon Lex sends the user when the intent is closed.
sourcepub fn input_contexts(&self) -> Option<&[InputContext]>
pub fn input_contexts(&self) -> Option<&[InputContext]>
A new list of contexts that must be active in order for Amazon Lex to consider the intent.
sourcepub fn output_contexts(&self) -> Option<&[OutputContext]>
pub fn output_contexts(&self) -> Option<&[OutputContext]>
A new list of contexts that Amazon Lex activates when the intent is fulfilled.
sourcepub fn kendra_configuration(&self) -> Option<&KendraConfiguration>
pub fn kendra_configuration(&self) -> Option<&KendraConfiguration>
New configuration settings for connecting to an Amazon Kendra index.
sourcepub fn bot_version(&self) -> Option<&str>
pub fn bot_version(&self) -> Option<&str>
The version of the bot that contains the intent. Must be DRAFT.
sourcepub fn locale_id(&self) -> Option<&str>
pub fn locale_id(&self) -> Option<&str>
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 Supported languages.
sourcepub fn initial_response_setting(&self) -> Option<&InitialResponseSetting>
pub fn initial_response_setting(&self) -> Option<&InitialResponseSetting>
Trait Implementations§
source§impl Clone for UpdateIntentInput
impl Clone for UpdateIntentInput
source§fn clone(&self) -> UpdateIntentInput
fn clone(&self) -> UpdateIntentInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more