amazonka-apigateway-1.5.0: Amazon API Gateway 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.APIGateway.GetModelTemplate

Contents

Description

Generates a sample mapping template that can be used to transform a payload into the structure of a model.

Synopsis

Creating a Request

getModelTemplate Source #

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

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

  • gmtRestAPIId - The string identifier of the associated RestApi .
  • gmtModelName - The name of the model for which to generate a template.

data GetModelTemplate Source #

Request to generate a sample mapping template used to transform the payload.

See: getModelTemplate smart constructor.

Instances

Eq GetModelTemplate Source # 
Data GetModelTemplate Source # 

Methods

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

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

toConstr :: GetModelTemplate -> Constr #

dataTypeOf :: GetModelTemplate -> DataType #

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

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

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

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

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

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

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

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

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

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

Read GetModelTemplate Source # 
Show GetModelTemplate Source # 
Generic GetModelTemplate Source # 
Hashable GetModelTemplate Source # 
NFData GetModelTemplate Source # 

Methods

rnf :: GetModelTemplate -> () #

AWSRequest GetModelTemplate Source # 
ToQuery GetModelTemplate Source # 
ToPath GetModelTemplate Source # 
ToHeaders GetModelTemplate Source # 
type Rep GetModelTemplate Source # 
type Rep GetModelTemplate = D1 (MetaData "GetModelTemplate" "Network.AWS.APIGateway.GetModelTemplate" "amazonka-apigateway-1.5.0-3jDq4KKltGt78uikPpOCEJ" False) (C1 (MetaCons "GetModelTemplate'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_gmtRestAPIId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) (S1 (MetaSel (Just Symbol "_gmtModelName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))))
type Rs GetModelTemplate Source # 

Request Lenses

gmtRestAPIId :: Lens' GetModelTemplate Text Source #

The string identifier of the associated RestApi .

gmtModelName :: Lens' GetModelTemplate Text Source #

The name of the model for which to generate a template.

Destructuring the Response

getModelTemplateResponse Source #

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

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

data GetModelTemplateResponse Source #

Represents a mapping template used to transform a payload.

Mapping Templates

See: getModelTemplateResponse smart constructor.

Instances

Eq GetModelTemplateResponse Source # 
Data GetModelTemplateResponse Source # 

Methods

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

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

toConstr :: GetModelTemplateResponse -> Constr #

dataTypeOf :: GetModelTemplateResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read GetModelTemplateResponse Source # 
Show GetModelTemplateResponse Source # 
Generic GetModelTemplateResponse Source # 
NFData GetModelTemplateResponse Source # 
type Rep GetModelTemplateResponse Source # 
type Rep GetModelTemplateResponse = D1 (MetaData "GetModelTemplateResponse" "Network.AWS.APIGateway.GetModelTemplate" "amazonka-apigateway-1.5.0-3jDq4KKltGt78uikPpOCEJ" False) (C1 (MetaCons "GetModelTemplateResponse'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_gmtrsValue") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_gmtrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int))))

Response Lenses

gmtrsValue :: Lens' GetModelTemplateResponse (Maybe Text) Source #

The Apache Velocity Template Language (VTL) template content used for the template resource.