amazonka-apigateway-1.4.3: Amazon API Gateway SDK.

Copyright(c) 2013-2016 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.AWS.APIGateway.GetModels

Contents

Description

Describes existing Models defined for a RestApi resource.

This operation returns paginated results.

Synopsis

Creating a Request

getModels Source #

Arguments

:: Text

gmsRestAPIId

-> GetModels 

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

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

data GetModels Source #

Request to list existing Models defined for a RestApi resource.

See: getModels smart constructor.

Instances

Eq GetModels Source # 
Data GetModels Source # 

Methods

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

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

toConstr :: GetModels -> Constr #

dataTypeOf :: GetModels -> DataType #

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

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

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

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

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

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

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

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

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

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

Read GetModels Source # 
Show GetModels Source # 
Generic GetModels Source # 

Associated Types

type Rep GetModels :: * -> * #

Hashable GetModels Source # 
NFData GetModels Source # 

Methods

rnf :: GetModels -> () #

AWSPager GetModels Source # 
AWSRequest GetModels Source # 
ToQuery GetModels Source # 
ToPath GetModels Source # 
ToHeaders GetModels Source # 

Methods

toHeaders :: GetModels -> [Header] #

type Rep GetModels Source # 
type Rep GetModels = D1 (MetaData "GetModels" "Network.AWS.APIGateway.GetModels" "amazonka-apigateway-1.4.3-GVOaWI3QK1e6b27bXNOifn" False) (C1 (MetaCons "GetModels'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_gmsLimit") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Int))) ((:*:) (S1 (MetaSel (Just Symbol "_gmsPosition") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_gmsRestAPIId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)))))
type Rs GetModels Source # 

Request Lenses

gmsLimit :: Lens' GetModels (Maybe Int) Source #

The maximum number of models in the collection to get information about. The default limit is 25. It should be an integer between 1 - 500.

gmsPosition :: Lens' GetModels (Maybe Text) Source #

The position of the next set of results in the Models resource to get information about.

Destructuring the Response

getModelsResponse Source #

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

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

data GetModelsResponse Source #

Represents a collection of Model resources.

See: getModelsResponse smart constructor.

Instances

Eq GetModelsResponse Source # 
Data GetModelsResponse Source # 

Methods

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

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

toConstr :: GetModelsResponse -> Constr #

dataTypeOf :: GetModelsResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read GetModelsResponse Source # 
Show GetModelsResponse Source # 
Generic GetModelsResponse Source # 
NFData GetModelsResponse Source # 

Methods

rnf :: GetModelsResponse -> () #

type Rep GetModelsResponse Source # 
type Rep GetModelsResponse = D1 (MetaData "GetModelsResponse" "Network.AWS.APIGateway.GetModels" "amazonka-apigateway-1.4.3-GVOaWI3QK1e6b27bXNOifn" False) (C1 (MetaCons "GetModelsResponse'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_gmrsItems") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [Model]))) ((:*:) (S1 (MetaSel (Just Symbol "_gmrsPosition") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_gmrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int)))))

Response Lenses

gmrsItems :: Lens' GetModelsResponse [Model] Source #

Gets the current Model resource in the collection.