Struct aws_sdk_lexmodelsv2::client::fluent_builders::DeleteBot
source · pub struct DeleteBot { /* 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 DeleteBot
impl DeleteBot
sourcepub async fn customize(
self
) -> Result<CustomizableOperation<DeleteBot, AwsResponseRetryClassifier>, SdkError<DeleteBotError>>
pub async fn customize(
self
) -> Result<CustomizableOperation<DeleteBot, AwsResponseRetryClassifier>, SdkError<DeleteBotError>>
Consume this builder, creating a customizable operation that can be modified before being sent. The operation’s inner http::Request can be modified as well.
sourcepub async fn send(self) -> Result<DeleteBotOutput, SdkError<DeleteBotError>>
pub async fn send(self) -> Result<DeleteBotOutput, SdkError<DeleteBotError>>
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 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 skip_resource_in_use_check(self, input: bool) -> Self
pub fn skip_resource_in_use_check(self, input: bool) -> Self
When true, Amazon Lex doesn't check to see if another resource, such as an alias, is using the bot before it is deleted.
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
When true, Amazon Lex doesn't check to see if another resource, such as an alias, is using the bot before it is deleted.