Struct aws_sdk_lexmodelsv2::input::CreateBotLocaleInput
source · #[non_exhaustive]pub struct CreateBotLocaleInput { /* private fields */ }Implementations§
source§impl CreateBotLocaleInput
impl CreateBotLocaleInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<CreateBotLocale, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<CreateBotLocale, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<CreateBotLocale>
Examples found in repository?
1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::CreateBotLocale,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::CreateBotLocaleError>,
> {
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::CreateBotLocaleOutput,
aws_smithy_http::result::SdkError<crate::error::CreateBotLocaleError>,
> {
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 CreateBotLocaleInput.
source§impl CreateBotLocaleInput
impl CreateBotLocaleInput
sourcepub fn bot_version(&self) -> Option<&str>
pub fn bot_version(&self) -> Option<&str>
The version of the bot to create the locale for. This can only be the draft version of the bot.
sourcepub fn locale_id(&self) -> Option<&str>
pub fn locale_id(&self) -> Option<&str>
The identifier of the language and locale that the bot will be used in. The string must match one of the supported locales. All of the intents, slot types, and slots used in the bot must have the same locale. For more information, see Supported languages.
sourcepub fn description(&self) -> Option<&str>
pub fn description(&self) -> Option<&str>
A description of the bot locale. Use this to help identify the bot locale in lists.
sourcepub fn nlu_intent_confidence_threshold(&self) -> Option<f64>
pub fn nlu_intent_confidence_threshold(&self) -> Option<f64>
Determines the threshold where Amazon Lex will insert the AMAZON.FallbackIntent, AMAZON.KendraSearchIntent, or both when returning alternative intents. AMAZON.FallbackIntent and AMAZON.KendraSearchIntent are only inserted if they are configured for the bot.
For example, suppose a bot is configured with the confidence threshold of 0.80 and the AMAZON.FallbackIntent. Amazon Lex returns three alternative intents with the following confidence scores: IntentA (0.70), IntentB (0.60), IntentC (0.50). The response from the RecognizeText operation would be:
-
AMAZON.FallbackIntent
-
IntentA
-
IntentB
-
IntentC
sourcepub fn voice_settings(&self) -> Option<&VoiceSettings>
pub fn voice_settings(&self) -> Option<&VoiceSettings>
The Amazon Polly voice ID that Amazon Lex uses for voice interaction with the user.
Trait Implementations§
source§impl Clone for CreateBotLocaleInput
impl Clone for CreateBotLocaleInput
source§fn clone(&self) -> CreateBotLocaleInput
fn clone(&self) -> CreateBotLocaleInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more