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

Contents

Description

Returns slot type information as follows:

  • If you specify the nameContains field, returns the > LATEST version of all slot types that contain the specified string.
  • If you don't specify the nameContains field, returns information about the > LATEST version of all slot types.

The operation requires permission for the lex:GetSlotTypes action.

Synopsis

Creating a Request

getSlotTypes :: GetSlotTypes Source #

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

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

  • gstNameContains - Substring to match in slot type names. A slot type will be returned if any part of its name matches the substring. For example, "xyz" matches both "xyzabc" and "abcxyz."
  • gstNextToken - A pagination token that fetches the next page of slot types. If the response to this API call is truncated, Amazon Lex returns a pagination token in the response. To fetch next page of slot types, specify the pagination token in the next request.
  • gstMaxResults - The maximum number of slot types to return in the response. The default is 10.

data GetSlotTypes Source #

See: getSlotTypes smart constructor.

Instances

Eq GetSlotTypes Source # 
Data GetSlotTypes Source # 

Methods

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

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

toConstr :: GetSlotTypes -> Constr #

dataTypeOf :: GetSlotTypes -> DataType #

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

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

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

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

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

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

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

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

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

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

Read GetSlotTypes Source # 
Show GetSlotTypes Source # 
Generic GetSlotTypes Source # 

Associated Types

type Rep GetSlotTypes :: * -> * #

Hashable GetSlotTypes Source # 
NFData GetSlotTypes Source # 

Methods

rnf :: GetSlotTypes -> () #

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

Request Lenses

gstNameContains :: Lens' GetSlotTypes (Maybe Text) Source #

Substring to match in slot type names. A slot type will be returned if any part of its name matches the substring. For example, "xyz" matches both "xyzabc" and "abcxyz."

gstNextToken :: Lens' GetSlotTypes (Maybe Text) Source #

A pagination token that fetches the next page of slot types. If the response to this API call is truncated, Amazon Lex returns a pagination token in the response. To fetch next page of slot types, specify the pagination token in the next request.

gstMaxResults :: Lens' GetSlotTypes (Maybe Natural) Source #

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

Destructuring the Response

getSlotTypesResponse Source #

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

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

  • gstrsNextToken - If the response is truncated, it includes a pagination token that you can specify in your next request to fetch the next page of slot types.
  • gstrsSlotTypes - An array of objects, one for each slot type, that provides information such as the name of the slot type, the version, and a description.
  • gstrsResponseStatus - -- | The response status code.

data GetSlotTypesResponse Source #

See: getSlotTypesResponse smart constructor.

Instances

Eq GetSlotTypesResponse Source # 
Data GetSlotTypesResponse Source # 

Methods

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

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

toConstr :: GetSlotTypesResponse -> Constr #

dataTypeOf :: GetSlotTypesResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read GetSlotTypesResponse Source # 
Show GetSlotTypesResponse Source # 
Generic GetSlotTypesResponse Source # 
NFData GetSlotTypesResponse Source # 

Methods

rnf :: GetSlotTypesResponse -> () #

type Rep GetSlotTypesResponse Source # 
type Rep GetSlotTypesResponse = D1 (MetaData "GetSlotTypesResponse" "Network.AWS.LexModels.GetSlotTypes" "amazonka-lex-models-1.5.0-9L7od5njsTvH7y9BfUkUqe" False) (C1 (MetaCons "GetSlotTypesResponse'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_gstrsNextToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) ((:*:) (S1 (MetaSel (Just Symbol "_gstrsSlotTypes") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [SlotTypeMetadata]))) (S1 (MetaSel (Just Symbol "_gstrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int)))))

Response Lenses

gstrsNextToken :: Lens' GetSlotTypesResponse (Maybe Text) Source #

If the response is truncated, it includes a pagination token that you can specify in your next request to fetch the next page of slot types.

gstrsSlotTypes :: Lens' GetSlotTypesResponse [SlotTypeMetadata] Source #

An array of objects, one for each slot type, that provides information such as the name of the slot type, the version, and a description.

gstrsResponseStatus :: Lens' GetSlotTypesResponse Int Source #

  • - | The response status code.