pub struct DeleteBotFluentBuilder { /* private fields */ }Expand description
Fluent builder constructing a request to DeleteBot.
Deletes all versions of a bot, including the Draft version. To delete a specific version, use the DeleteBotVersion operation.
When you delete a bot, all of the resources contained in the bot are also deleted. Deleting a bot removes all locales, intents, slot, and slot types defined for the bot.
If a bot has an alias, the DeleteBot operation returns a ResourceInUseException exception. If you want to delete the bot and the alias, set the skipResourceInUseCheck parameter to true.
Implementations§
source§impl DeleteBotFluentBuilder
impl DeleteBotFluentBuilder
sourcepub fn as_input(&self) -> &DeleteBotInputBuilder
pub fn as_input(&self) -> &DeleteBotInputBuilder
Access the DeleteBot as a reference.
sourcepub async fn send(
self
) -> Result<DeleteBotOutput, SdkError<DeleteBotError, HttpResponse>>
pub async fn send( self ) -> Result<DeleteBotOutput, SdkError<DeleteBotError, HttpResponse>>
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, which can be set when configuring the client.
sourcepub async fn customize(
self
) -> Result<CustomizableOperation<DeleteBotOutput, DeleteBotError>, SdkError<DeleteBotError>>
pub async fn customize( self ) -> Result<CustomizableOperation<DeleteBotOutput, DeleteBotError>, SdkError<DeleteBotError>>
Consumes this builder, creating a customizable operation that can be modified before being sent.
sourcepub fn set_bot_id(self, input: Option<String>) -> Self
pub fn set_bot_id(self, input: Option<String>) -> Self
The identifier of the bot to delete.
sourcepub fn get_bot_id(&self) -> &Option<String>
pub fn get_bot_id(&self) -> &Option<String>
The identifier of the bot to delete.
sourcepub fn skip_resource_in_use_check(self, input: bool) -> Self
pub fn skip_resource_in_use_check(self, input: bool) -> Self
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 ResourceInUseException exception if the bot is being used by another resource. Set this parameter to true to skip this check and remove the bot even if it is being used by another resource.
sourcepub fn set_skip_resource_in_use_check(self, input: Option<bool>) -> Self
pub fn set_skip_resource_in_use_check(self, input: Option<bool>) -> Self
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 ResourceInUseException exception if the bot is being used by another resource. Set this parameter to true to skip this check and remove the bot even if it is being used by another resource.
sourcepub fn get_skip_resource_in_use_check(&self) -> &Option<bool>
pub fn get_skip_resource_in_use_check(&self) -> &Option<bool>
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 ResourceInUseException exception if the bot is being used by another resource. Set this parameter to true to skip this check and remove the bot even if it is being used by another resource.
Trait Implementations§
source§impl Clone for DeleteBotFluentBuilder
impl Clone for DeleteBotFluentBuilder
source§fn clone(&self) -> DeleteBotFluentBuilder
fn clone(&self) -> DeleteBotFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more