amazonka-lex-models-2.0: Amazon Lex Model Building Service SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.LexModels.DeleteBot

Description

Deletes all versions of the bot, including the $LATEST version. To delete a specific version of the bot, use the DeleteBotVersion operation. The DeleteBot operation doesn't immediately remove the bot schema. Instead, it is marked for deletion and removed later.

Amazon Lex stores utterances indefinitely for improving the ability of your bot to respond to user inputs. These utterances are not removed when the bot is deleted. To remove the utterances, use the DeleteUtterances operation.

If a bot has an alias, you can't delete it. Instead, the DeleteBot operation returns a ResourceInUseException exception that includes a reference to the alias that refers to the bot. To remove the reference to the bot, delete the alias. If you get the same exception again, delete the referring alias until the DeleteBot operation is successful.

This operation requires permissions for the lex:DeleteBot action.

Synopsis

Creating a Request

data DeleteBot Source #

See: newDeleteBot smart constructor.

Constructors

DeleteBot' 

Fields

  • name :: Text

    The name of the bot. The name is case sensitive.

Instances

Instances details
ToHeaders DeleteBot Source # 
Instance details

Defined in Amazonka.LexModels.DeleteBot

Methods

toHeaders :: DeleteBot -> [Header] #

ToPath DeleteBot Source # 
Instance details

Defined in Amazonka.LexModels.DeleteBot

ToQuery DeleteBot Source # 
Instance details

Defined in Amazonka.LexModels.DeleteBot

AWSRequest DeleteBot Source # 
Instance details

Defined in Amazonka.LexModels.DeleteBot

Associated Types

type AWSResponse DeleteBot #

Generic DeleteBot Source # 
Instance details

Defined in Amazonka.LexModels.DeleteBot

Associated Types

type Rep DeleteBot :: Type -> Type #

Read DeleteBot Source # 
Instance details

Defined in Amazonka.LexModels.DeleteBot

Show DeleteBot Source # 
Instance details

Defined in Amazonka.LexModels.DeleteBot

NFData DeleteBot Source # 
Instance details

Defined in Amazonka.LexModels.DeleteBot

Methods

rnf :: DeleteBot -> () #

Eq DeleteBot Source # 
Instance details

Defined in Amazonka.LexModels.DeleteBot

Hashable DeleteBot Source # 
Instance details

Defined in Amazonka.LexModels.DeleteBot

type AWSResponse DeleteBot Source # 
Instance details

Defined in Amazonka.LexModels.DeleteBot

type Rep DeleteBot Source # 
Instance details

Defined in Amazonka.LexModels.DeleteBot

type Rep DeleteBot = D1 ('MetaData "DeleteBot" "Amazonka.LexModels.DeleteBot" "amazonka-lex-models-2.0-8Q1WIjnrCCIAMPuyNOCiG7" 'False) (C1 ('MetaCons "DeleteBot'" 'PrefixI 'True) (S1 ('MetaSel ('Just "name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))

newDeleteBot Source #

Arguments

:: Text

DeleteBot

-> DeleteBot 

Create a value of DeleteBot with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

DeleteBot, deleteBot_name - The name of the bot. The name is case sensitive.

Request Lenses

deleteBot_name :: Lens' DeleteBot Text Source #

The name of the bot. The name is case sensitive.

Destructuring the Response

data DeleteBotResponse Source #

See: newDeleteBotResponse smart constructor.

Constructors

DeleteBotResponse' 

Instances

Instances details
Generic DeleteBotResponse Source # 
Instance details

Defined in Amazonka.LexModels.DeleteBot

Associated Types

type Rep DeleteBotResponse :: Type -> Type #

Read DeleteBotResponse Source # 
Instance details

Defined in Amazonka.LexModels.DeleteBot

Show DeleteBotResponse Source # 
Instance details

Defined in Amazonka.LexModels.DeleteBot

NFData DeleteBotResponse Source # 
Instance details

Defined in Amazonka.LexModels.DeleteBot

Methods

rnf :: DeleteBotResponse -> () #

Eq DeleteBotResponse Source # 
Instance details

Defined in Amazonka.LexModels.DeleteBot

type Rep DeleteBotResponse Source # 
Instance details

Defined in Amazonka.LexModels.DeleteBot

type Rep DeleteBotResponse = D1 ('MetaData "DeleteBotResponse" "Amazonka.LexModels.DeleteBot" "amazonka-lex-models-2.0-8Q1WIjnrCCIAMPuyNOCiG7" 'False) (C1 ('MetaCons "DeleteBotResponse'" 'PrefixI 'False) (U1 :: Type -> Type))

newDeleteBotResponse :: DeleteBotResponse Source #

Create a value of DeleteBotResponse with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.