| Copyright | (c) 2013-2018 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | None |
| Language | Haskell2010 |
Network.AWS.APIGateway.GetModelTemplate
Description
Generates a sample mapping template that can be used to transform a payload into the structure of a model.
Synopsis
- getModelTemplate :: Text -> Text -> GetModelTemplate
- data GetModelTemplate
- gmtRestAPIId :: Lens' GetModelTemplate Text
- gmtModelName :: Lens' GetModelTemplate Text
- getModelTemplateResponse :: Int -> GetModelTemplateResponse
- data GetModelTemplateResponse
- gmtrsValue :: Lens' GetModelTemplateResponse (Maybe Text)
- gmtrsResponseStatus :: Lens' GetModelTemplateResponse Int
Creating a Request
Arguments
| :: Text | |
| -> Text | |
| -> GetModelTemplate |
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- [Required] The string identifier of the associatedRestApi.gmtModelName- [Required] 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
Request Lenses
gmtRestAPIId :: Lens' GetModelTemplate Text Source #
- Required
- The string identifier of the associated
RestApi.
gmtModelName :: Lens' GetModelTemplate Text Source #
- Required
- The name of the model for which to generate a template.
Destructuring the Response
getModelTemplateResponse Source #
Arguments
| :: Int | |
| -> GetModelTemplateResponse |
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:
gmtrsValue- The Apache Velocity Template Language (VTL) template content used for the template resource.gmtrsResponseStatus- -- | The response status code.
data GetModelTemplateResponse Source #
Represents a mapping template used to transform a payload.
See: getModelTemplateResponse smart constructor.
Instances
Response Lenses
gmtrsValue :: Lens' GetModelTemplateResponse (Maybe Text) Source #
The Apache Velocity Template Language (VTL) template content used for the template resource.
gmtrsResponseStatus :: Lens' GetModelTemplateResponse Int Source #
- - | The response status code.