amazonka-lex-models-1.5.0: Amazon Lex Model Building Service SDK.

Copyright(c) 2013-2017 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.GetIntentVersions

Contents

Description

Gets information about all of the versions of an intent.

The GetIntentVersions operation returns an IntentMetadata object for each version of an intent. For example, if an intent has three numbered versions, the GetIntentVersions operation returns four IntentMetadata objects in the response, one for each numbered version and one for the > LATEST version.

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

This operation requires permissions for the lex:GetIntentVersions action.

Synopsis

Creating a Request

getIntentVersions Source #

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

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

  • givNextToken - A pagination token for fetching the next page of intent 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.
  • givMaxResults - The maximum number of intent versions to return in the response. The default is 10.
  • givName - The name of the intent for which versions should be returned.

data GetIntentVersions Source #

See: getIntentVersions smart constructor.

Instances

Eq GetIntentVersions Source # 
Data GetIntentVersions Source # 

Methods

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

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

toConstr :: GetIntentVersions -> Constr #

dataTypeOf :: GetIntentVersions -> DataType #

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

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

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

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

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

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

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

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

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

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

Read GetIntentVersions Source # 
Show GetIntentVersions Source # 
Generic GetIntentVersions Source # 
Hashable GetIntentVersions Source # 
NFData GetIntentVersions Source # 

Methods

rnf :: GetIntentVersions -> () #

AWSRequest GetIntentVersions Source # 
ToQuery GetIntentVersions Source # 
ToPath GetIntentVersions Source # 
ToHeaders GetIntentVersions Source # 
type Rep GetIntentVersions Source # 
type Rep GetIntentVersions = D1 (MetaData "GetIntentVersions" "Network.AWS.LexModels.GetIntentVersions" "amazonka-lex-models-1.5.0-9L7od5njsTvH7y9BfUkUqe" False) (C1 (MetaCons "GetIntentVersions'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_givNextToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) ((:*:) (S1 (MetaSel (Just Symbol "_givMaxResults") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Nat))) (S1 (MetaSel (Just Symbol "_givName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)))))
type Rs GetIntentVersions Source # 

Request Lenses

givNextToken :: Lens' GetIntentVersions (Maybe Text) Source #

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

givMaxResults :: Lens' GetIntentVersions (Maybe Natural) Source #

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

givName :: Lens' GetIntentVersions Text Source #

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

Destructuring the Response

getIntentVersionsResponse Source #

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

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

  • givrsIntents - An array of IntentMetadata objects, one for each numbered version of the intent plus one for the > LATEST version.
  • givrsNextToken - A pagination token for fetching the next page of intent 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.
  • givrsResponseStatus - -- | The response status code.

data GetIntentVersionsResponse Source #

See: getIntentVersionsResponse smart constructor.

Instances

Eq GetIntentVersionsResponse Source # 
Data GetIntentVersionsResponse Source # 

Methods

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

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

toConstr :: GetIntentVersionsResponse -> Constr #

dataTypeOf :: GetIntentVersionsResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read GetIntentVersionsResponse Source # 
Show GetIntentVersionsResponse Source # 
Generic GetIntentVersionsResponse Source # 
NFData GetIntentVersionsResponse Source # 
type Rep GetIntentVersionsResponse Source # 
type Rep GetIntentVersionsResponse = D1 (MetaData "GetIntentVersionsResponse" "Network.AWS.LexModels.GetIntentVersions" "amazonka-lex-models-1.5.0-9L7od5njsTvH7y9BfUkUqe" False) (C1 (MetaCons "GetIntentVersionsResponse'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_givrsIntents") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [IntentMetadata]))) ((:*:) (S1 (MetaSel (Just Symbol "_givrsNextToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_givrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int)))))

Response Lenses

givrsIntents :: Lens' GetIntentVersionsResponse [IntentMetadata] Source #

An array of IntentMetadata objects, one for each numbered version of the intent plus one for the > LATEST version.

givrsNextToken :: Lens' GetIntentVersionsResponse (Maybe Text) Source #

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