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.DeleteBotVersion

Description

Deletes a specific version of a bot. To delete all version of a bot, use the DeleteBot operation.

Synopsis

Creating a Request

data DeleteBotVersion Source #

See: newDeleteBotVersion smart constructor.

Constructors

DeleteBotVersion' 

Fields

  • skipResourceInUseCheck :: Maybe Bool

    By default, the DeleteBotVersion operations throws a ResourceInUseException exception if you try to delete a bot version that has an alias pointing at it. Set the skipResourceInUseCheck parameter to true to skip this check and remove the version even if an alias points to it.

  • botId :: Text

    The identifier of the bot that contains the version.

  • botVersion :: Text

    The version of the bot to delete.

Instances

Instances details
ToHeaders DeleteBotVersion Source # 
Instance details

Defined in Amazonka.LexV2Models.DeleteBotVersion

ToPath DeleteBotVersion Source # 
Instance details

Defined in Amazonka.LexV2Models.DeleteBotVersion

ToQuery DeleteBotVersion Source # 
Instance details

Defined in Amazonka.LexV2Models.DeleteBotVersion

AWSRequest DeleteBotVersion Source # 
Instance details

Defined in Amazonka.LexV2Models.DeleteBotVersion

Associated Types

type AWSResponse DeleteBotVersion #

Generic DeleteBotVersion Source # 
Instance details

Defined in Amazonka.LexV2Models.DeleteBotVersion

Associated Types

type Rep DeleteBotVersion :: Type -> Type #

Read DeleteBotVersion Source # 
Instance details

Defined in Amazonka.LexV2Models.DeleteBotVersion

Show DeleteBotVersion Source # 
Instance details

Defined in Amazonka.LexV2Models.DeleteBotVersion

NFData DeleteBotVersion Source # 
Instance details

Defined in Amazonka.LexV2Models.DeleteBotVersion

Methods

rnf :: DeleteBotVersion -> () #

Eq DeleteBotVersion Source # 
Instance details

Defined in Amazonka.LexV2Models.DeleteBotVersion

Hashable DeleteBotVersion Source # 
Instance details

Defined in Amazonka.LexV2Models.DeleteBotVersion

type AWSResponse DeleteBotVersion Source # 
Instance details

Defined in Amazonka.LexV2Models.DeleteBotVersion

type Rep DeleteBotVersion Source # 
Instance details

Defined in Amazonka.LexV2Models.DeleteBotVersion

type Rep DeleteBotVersion = D1 ('MetaData "DeleteBotVersion" "Amazonka.LexV2Models.DeleteBotVersion" "amazonka-lexv2-models-2.0-5mExjJXBfuO6j0ascNcayE" 'False) (C1 ('MetaCons "DeleteBotVersion'" 'PrefixI 'True) (S1 ('MetaSel ('Just "skipResourceInUseCheck") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: (S1 ('MetaSel ('Just "botId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "botVersion") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))

newDeleteBotVersion Source #

Create a value of DeleteBotVersion 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:DeleteBotVersion', deleteBotVersion_skipResourceInUseCheck - By default, the DeleteBotVersion operations throws a ResourceInUseException exception if you try to delete a bot version that has an alias pointing at it. Set the skipResourceInUseCheck parameter to true to skip this check and remove the version even if an alias points to it.

DeleteBotVersion, deleteBotVersion_botId - The identifier of the bot that contains the version.

DeleteBotVersion, deleteBotVersion_botVersion - The version of the bot to delete.

Request Lenses

deleteBotVersion_skipResourceInUseCheck :: Lens' DeleteBotVersion (Maybe Bool) Source #

By default, the DeleteBotVersion operations throws a ResourceInUseException exception if you try to delete a bot version that has an alias pointing at it. Set the skipResourceInUseCheck parameter to true to skip this check and remove the version even if an alias points to it.

deleteBotVersion_botId :: Lens' DeleteBotVersion Text Source #

The identifier of the bot that contains the version.

deleteBotVersion_botVersion :: Lens' DeleteBotVersion Text Source #

The version of the bot to delete.

Destructuring the Response

data DeleteBotVersionResponse Source #

See: newDeleteBotVersionResponse smart constructor.

Constructors

DeleteBotVersionResponse' 

Fields

Instances

Instances details
Generic DeleteBotVersionResponse Source # 
Instance details

Defined in Amazonka.LexV2Models.DeleteBotVersion

Associated Types

type Rep DeleteBotVersionResponse :: Type -> Type #

Read DeleteBotVersionResponse Source # 
Instance details

Defined in Amazonka.LexV2Models.DeleteBotVersion

Show DeleteBotVersionResponse Source # 
Instance details

Defined in Amazonka.LexV2Models.DeleteBotVersion

NFData DeleteBotVersionResponse Source # 
Instance details

Defined in Amazonka.LexV2Models.DeleteBotVersion

Eq DeleteBotVersionResponse Source # 
Instance details

Defined in Amazonka.LexV2Models.DeleteBotVersion

type Rep DeleteBotVersionResponse Source # 
Instance details

Defined in Amazonka.LexV2Models.DeleteBotVersion

type Rep DeleteBotVersionResponse = D1 ('MetaData "DeleteBotVersionResponse" "Amazonka.LexV2Models.DeleteBotVersion" "amazonka-lexv2-models-2.0-5mExjJXBfuO6j0ascNcayE" 'False) (C1 ('MetaCons "DeleteBotVersionResponse'" '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 "botVersion") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

newDeleteBotVersionResponse Source #

Create a value of DeleteBotVersionResponse 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:

DeleteBotVersion, deleteBotVersionResponse_botId - The identifier of the bot that is being deleted.

DeleteBotVersionResponse, deleteBotVersionResponse_botStatus - The current status of the bot.

DeleteBotVersion, deleteBotVersionResponse_botVersion - The version of the bot that is being deleted.

$sel:httpStatus:DeleteBotVersionResponse', deleteBotVersionResponse_httpStatus - The response's http status code.

Response Lenses

deleteBotVersionResponse_botId :: Lens' DeleteBotVersionResponse (Maybe Text) Source #

The identifier of the bot that is being deleted.

deleteBotVersionResponse_botVersion :: Lens' DeleteBotVersionResponse (Maybe Text) Source #

The version of the bot that is being deleted.