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 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.
TestRenderEmailTemplate' | |
|
Instances
newTestRenderEmailTemplate Source #
:: Text | |
-> Text | |
-> TestRenderEmailTemplate |
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:
$sel:templateName:TestRenderEmailTemplate'
, testRenderEmailTemplate_templateName
- The name of the template.
$sel:templateData: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.
TestRenderEmailTemplateResponse' | |
|
Instances
Eq TestRenderEmailTemplateResponse Source # | |
Read TestRenderEmailTemplateResponse Source # | |
Show TestRenderEmailTemplateResponse Source # | |
Defined in Amazonka.SESV2.TestRenderEmailTemplate | |
Generic TestRenderEmailTemplateResponse Source # | |
NFData TestRenderEmailTemplateResponse Source # | |
Defined in Amazonka.SESV2.TestRenderEmailTemplate rnf :: TestRenderEmailTemplateResponse -> () # | |
type Rep TestRenderEmailTemplateResponse Source # | |
Defined in Amazonka.SESV2.TestRenderEmailTemplate type Rep TestRenderEmailTemplateResponse = D1 ('MetaData "TestRenderEmailTemplateResponse" "Amazonka.SESV2.TestRenderEmailTemplate" "libZSservicesZSamazonka-sesv2ZSamazonka-sesv2" 'False) (C1 ('MetaCons "TestRenderEmailTemplateResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int) :*: S1 ('MetaSel ('Just "renderedTemplate") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))) |
newTestRenderEmailTemplateResponse Source #
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.