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.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 # 
Data PutBotAlias Source # 

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 # 
Show PutBotAlias Source # 
Generic PutBotAlias Source # 

Associated Types

type Rep PutBotAlias :: * -> * #

Hashable PutBotAlias Source # 
ToJSON PutBotAlias Source # 
NFData PutBotAlias Source # 

Methods

rnf :: PutBotAlias -> () #

AWSRequest PutBotAlias Source # 
ToHeaders PutBotAlias Source # 

Methods

toHeaders :: PutBotAlias -> [Header] #

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

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 # 
Data PutBotAliasResponse Source # 

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 # 
Show PutBotAliasResponse Source # 
Generic PutBotAliasResponse Source # 
NFData PutBotAliasResponse Source # 

Methods

rnf :: PutBotAliasResponse -> () #

type Rep PutBotAliasResponse Source # 
type Rep PutBotAliasResponse = D1 * (MetaData "PutBotAliasResponse" "Network.AWS.LexModels.PutBotAlias" "amazonka-lex-models-1.6.0-Iv3mghdDvOI9Mj0nI0DuS4" False) (C1 * (MetaCons "PutBotAliasResponse'" PrefixI True) ((:*:) * ((:*:) * ((:*:) * (S1 * (MetaSel (Just Symbol "_pbarsChecksum") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))) (S1 * (MetaSel (Just Symbol "_pbarsBotVersion") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text)))) ((:*:) * (S1 * (MetaSel (Just Symbol "_pbarsBotName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))) (S1 * (MetaSel (Just Symbol "_pbarsCreatedDate") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe POSIX))))) ((:*:) * ((:*:) * (S1 * (MetaSel (Just Symbol "_pbarsName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))) (S1 * (MetaSel (Just Symbol "_pbarsLastUpdatedDate") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe POSIX)))) ((:*:) * (S1 * (MetaSel (Just Symbol "_pbarsDescription") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))) (S1 * (MetaSel (Just Symbol "_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.