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

Contents

Description

Creates an alias for the specified version of the bot or replaces an alias for the specified bot. To change the version of the bot that the alias points to, replace the alias. For more information about aliases, see 'versioning-aliases' .

This operation requires permissions for the lex:PutBotAlias action.

Synopsis

Creating a Request

putBotAlias Source #

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

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

  • pbaChecksum - Identifies a specific revision of the > LATEST version. When you create a new bot alias, leave the checksum field blank. If you specify a checksum you get a BadRequestException exception. When you want to update a bot alias, set the checksum field to the checksum of the most recent revision of the > LATEST version. If you don't specify the checksum field, or if the checksum does not match the > LATEST version, you get a PreconditionFailedException exception.
  • pbaDescription - A description of the alias.
  • pbaName - The name of the alias. The name is not case sensitive.
  • pbaBotVersion - The version of the bot.
  • pbaBotName - The name of the bot.

data PutBotAlias Source #

See: putBotAlias smart constructor.

Instances
Eq PutBotAlias Source # 
Instance details

Defined in Network.AWS.LexModels.PutBotAlias

Data PutBotAlias Source # 
Instance details

Defined in Network.AWS.LexModels.PutBotAlias

Methods

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

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

toConstr :: PutBotAlias -> Constr #

dataTypeOf :: PutBotAlias -> DataType #

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

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

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

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

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

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

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

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

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

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

Read PutBotAlias Source # 
Instance details

Defined in Network.AWS.LexModels.PutBotAlias

Show PutBotAlias Source # 
Instance details

Defined in Network.AWS.LexModels.PutBotAlias

Generic PutBotAlias Source # 
Instance details

Defined in Network.AWS.LexModels.PutBotAlias

Associated Types

type Rep PutBotAlias :: Type -> Type #

Hashable PutBotAlias Source # 
Instance details

Defined in Network.AWS.LexModels.PutBotAlias

ToJSON PutBotAlias Source # 
Instance details

Defined in Network.AWS.LexModels.PutBotAlias

AWSRequest PutBotAlias Source # 
Instance details

Defined in Network.AWS.LexModels.PutBotAlias

Associated Types

type Rs PutBotAlias :: Type #

ToHeaders PutBotAlias Source # 
Instance details

Defined in Network.AWS.LexModels.PutBotAlias

Methods

toHeaders :: PutBotAlias -> [Header] #

ToPath PutBotAlias Source # 
Instance details

Defined in Network.AWS.LexModels.PutBotAlias

ToQuery PutBotAlias Source # 
Instance details

Defined in Network.AWS.LexModels.PutBotAlias

NFData PutBotAlias Source # 
Instance details

Defined in Network.AWS.LexModels.PutBotAlias

Methods

rnf :: PutBotAlias -> () #

type Rep PutBotAlias Source # 
Instance details

Defined in Network.AWS.LexModels.PutBotAlias

type Rep PutBotAlias = D1 (MetaData "PutBotAlias" "Network.AWS.LexModels.PutBotAlias" "amazonka-lex-models-1.6.1-16JSA2D34IH7p8RxcjidTj" False) (C1 (MetaCons "PutBotAlias'" PrefixI True) ((S1 (MetaSel (Just "_pbaChecksum") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_pbaDescription") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 (MetaSel (Just "_pbaName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: (S1 (MetaSel (Just "_pbaBotVersion") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_pbaBotName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)))))
type Rs PutBotAlias Source # 
Instance details

Defined in Network.AWS.LexModels.PutBotAlias

Request Lenses

pbaChecksum :: Lens' PutBotAlias (Maybe Text) Source #

Identifies a specific revision of the > LATEST version. When you create a new bot alias, leave the checksum field blank. If you specify a checksum you get a BadRequestException exception. When you want to update a bot alias, set the checksum field to the checksum of the most recent revision of the > LATEST version. If you don't specify the checksum field, or if the checksum does not match the > LATEST version, you get a PreconditionFailedException exception.

pbaDescription :: Lens' PutBotAlias (Maybe Text) Source #

A description of the alias.

pbaName :: Lens' PutBotAlias Text Source #

The name of the alias. The name is not case sensitive.

pbaBotVersion :: Lens' PutBotAlias Text Source #

The version of the bot.

pbaBotName :: Lens' PutBotAlias Text Source #

The name of the bot.

Destructuring the Response

putBotAliasResponse Source #

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

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

data PutBotAliasResponse Source #

See: putBotAliasResponse smart constructor.

Instances
Eq PutBotAliasResponse Source # 
Instance details

Defined in Network.AWS.LexModels.PutBotAlias

Data PutBotAliasResponse Source # 
Instance details

Defined in Network.AWS.LexModels.PutBotAlias

Methods

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

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

toConstr :: PutBotAliasResponse -> Constr #

dataTypeOf :: PutBotAliasResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read PutBotAliasResponse Source # 
Instance details

Defined in Network.AWS.LexModels.PutBotAlias

Show PutBotAliasResponse Source # 
Instance details

Defined in Network.AWS.LexModels.PutBotAlias

Generic PutBotAliasResponse Source # 
Instance details

Defined in Network.AWS.LexModels.PutBotAlias

Associated Types

type Rep PutBotAliasResponse :: Type -> Type #

NFData PutBotAliasResponse Source # 
Instance details

Defined in Network.AWS.LexModels.PutBotAlias

Methods

rnf :: PutBotAliasResponse -> () #

type Rep PutBotAliasResponse Source # 
Instance details

Defined in Network.AWS.LexModels.PutBotAlias

type Rep PutBotAliasResponse = D1 (MetaData "PutBotAliasResponse" "Network.AWS.LexModels.PutBotAlias" "amazonka-lex-models-1.6.1-16JSA2D34IH7p8RxcjidTj" False) (C1 (MetaCons "PutBotAliasResponse'" PrefixI True) (((S1 (MetaSel (Just "_pbarsChecksum") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_pbarsBotVersion") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 (MetaSel (Just "_pbarsBotName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_pbarsCreatedDate") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe POSIX)))) :*: ((S1 (MetaSel (Just "_pbarsName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_pbarsLastUpdatedDate") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe POSIX))) :*: (S1 (MetaSel (Just "_pbarsDescription") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_pbarsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int)))))

Response Lenses

pbarsChecksum :: Lens' PutBotAliasResponse (Maybe Text) Source #

The checksum for the current version of the alias.

pbarsBotVersion :: Lens' PutBotAliasResponse (Maybe Text) Source #

The version of the bot that the alias points to.

pbarsBotName :: Lens' PutBotAliasResponse (Maybe Text) Source #

The name of the bot that the alias points to.

pbarsCreatedDate :: Lens' PutBotAliasResponse (Maybe UTCTime) Source #

The date that the bot alias was created.

pbarsName :: Lens' PutBotAliasResponse (Maybe Text) Source #

The name of the alias.

pbarsLastUpdatedDate :: Lens' PutBotAliasResponse (Maybe UTCTime) Source #

The date that the bot alias was updated. When you create a resource, the creation date and the last updated date are the same.

pbarsDescription :: Lens' PutBotAliasResponse (Maybe Text) Source #

A description of the alias.

pbarsResponseStatus :: Lens' PutBotAliasResponse Int Source #

  • - | The response status code.