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

Contents

Description

Gets information about all of the versions of a bot.

The GetBotVersions operation returns a BotMetadata object for each version of a bot. For example, if a bot has three numbered versions, the GetBotVersions operation returns four BotMetadata objects in the response, one for each numbered version and one for the > LATEST version.

The GetBotVersions operation always returns at least one version, the > LATEST version.

This operation requires permissions for the lex:GetBotVersions action.

This operation returns paginated results.

Synopsis

Creating a Request

getBotVersions Source #

Arguments

:: Text

gbvName

-> GetBotVersions 

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

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

  • gbvNextToken - A pagination token for fetching the next page of bot versions. If the response to this call is truncated, Amazon Lex returns a pagination token in the response. To fetch the next page of versions, specify the pagination token in the next request.
  • gbvMaxResults - The maximum number of bot versions to return in the response. The default is 10.
  • gbvName - The name of the bot for which versions should be returned.

data GetBotVersions Source #

See: getBotVersions smart constructor.

Instances
Eq GetBotVersions Source # 
Instance details

Defined in Network.AWS.LexModels.GetBotVersions

Data GetBotVersions Source # 
Instance details

Defined in Network.AWS.LexModels.GetBotVersions

Methods

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

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

toConstr :: GetBotVersions -> Constr #

dataTypeOf :: GetBotVersions -> DataType #

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

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

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

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

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

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

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

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

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

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

Read GetBotVersions Source # 
Instance details

Defined in Network.AWS.LexModels.GetBotVersions

Show GetBotVersions Source # 
Instance details

Defined in Network.AWS.LexModels.GetBotVersions

Generic GetBotVersions Source # 
Instance details

Defined in Network.AWS.LexModels.GetBotVersions

Associated Types

type Rep GetBotVersions :: Type -> Type #

Hashable GetBotVersions Source # 
Instance details

Defined in Network.AWS.LexModels.GetBotVersions

AWSPager GetBotVersions Source # 
Instance details

Defined in Network.AWS.LexModels.GetBotVersions

AWSRequest GetBotVersions Source # 
Instance details

Defined in Network.AWS.LexModels.GetBotVersions

Associated Types

type Rs GetBotVersions :: Type #

ToHeaders GetBotVersions Source # 
Instance details

Defined in Network.AWS.LexModels.GetBotVersions

ToPath GetBotVersions Source # 
Instance details

Defined in Network.AWS.LexModels.GetBotVersions

ToQuery GetBotVersions Source # 
Instance details

Defined in Network.AWS.LexModels.GetBotVersions

NFData GetBotVersions Source # 
Instance details

Defined in Network.AWS.LexModels.GetBotVersions

Methods

rnf :: GetBotVersions -> () #

type Rep GetBotVersions Source # 
Instance details

Defined in Network.AWS.LexModels.GetBotVersions

type Rep GetBotVersions = D1 (MetaData "GetBotVersions" "Network.AWS.LexModels.GetBotVersions" "amazonka-lex-models-1.6.1-16JSA2D34IH7p8RxcjidTj" False) (C1 (MetaCons "GetBotVersions'" PrefixI True) (S1 (MetaSel (Just "_gbvNextToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 (MetaSel (Just "_gbvMaxResults") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Nat)) :*: S1 (MetaSel (Just "_gbvName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))))
type Rs GetBotVersions Source # 
Instance details

Defined in Network.AWS.LexModels.GetBotVersions

Request Lenses

gbvNextToken :: Lens' GetBotVersions (Maybe Text) Source #

A pagination token for fetching the next page of bot versions. If the response to this call is truncated, Amazon Lex returns a pagination token in the response. To fetch the next page of versions, specify the pagination token in the next request.

gbvMaxResults :: Lens' GetBotVersions (Maybe Natural) Source #

The maximum number of bot versions to return in the response. The default is 10.

gbvName :: Lens' GetBotVersions Text Source #

The name of the bot for which versions should be returned.

Destructuring the Response

getBotVersionsResponse Source #

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

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

  • gbvrsBots - An array of BotMetadata objects, one for each numbered version of the bot plus one for the > LATEST version.
  • gbvrsNextToken - A pagination token for fetching the next page of bot versions. If the response to this call is truncated, Amazon Lex returns a pagination token in the response. To fetch the next page of versions, specify the pagination token in the next request.
  • gbvrsResponseStatus - -- | The response status code.

data GetBotVersionsResponse Source #

See: getBotVersionsResponse smart constructor.

Instances
Eq GetBotVersionsResponse Source # 
Instance details

Defined in Network.AWS.LexModels.GetBotVersions

Data GetBotVersionsResponse Source # 
Instance details

Defined in Network.AWS.LexModels.GetBotVersions

Methods

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

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

toConstr :: GetBotVersionsResponse -> Constr #

dataTypeOf :: GetBotVersionsResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read GetBotVersionsResponse Source # 
Instance details

Defined in Network.AWS.LexModels.GetBotVersions

Show GetBotVersionsResponse Source # 
Instance details

Defined in Network.AWS.LexModels.GetBotVersions

Generic GetBotVersionsResponse Source # 
Instance details

Defined in Network.AWS.LexModels.GetBotVersions

Associated Types

type Rep GetBotVersionsResponse :: Type -> Type #

NFData GetBotVersionsResponse Source # 
Instance details

Defined in Network.AWS.LexModels.GetBotVersions

Methods

rnf :: GetBotVersionsResponse -> () #

type Rep GetBotVersionsResponse Source # 
Instance details

Defined in Network.AWS.LexModels.GetBotVersions

type Rep GetBotVersionsResponse = D1 (MetaData "GetBotVersionsResponse" "Network.AWS.LexModels.GetBotVersions" "amazonka-lex-models-1.6.1-16JSA2D34IH7p8RxcjidTj" False) (C1 (MetaCons "GetBotVersionsResponse'" PrefixI True) (S1 (MetaSel (Just "_gbvrsBots") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [BotMetadata])) :*: (S1 (MetaSel (Just "_gbvrsNextToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_gbvrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int))))

Response Lenses

gbvrsBots :: Lens' GetBotVersionsResponse [BotMetadata] Source #

An array of BotMetadata objects, one for each numbered version of the bot plus one for the > LATEST version.

gbvrsNextToken :: Lens' GetBotVersionsResponse (Maybe Text) Source #

A pagination token for fetching the next page of bot versions. If the response to this call is truncated, Amazon Lex returns a pagination token in the response. To fetch the next page of versions, specify the pagination token in the next request.