libZSservicesZSamazonka-lex-modelsZSamazonka-lex-models
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

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
Eq DeleteBot Source # 
Instance details

Defined in Amazonka.LexModels.DeleteBot

Read DeleteBot Source # 
Instance details

Defined in Amazonka.LexModels.DeleteBot

Show DeleteBot Source # 
Instance details

Defined in Amazonka.LexModels.DeleteBot

Generic DeleteBot Source # 
Instance details

Defined in Amazonka.LexModels.DeleteBot

Associated Types

type Rep DeleteBot :: Type -> Type #

NFData DeleteBot Source # 
Instance details

Defined in Amazonka.LexModels.DeleteBot

Methods

rnf :: DeleteBot -> () #

Hashable DeleteBot Source # 
Instance details

Defined in Amazonka.LexModels.DeleteBot

AWSRequest DeleteBot Source # 
Instance details

Defined in Amazonka.LexModels.DeleteBot

Associated Types

type AWSResponse DeleteBot #

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

type Rep DeleteBot Source # 
Instance details

Defined in Amazonka.LexModels.DeleteBot

type Rep DeleteBot = D1 ('MetaData "DeleteBot" "Amazonka.LexModels.DeleteBot" "libZSservicesZSamazonka-lex-modelsZSamazonka-lex-models" 'False) (C1 ('MetaCons "DeleteBot'" 'PrefixI 'True) (S1 ('MetaSel ('Just "name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))
type AWSResponse DeleteBot Source # 
Instance details

Defined in Amazonka.LexModels.DeleteBot

newDeleteBot Source #

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:

$sel:name: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
Eq DeleteBotResponse Source # 
Instance details

Defined in Amazonka.LexModels.DeleteBot

Read DeleteBotResponse Source # 
Instance details

Defined in Amazonka.LexModels.DeleteBot

Show DeleteBotResponse Source # 
Instance details

Defined in Amazonka.LexModels.DeleteBot

Generic DeleteBotResponse Source # 
Instance details

Defined in Amazonka.LexModels.DeleteBot

Associated Types

type Rep DeleteBotResponse :: Type -> Type #

NFData DeleteBotResponse Source # 
Instance details

Defined in Amazonka.LexModels.DeleteBot

Methods

rnf :: DeleteBotResponse -> () #

type Rep DeleteBotResponse Source # 
Instance details

Defined in Amazonka.LexModels.DeleteBot

type Rep DeleteBotResponse = D1 ('MetaData "DeleteBotResponse" "Amazonka.LexModels.DeleteBot" "libZSservicesZSamazonka-lex-modelsZSamazonka-lex-models" '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.