| 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 |
Amazonka.SESV2.TestRenderEmailTemplate
Description
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 TestRenderEmailTemplate = TestRenderEmailTemplate' {
- templateName :: Text
- templateData :: Text
- newTestRenderEmailTemplate :: Text -> Text -> TestRenderEmailTemplate
- testRenderEmailTemplate_templateName :: Lens' TestRenderEmailTemplate Text
- testRenderEmailTemplate_templateData :: Lens' TestRenderEmailTemplate Text
- data TestRenderEmailTemplateResponse = TestRenderEmailTemplateResponse' {}
- newTestRenderEmailTemplateResponse :: Int -> Text -> TestRenderEmailTemplateResponse
- testRenderEmailTemplateResponse_httpStatus :: Lens' TestRenderEmailTemplateResponse Int
- testRenderEmailTemplateResponse_renderedTemplate :: Lens' TestRenderEmailTemplateResponse Text
Creating a Request
data TestRenderEmailTemplate Source #
Represents a request to create a preview of the MIME content of an
email when provided with a template and a set of replacement data.
See: newTestRenderEmailTemplate smart constructor.
Constructors
| TestRenderEmailTemplate' | |
Fields
| |
Instances
newTestRenderEmailTemplate Source #
Create a value of TestRenderEmailTemplate 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:
TestRenderEmailTemplate, testRenderEmailTemplate_templateName - The name of the template.
TestRenderEmailTemplate, testRenderEmailTemplate_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
testRenderEmailTemplate_templateName :: Lens' TestRenderEmailTemplate Text Source #
The name of the template.
testRenderEmailTemplate_templateData :: Lens' TestRenderEmailTemplate 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 TestRenderEmailTemplateResponse Source #
The following element is returned by the service.
See: newTestRenderEmailTemplateResponse smart constructor.
Constructors
| TestRenderEmailTemplateResponse' | |
Fields
| |
Instances
newTestRenderEmailTemplateResponse Source #
Arguments
| :: Int | |
| -> Text | |
| -> TestRenderEmailTemplateResponse |
Create a value of TestRenderEmailTemplateResponse 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:httpStatus:TestRenderEmailTemplateResponse', testRenderEmailTemplateResponse_httpStatus - The response's http status code.
$sel:renderedTemplate:TestRenderEmailTemplateResponse', testRenderEmailTemplateResponse_renderedTemplate - The complete MIME message rendered by applying the data in the
TemplateData parameter to the template specified in the TemplateName
parameter.
Response Lenses
testRenderEmailTemplateResponse_httpStatus :: Lens' TestRenderEmailTemplateResponse Int Source #
The response's http status code.
testRenderEmailTemplateResponse_renderedTemplate :: Lens' TestRenderEmailTemplateResponse Text Source #
The complete MIME message rendered by applying the data in the
TemplateData parameter to the template specified in the TemplateName
parameter.