aws_sdk_lexmodelsv2/client/
delete_bot_locale.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 [`DeleteBotLocale`](crate::operation::delete_bot_locale::builders::DeleteBotLocaleFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`bot_id(impl Into<String>)`](crate::operation::delete_bot_locale::builders::DeleteBotLocaleFluentBuilder::bot_id) / [`set_bot_id(Option<String>)`](crate::operation::delete_bot_locale::builders::DeleteBotLocaleFluentBuilder::set_bot_id):<br>required: **true**<br><p>The unique identifier of the bot that contains the locale.</p><br>
7    ///   - [`bot_version(impl Into<String>)`](crate::operation::delete_bot_locale::builders::DeleteBotLocaleFluentBuilder::bot_version) / [`set_bot_version(Option<String>)`](crate::operation::delete_bot_locale::builders::DeleteBotLocaleFluentBuilder::set_bot_version):<br>required: **true**<br><p>The version of the bot that contains the locale.</p><br>
8    ///   - [`locale_id(impl Into<String>)`](crate::operation::delete_bot_locale::builders::DeleteBotLocaleFluentBuilder::locale_id) / [`set_locale_id(Option<String>)`](crate::operation::delete_bot_locale::builders::DeleteBotLocaleFluentBuilder::set_locale_id):<br>required: **true**<br><p>The identifier of the language and locale that will be deleted. 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>
9    /// - On success, responds with [`DeleteBotLocaleOutput`](crate::operation::delete_bot_locale::DeleteBotLocaleOutput) with field(s):
10    ///   - [`bot_id(Option<String>)`](crate::operation::delete_bot_locale::DeleteBotLocaleOutput::bot_id): <p>The identifier of the bot that contained the deleted locale.</p>
11    ///   - [`bot_version(Option<String>)`](crate::operation::delete_bot_locale::DeleteBotLocaleOutput::bot_version): <p>The version of the bot that contained the deleted locale.</p>
12    ///   - [`locale_id(Option<String>)`](crate::operation::delete_bot_locale::DeleteBotLocaleOutput::locale_id): <p>The language and locale of the deleted locale.</p>
13    ///   - [`bot_locale_status(Option<BotLocaleStatus>)`](crate::operation::delete_bot_locale::DeleteBotLocaleOutput::bot_locale_status): <p>The status of deleting the bot locale. The locale first enters the <code>Deleting</code> status. Once the locale is deleted it no longer appears in the list of locales for the bot.</p>
14    /// - On failure, responds with [`SdkError<DeleteBotLocaleError>`](crate::operation::delete_bot_locale::DeleteBotLocaleError)
15    pub fn delete_bot_locale(&self) -> crate::operation::delete_bot_locale::builders::DeleteBotLocaleFluentBuilder {
16        crate::operation::delete_bot_locale::builders::DeleteBotLocaleFluentBuilder::new(self.handle.clone())
17    }
18}