amazonka-lexv2-models-2.0: Amazon Lex Model Building V2 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.LexV2Models.DeleteBot

Description

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.

Synopsis

Creating a Request

data DeleteBot Source #

See: newDeleteBot smart constructor.

Constructors

DeleteBot' 

Fields

  • skipResourceInUseCheck :: Maybe Bool

    When true, Amazon Lex doesn't check to see if another resource, such as an alias, is using the bot before it is deleted.

  • botId :: Text

    The identifier of the bot to delete.

Instances

Instances details
ToHeaders DeleteBot Source # 
Instance details

Defined in Amazonka.LexV2Models.DeleteBot

Methods

toHeaders :: DeleteBot -> [Header] #

ToPath DeleteBot Source # 
Instance details

Defined in Amazonka.LexV2Models.DeleteBot

ToQuery DeleteBot Source # 
Instance details

Defined in Amazonka.LexV2Models.DeleteBot

AWSRequest DeleteBot Source # 
Instance details

Defined in Amazonka.LexV2Models.DeleteBot

Associated Types

type AWSResponse DeleteBot #

Generic DeleteBot Source # 
Instance details

Defined in Amazonka.LexV2Models.DeleteBot

Associated Types

type Rep DeleteBot :: Type -> Type #

Read DeleteBot Source # 
Instance details

Defined in Amazonka.LexV2Models.DeleteBot

Show DeleteBot Source # 
Instance details

Defined in Amazonka.LexV2Models.DeleteBot

NFData DeleteBot Source # 
Instance details

Defined in Amazonka.LexV2Models.DeleteBot

Methods

rnf :: DeleteBot -> () #

Eq DeleteBot Source # 
Instance details

Defined in Amazonka.LexV2Models.DeleteBot

Hashable DeleteBot Source # 
Instance details

Defined in Amazonka.LexV2Models.DeleteBot

type AWSResponse DeleteBot Source # 
Instance details

Defined in Amazonka.LexV2Models.DeleteBot

type Rep DeleteBot Source # 
Instance details

Defined in Amazonka.LexV2Models.DeleteBot

type Rep DeleteBot = D1 ('MetaData "DeleteBot" "Amazonka.LexV2Models.DeleteBot" "amazonka-lexv2-models-2.0-5mExjJXBfuO6j0ascNcayE" 'False) (C1 ('MetaCons "DeleteBot'" 'PrefixI 'True) (S1 ('MetaSel ('Just "skipResourceInUseCheck") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "botId") '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:

$sel:skipResourceInUseCheck:DeleteBot', deleteBot_skipResourceInUseCheck - When true, Amazon Lex doesn't check to see if another resource, such as an alias, is using the bot before it is deleted.

DeleteBot, deleteBot_botId - The identifier of the bot to delete.

Request Lenses

deleteBot_skipResourceInUseCheck :: Lens' DeleteBot (Maybe Bool) Source #

When true, Amazon Lex doesn't check to see if another resource, such as an alias, is using the bot before it is deleted.

deleteBot_botId :: Lens' DeleteBot Text Source #

The identifier of the bot to delete.

Destructuring the Response

data DeleteBotResponse Source #

See: newDeleteBotResponse smart constructor.

Constructors

DeleteBotResponse' 

Fields

  • botId :: Maybe Text

    The unique identifier of the bot that Amazon Lex is deleting.

  • botStatus :: Maybe BotStatus

    The current status of the bot. The status is Deleting while the bot and its associated resources are being deleted.

  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Generic DeleteBotResponse Source # 
Instance details

Defined in Amazonka.LexV2Models.DeleteBot

Associated Types

type Rep DeleteBotResponse :: Type -> Type #

Read DeleteBotResponse Source # 
Instance details

Defined in Amazonka.LexV2Models.DeleteBot

Show DeleteBotResponse Source # 
Instance details

Defined in Amazonka.LexV2Models.DeleteBot

NFData DeleteBotResponse Source # 
Instance details

Defined in Amazonka.LexV2Models.DeleteBot

Methods

rnf :: DeleteBotResponse -> () #

Eq DeleteBotResponse Source # 
Instance details

Defined in Amazonka.LexV2Models.DeleteBot

type Rep DeleteBotResponse Source # 
Instance details

Defined in Amazonka.LexV2Models.DeleteBot

type Rep DeleteBotResponse = D1 ('MetaData "DeleteBotResponse" "Amazonka.LexV2Models.DeleteBot" "amazonka-lexv2-models-2.0-5mExjJXBfuO6j0ascNcayE" 'False) (C1 ('MetaCons "DeleteBotResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "botId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "botStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe BotStatus)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

newDeleteBotResponse Source #

Create a value of DeleteBotResponse 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, deleteBotResponse_botId - The unique identifier of the bot that Amazon Lex is deleting.

DeleteBotResponse, deleteBotResponse_botStatus - The current status of the bot. The status is Deleting while the bot and its associated resources are being deleted.

$sel:httpStatus:DeleteBotResponse', deleteBotResponse_httpStatus - The response's http status code.

Response Lenses

deleteBotResponse_botId :: Lens' DeleteBotResponse (Maybe Text) Source #

The unique identifier of the bot that Amazon Lex is deleting.

deleteBotResponse_botStatus :: Lens' DeleteBotResponse (Maybe BotStatus) Source #

The current status of the bot. The status is Deleting while the bot and its associated resources are being deleted.

deleteBotResponse_httpStatus :: Lens' DeleteBotResponse Int Source #

The response's http status code.