Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Generates a sample mapping template that can be used to transform a payload into the structure of a model.
Synopsis
- data GetModelTemplate = GetModelTemplate' {}
- newGetModelTemplate :: Text -> Text -> GetModelTemplate
- getModelTemplate_restApiId :: Lens' GetModelTemplate Text
- getModelTemplate_modelName :: Lens' GetModelTemplate Text
- data GetModelTemplateResponse = GetModelTemplateResponse' {
- value :: Maybe Text
- httpStatus :: Int
- newGetModelTemplateResponse :: Int -> GetModelTemplateResponse
- getModelTemplateResponse_value :: Lens' GetModelTemplateResponse (Maybe Text)
- getModelTemplateResponse_httpStatus :: Lens' GetModelTemplateResponse Int
Creating a Request
data GetModelTemplate Source #
Request to generate a sample mapping template used to transform the payload.
See: newGetModelTemplate
smart constructor.
Instances
Create a value of GetModelTemplate
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
GetModelTemplate
, getModelTemplate_restApiId
- The string identifier of the associated RestApi.
$sel:modelName:GetModelTemplate'
, getModelTemplate_modelName
- The name of the model for which to generate a template.
Request Lenses
getModelTemplate_restApiId :: Lens' GetModelTemplate Text Source #
The string identifier of the associated RestApi.
getModelTemplate_modelName :: Lens' GetModelTemplate Text Source #
The name of the model for which to generate a template.
Destructuring the Response
data GetModelTemplateResponse Source #
Represents a mapping template used to transform a payload.
See: newGetModelTemplateResponse
smart constructor.
GetModelTemplateResponse' | |
|
Instances
newGetModelTemplateResponse Source #
Create a value of GetModelTemplateResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
GetModelTemplateResponse
, getModelTemplateResponse_value
- The Apache Velocity Template Language (VTL) template content used for
the template resource.
$sel:httpStatus:GetModelTemplateResponse'
, getModelTemplateResponse_httpStatus
- The response's http status code.
Response Lenses
getModelTemplateResponse_value :: Lens' GetModelTemplateResponse (Maybe Text) Source #
The Apache Velocity Template Language (VTL) template content used for the template resource.
getModelTemplateResponse_httpStatus :: Lens' GetModelTemplateResponse Int Source #
The response's http status code.