amazonka-lex-models-1.6.1: 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.DeleteBot

Contents

Description

Deletes all versions of the bot, including the > LATEST version. To delete a specific version of the bot, use the DeleteBotVersion 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

deleteBot Source #

Arguments

:: Text

dbName

-> DeleteBot 

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

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

  • dbName - The name of the bot. The name is case sensitive.

data DeleteBot Source #

See: deleteBot smart constructor.

Instances
Eq DeleteBot Source # 
Instance details

Defined in Network.AWS.LexModels.DeleteBot

Data DeleteBot Source # 
Instance details

Defined in Network.AWS.LexModels.DeleteBot

Methods

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

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

toConstr :: DeleteBot -> Constr #

dataTypeOf :: DeleteBot -> DataType #

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

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

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

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

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

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

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

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

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

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

Read DeleteBot Source # 
Instance details

Defined in Network.AWS.LexModels.DeleteBot

Show DeleteBot Source # 
Instance details

Defined in Network.AWS.LexModels.DeleteBot

Generic DeleteBot Source # 
Instance details

Defined in Network.AWS.LexModels.DeleteBot

Associated Types

type Rep DeleteBot :: Type -> Type #

Hashable DeleteBot Source # 
Instance details

Defined in Network.AWS.LexModels.DeleteBot

AWSRequest DeleteBot Source # 
Instance details

Defined in Network.AWS.LexModels.DeleteBot

Associated Types

type Rs DeleteBot :: Type #

ToHeaders DeleteBot Source # 
Instance details

Defined in Network.AWS.LexModels.DeleteBot

Methods

toHeaders :: DeleteBot -> [Header] #

ToPath DeleteBot Source # 
Instance details

Defined in Network.AWS.LexModels.DeleteBot

ToQuery DeleteBot Source # 
Instance details

Defined in Network.AWS.LexModels.DeleteBot

NFData DeleteBot Source # 
Instance details

Defined in Network.AWS.LexModels.DeleteBot

Methods

rnf :: DeleteBot -> () #

type Rep DeleteBot Source # 
Instance details

Defined in Network.AWS.LexModels.DeleteBot

type Rep DeleteBot = D1 (MetaData "DeleteBot" "Network.AWS.LexModels.DeleteBot" "amazonka-lex-models-1.6.1-16JSA2D34IH7p8RxcjidTj" True) (C1 (MetaCons "DeleteBot'" PrefixI True) (S1 (MetaSel (Just "_dbName") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Text)))
type Rs DeleteBot Source # 
Instance details

Defined in Network.AWS.LexModels.DeleteBot

Request Lenses

dbName :: Lens' DeleteBot Text Source #

The name of the bot. The name is case sensitive.

Destructuring the Response

deleteBotResponse :: DeleteBotResponse Source #

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

data DeleteBotResponse Source #

See: deleteBotResponse smart constructor.

Instances
Eq DeleteBotResponse Source # 
Instance details

Defined in Network.AWS.LexModels.DeleteBot

Data DeleteBotResponse Source # 
Instance details

Defined in Network.AWS.LexModels.DeleteBot

Methods

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

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

toConstr :: DeleteBotResponse -> Constr #

dataTypeOf :: DeleteBotResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read DeleteBotResponse Source # 
Instance details

Defined in Network.AWS.LexModels.DeleteBot

Show DeleteBotResponse Source # 
Instance details

Defined in Network.AWS.LexModels.DeleteBot

Generic DeleteBotResponse Source # 
Instance details

Defined in Network.AWS.LexModels.DeleteBot

Associated Types

type Rep DeleteBotResponse :: Type -> Type #

NFData DeleteBotResponse Source # 
Instance details

Defined in Network.AWS.LexModels.DeleteBot

Methods

rnf :: DeleteBotResponse -> () #

type Rep DeleteBotResponse Source # 
Instance details

Defined in Network.AWS.LexModels.DeleteBot

type Rep DeleteBotResponse = D1 (MetaData "DeleteBotResponse" "Network.AWS.LexModels.DeleteBot" "amazonka-lex-models-1.6.1-16JSA2D34IH7p8RxcjidTj" False) (C1 (MetaCons "DeleteBotResponse'" PrefixI False) (U1 :: Type -> Type))