amazonka-lex-models-1.6.0: Amazon Lex Model Building Service SDK.

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

Network.AWS.LexModels.DeleteBotAlias

Contents

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

deleteBotAlias Source #

Creates a value of DeleteBotAlias with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

  • dbaName - The name of the alias to delete. The name is case sensitive.
  • dbaBotName - The name of the bot that the alias points to.

data DeleteBotAlias Source #

See: deleteBotAlias smart constructor.

Instances

Eq DeleteBotAlias Source # 
Data DeleteBotAlias Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> DeleteBotAlias -> c DeleteBotAlias #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c DeleteBotAlias #

toConstr :: DeleteBotAlias -> Constr #

dataTypeOf :: DeleteBotAlias -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c DeleteBotAlias) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c DeleteBotAlias) #

gmapT :: (forall b. Data b => b -> b) -> DeleteBotAlias -> DeleteBotAlias #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> DeleteBotAlias -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> DeleteBotAlias -> r #

gmapQ :: (forall d. Data d => d -> u) -> DeleteBotAlias -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> DeleteBotAlias -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> DeleteBotAlias -> m DeleteBotAlias #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> DeleteBotAlias -> m DeleteBotAlias #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> DeleteBotAlias -> m DeleteBotAlias #

Read DeleteBotAlias Source # 
Show DeleteBotAlias Source # 
Generic DeleteBotAlias Source # 

Associated Types

type Rep DeleteBotAlias :: * -> * #

Hashable DeleteBotAlias Source # 
NFData DeleteBotAlias Source # 

Methods

rnf :: DeleteBotAlias -> () #

AWSRequest DeleteBotAlias Source # 
ToHeaders DeleteBotAlias Source # 
ToPath DeleteBotAlias Source # 
ToQuery DeleteBotAlias Source # 
type Rep DeleteBotAlias Source # 
type Rep DeleteBotAlias = D1 * (MetaData "DeleteBotAlias" "Network.AWS.LexModels.DeleteBotAlias" "amazonka-lex-models-1.6.0-Iv3mghdDvOI9Mj0nI0DuS4" False) (C1 * (MetaCons "DeleteBotAlias'" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "_dbaName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Text)) (S1 * (MetaSel (Just Symbol "_dbaBotName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Text))))
type Rs DeleteBotAlias Source # 

Request Lenses

dbaName :: Lens' DeleteBotAlias Text Source #

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

dbaBotName :: Lens' DeleteBotAlias Text Source #

The name of the bot that the alias points to.

Destructuring the Response

deleteBotAliasResponse :: DeleteBotAliasResponse Source #

Creates a value of DeleteBotAliasResponse with the minimum fields required to make a request.

data DeleteBotAliasResponse Source #

See: deleteBotAliasResponse smart constructor.

Instances

Eq DeleteBotAliasResponse Source # 
Data DeleteBotAliasResponse Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> DeleteBotAliasResponse -> c DeleteBotAliasResponse #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c DeleteBotAliasResponse #

toConstr :: DeleteBotAliasResponse -> Constr #

dataTypeOf :: DeleteBotAliasResponse -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c DeleteBotAliasResponse) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c DeleteBotAliasResponse) #

gmapT :: (forall b. Data b => b -> b) -> DeleteBotAliasResponse -> DeleteBotAliasResponse #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> DeleteBotAliasResponse -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> DeleteBotAliasResponse -> r #

gmapQ :: (forall d. Data d => d -> u) -> DeleteBotAliasResponse -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> DeleteBotAliasResponse -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> DeleteBotAliasResponse -> m DeleteBotAliasResponse #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> DeleteBotAliasResponse -> m DeleteBotAliasResponse #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> DeleteBotAliasResponse -> m DeleteBotAliasResponse #

Read DeleteBotAliasResponse Source # 
Show DeleteBotAliasResponse Source # 
Generic DeleteBotAliasResponse Source # 
NFData DeleteBotAliasResponse Source # 

Methods

rnf :: DeleteBotAliasResponse -> () #

type Rep DeleteBotAliasResponse Source # 
type Rep DeleteBotAliasResponse = D1 * (MetaData "DeleteBotAliasResponse" "Network.AWS.LexModels.DeleteBotAlias" "amazonka-lex-models-1.6.0-Iv3mghdDvOI9Mj0nI0DuS4" False) (C1 * (MetaCons "DeleteBotAliasResponse'" PrefixI False) (U1 *))