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 |
Creates a preview of the MIME content of an email when provided with a template and a set of replacement data.
You can execute this operation no more than once per second.
- testRenderTemplate :: Text -> Text -> TestRenderTemplate
- data TestRenderTemplate
- trtTemplateName :: Lens' TestRenderTemplate Text
- trtTemplateData :: Lens' TestRenderTemplate Text
- testRenderTemplateResponse :: Int -> TestRenderTemplateResponse
- data TestRenderTemplateResponse
- trtrsRenderedTemplate :: Lens' TestRenderTemplateResponse (Maybe Text)
- trtrsResponseStatus :: Lens' TestRenderTemplateResponse Int
Creating a Request
Creates a value of TestRenderTemplate
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
trtTemplateName
- The name of the template that you want to render.trtTemplateData
- A list of replacement values to apply to the template. This parameter is a JSON object, typically consisting of key-value pairs in which the keys correspond to replacement tags in the email template.
data TestRenderTemplate Source #
See: testRenderTemplate
smart constructor.
Request Lenses
trtTemplateName :: Lens' TestRenderTemplate Text Source #
The name of the template that you want to render.
trtTemplateData :: Lens' TestRenderTemplate Text Source #
A list of replacement values to apply to the template. This parameter is a JSON object, typically consisting of key-value pairs in which the keys correspond to replacement tags in the email template.
Destructuring the Response
testRenderTemplateResponse Source #
Creates a value of TestRenderTemplateResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
trtrsRenderedTemplate
- The complete MIME message rendered by applying the data in the TemplateData parameter to the template specified in the TemplateName parameter.trtrsResponseStatus
- -- | The response status code.
data TestRenderTemplateResponse Source #
See: testRenderTemplateResponse
smart constructor.
Response Lenses
trtrsRenderedTemplate :: Lens' TestRenderTemplateResponse (Maybe Text) Source #
The complete MIME message rendered by applying the data in the TemplateData parameter to the template specified in the TemplateName parameter.
trtrsResponseStatus :: Lens' TestRenderTemplateResponse Int Source #
- - | The response status code.