amazonka-apigateway-1.3.5: Amazon API Gateway SDK.

Copyright(c) 2013-2015 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.GetModelTemplate

Contents

Description

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

See: AWS API Reference for GetModelTemplate.

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:

Request Lenses

gmtRestAPIId :: Lens' GetModelTemplate Text Source

The ID of the RestApi under which the model exists.

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:

Response Lenses

gmtrsValue :: Lens' GetModelTemplateResponse (Maybe Text) Source

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