Copyright | (c) 2013-2021 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 |
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.
Synopsis
- data TestRenderTemplate = TestRenderTemplate' {
- templateName :: Text
- templateData :: Text
- newTestRenderTemplate :: Text -> Text -> TestRenderTemplate
- testRenderTemplate_templateName :: Lens' TestRenderTemplate Text
- testRenderTemplate_templateData :: Lens' TestRenderTemplate Text
- data TestRenderTemplateResponse = TestRenderTemplateResponse' {}
- newTestRenderTemplateResponse :: Int -> TestRenderTemplateResponse
- testRenderTemplateResponse_renderedTemplate :: Lens' TestRenderTemplateResponse (Maybe Text)
- testRenderTemplateResponse_httpStatus :: Lens' TestRenderTemplateResponse Int
Creating a Request
data TestRenderTemplate Source #
See: newTestRenderTemplate
smart constructor.
TestRenderTemplate' | |
|
Instances
newTestRenderTemplate Source #
:: Text | |
-> Text | |
-> TestRenderTemplate |
Create a value of TestRenderTemplate
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:
$sel:templateName:TestRenderTemplate'
, testRenderTemplate_templateName
- The name of the template that you want to render.
$sel:templateData:TestRenderTemplate'
, testRenderTemplate_templateData
- 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.
Request Lenses
testRenderTemplate_templateName :: Lens' TestRenderTemplate Text Source #
The name of the template that you want to render.
testRenderTemplate_templateData :: 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
data TestRenderTemplateResponse Source #
See: newTestRenderTemplateResponse
smart constructor.
TestRenderTemplateResponse' | |
|
Instances
newTestRenderTemplateResponse Source #
Create a value of TestRenderTemplateResponse
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:
$sel:renderedTemplate:TestRenderTemplateResponse'
, testRenderTemplateResponse_renderedTemplate
- The complete MIME message rendered by applying the data in the
TemplateData parameter to the template specified in the TemplateName
parameter.
$sel:httpStatus:TestRenderTemplateResponse'
, testRenderTemplateResponse_httpStatus
- The response's http status code.
Response Lenses
testRenderTemplateResponse_renderedTemplate :: 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.
testRenderTemplateResponse_httpStatus :: Lens' TestRenderTemplateResponse Int Source #
The response's http status code.