aws_sdk_lexmodelsv2/client/
delete_bot.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 [`DeleteBot`](crate::operation::delete_bot::builders::DeleteBotFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`bot_id(impl Into<String>)`](crate::operation::delete_bot::builders::DeleteBotFluentBuilder::bot_id) / [`set_bot_id(Option<String>)`](crate::operation::delete_bot::builders::DeleteBotFluentBuilder::set_bot_id):<br>required: **true**<br><p>The identifier of the bot to delete.</p><br>
7    ///   - [`skip_resource_in_use_check(bool)`](crate::operation::delete_bot::builders::DeleteBotFluentBuilder::skip_resource_in_use_check) / [`set_skip_resource_in_use_check(Option<bool>)`](crate::operation::delete_bot::builders::DeleteBotFluentBuilder::set_skip_resource_in_use_check):<br>required: **false**<br><p>By default, Amazon Lex checks if any other resource, such as an alias or bot network, is using the bot version before it is deleted and throws a <code>ResourceInUseException</code> exception if the bot is being used by another resource. Set this parameter to <code>true</code> to skip this check and remove the bot even if it is being used by another resource.</p><br>
8    /// - On success, responds with [`DeleteBotOutput`](crate::operation::delete_bot::DeleteBotOutput) with field(s):
9    ///   - [`bot_id(Option<String>)`](crate::operation::delete_bot::DeleteBotOutput::bot_id): <p>The unique identifier of the bot that Amazon Lex is deleting.</p>
10    ///   - [`bot_status(Option<BotStatus>)`](crate::operation::delete_bot::DeleteBotOutput::bot_status): <p>The current status of the bot. The status is <code>Deleting</code> while the bot and its associated resources are being deleted.</p>
11    /// - On failure, responds with [`SdkError<DeleteBotError>`](crate::operation::delete_bot::DeleteBotError)
12    pub fn delete_bot(&self) -> crate::operation::delete_bot::builders::DeleteBotFluentBuilder {
13        crate::operation::delete_bot::builders::DeleteBotFluentBuilder::new(self.handle.clone())
14    }
15}