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

Description

Deletes an alias for the specified bot.

You can't delete an alias that is used in the association between a bot and a messaging channel. If an alias is used in a channel association, the DeleteBot operation returns a ResourceInUseException exception that includes a reference to the channel association that refers to the bot. You can remove the reference to the alias by deleting the channel association. If you get the same exception again, delete the referring association until the DeleteBotAlias operation is successful.

Synopsis

Creating a Request

data DeleteBotAlias Source #

See: newDeleteBotAlias smart constructor.

Constructors

DeleteBotAlias' 

Fields

  • name :: Text

    The name of the alias to delete. The name is case sensitive.

  • botName :: Text

    The name of the bot that the alias points to.

Instances

Instances details
Eq DeleteBotAlias Source # 
Instance details

Defined in Amazonka.LexModels.DeleteBotAlias

Read DeleteBotAlias Source # 
Instance details

Defined in Amazonka.LexModels.DeleteBotAlias

Show DeleteBotAlias Source # 
Instance details

Defined in Amazonka.LexModels.DeleteBotAlias

Generic DeleteBotAlias Source # 
Instance details

Defined in Amazonka.LexModels.DeleteBotAlias

Associated Types

type Rep DeleteBotAlias :: Type -> Type #

NFData DeleteBotAlias Source # 
Instance details

Defined in Amazonka.LexModels.DeleteBotAlias

Methods

rnf :: DeleteBotAlias -> () #

Hashable DeleteBotAlias Source # 
Instance details

Defined in Amazonka.LexModels.DeleteBotAlias

AWSRequest DeleteBotAlias Source # 
Instance details

Defined in Amazonka.LexModels.DeleteBotAlias

Associated Types

type AWSResponse DeleteBotAlias #

ToHeaders DeleteBotAlias Source # 
Instance details

Defined in Amazonka.LexModels.DeleteBotAlias

ToPath DeleteBotAlias Source # 
Instance details

Defined in Amazonka.LexModels.DeleteBotAlias

ToQuery DeleteBotAlias Source # 
Instance details

Defined in Amazonka.LexModels.DeleteBotAlias

type Rep DeleteBotAlias Source # 
Instance details

Defined in Amazonka.LexModels.DeleteBotAlias

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

Defined in Amazonka.LexModels.DeleteBotAlias

newDeleteBotAlias Source #

Create a value of DeleteBotAlias 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:DeleteBotAlias', deleteBotAlias_name - The name of the alias to delete. The name is case sensitive.

$sel:botName:DeleteBotAlias', deleteBotAlias_botName - The name of the bot that the alias points to.

Request Lenses

deleteBotAlias_name :: Lens' DeleteBotAlias Text Source #

The name of the alias to delete. The name is case sensitive.

deleteBotAlias_botName :: Lens' DeleteBotAlias Text Source #

The name of the bot that the alias points to.

Destructuring the Response

data DeleteBotAliasResponse Source #

See: newDeleteBotAliasResponse smart constructor.

Instances

Instances details
Eq DeleteBotAliasResponse Source # 
Instance details

Defined in Amazonka.LexModels.DeleteBotAlias

Read DeleteBotAliasResponse Source # 
Instance details

Defined in Amazonka.LexModels.DeleteBotAlias

Show DeleteBotAliasResponse Source # 
Instance details

Defined in Amazonka.LexModels.DeleteBotAlias

Generic DeleteBotAliasResponse Source # 
Instance details

Defined in Amazonka.LexModels.DeleteBotAlias

Associated Types

type Rep DeleteBotAliasResponse :: Type -> Type #

NFData DeleteBotAliasResponse Source # 
Instance details

Defined in Amazonka.LexModels.DeleteBotAlias

Methods

rnf :: DeleteBotAliasResponse -> () #

type Rep DeleteBotAliasResponse Source # 
Instance details

Defined in Amazonka.LexModels.DeleteBotAlias

type Rep DeleteBotAliasResponse = D1 ('MetaData "DeleteBotAliasResponse" "Amazonka.LexModels.DeleteBotAlias" "libZSservicesZSamazonka-lex-modelsZSamazonka-lex-models" 'False) (C1 ('MetaCons "DeleteBotAliasResponse'" 'PrefixI 'False) (U1 :: Type -> Type))

newDeleteBotAliasResponse :: DeleteBotAliasResponse Source #

Create a value of DeleteBotAliasResponse with all optional fields omitted.

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