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

Contents

Description

Gets information about all versions of a slot type.

The GetSlotTypeVersions operation returns a SlotTypeMetadata object for each version of a slot type. For example, if a slot type has three numbered versions, the GetSlotTypeVersions operation returns four SlotTypeMetadata objects in the response, one for each numbered version and one for the > LATEST version.

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

This operation requires permissions for the lex:GetSlotTypeVersions action.

This operation returns paginated results.

Synopsis

Creating a Request

getSlotTypeVersions Source #

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

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

  • gstvNextToken - A pagination token for fetching the next page of slot type 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.
  • gstvMaxResults - The maximum number of slot type versions to return in the response. The default is 10.
  • gstvName - The name of the slot type for which versions should be returned.

data GetSlotTypeVersions Source #

See: getSlotTypeVersions smart constructor.

Instances

Eq GetSlotTypeVersions Source # 
Data GetSlotTypeVersions Source # 

Methods

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

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

toConstr :: GetSlotTypeVersions -> Constr #

dataTypeOf :: GetSlotTypeVersions -> DataType #

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

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

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

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

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

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

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

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

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

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

Read GetSlotTypeVersions Source # 
Show GetSlotTypeVersions Source # 
Generic GetSlotTypeVersions Source # 
Hashable GetSlotTypeVersions Source # 
NFData GetSlotTypeVersions Source # 

Methods

rnf :: GetSlotTypeVersions -> () #

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

Request Lenses

gstvNextToken :: Lens' GetSlotTypeVersions (Maybe Text) Source #

A pagination token for fetching the next page of slot type 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.

gstvMaxResults :: Lens' GetSlotTypeVersions (Maybe Natural) Source #

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

gstvName :: Lens' GetSlotTypeVersions Text Source #

The name of the slot type for which versions should be returned.

Destructuring the Response

getSlotTypeVersionsResponse Source #

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

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

  • gstvrsNextToken - A pagination token for fetching the next page of slot type 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.
  • gstvrsSlotTypes - An array of SlotTypeMetadata objects, one for each numbered version of the slot type plus one for the > LATEST version.
  • gstvrsResponseStatus - -- | The response status code.

data GetSlotTypeVersionsResponse Source #

See: getSlotTypeVersionsResponse smart constructor.

Instances

Eq GetSlotTypeVersionsResponse Source # 
Data GetSlotTypeVersionsResponse Source # 

Methods

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

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

toConstr :: GetSlotTypeVersionsResponse -> Constr #

dataTypeOf :: GetSlotTypeVersionsResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read GetSlotTypeVersionsResponse Source # 
Show GetSlotTypeVersionsResponse Source # 
Generic GetSlotTypeVersionsResponse Source # 
NFData GetSlotTypeVersionsResponse Source # 
type Rep GetSlotTypeVersionsResponse Source # 
type Rep GetSlotTypeVersionsResponse = D1 * (MetaData "GetSlotTypeVersionsResponse" "Network.AWS.LexModels.GetSlotTypeVersions" "amazonka-lex-models-1.6.0-Iv3mghdDvOI9Mj0nI0DuS4" False) (C1 * (MetaCons "GetSlotTypeVersionsResponse'" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "_gstvrsNextToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))) ((:*:) * (S1 * (MetaSel (Just Symbol "_gstvrsSlotTypes") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe [SlotTypeMetadata]))) (S1 * (MetaSel (Just Symbol "_gstvrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Int)))))

Response Lenses

gstvrsNextToken :: Lens' GetSlotTypeVersionsResponse (Maybe Text) Source #

A pagination token for fetching the next page of slot type 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.

gstvrsSlotTypes :: Lens' GetSlotTypeVersionsResponse [SlotTypeMetadata] Source #

An array of SlotTypeMetadata objects, one for each numbered version of the slot type plus one for the > LATEST version.