libZSservicesZSamazonka-sesv2ZSamazonka-sesv2
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

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

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

  • templateName :: Text

    The name of the template.

  • templateData :: Text

    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.

Instances

Instances details
Eq TestRenderEmailTemplate Source # 
Instance details

Defined in Amazonka.SESV2.TestRenderEmailTemplate

Read TestRenderEmailTemplate Source # 
Instance details

Defined in Amazonka.SESV2.TestRenderEmailTemplate

Show TestRenderEmailTemplate Source # 
Instance details

Defined in Amazonka.SESV2.TestRenderEmailTemplate

Generic TestRenderEmailTemplate Source # 
Instance details

Defined in Amazonka.SESV2.TestRenderEmailTemplate

Associated Types

type Rep TestRenderEmailTemplate :: Type -> Type #

NFData TestRenderEmailTemplate Source # 
Instance details

Defined in Amazonka.SESV2.TestRenderEmailTemplate

Methods

rnf :: TestRenderEmailTemplate -> () #

Hashable TestRenderEmailTemplate Source # 
Instance details

Defined in Amazonka.SESV2.TestRenderEmailTemplate

ToJSON TestRenderEmailTemplate Source # 
Instance details

Defined in Amazonka.SESV2.TestRenderEmailTemplate

AWSRequest TestRenderEmailTemplate Source # 
Instance details

Defined in Amazonka.SESV2.TestRenderEmailTemplate

ToHeaders TestRenderEmailTemplate Source # 
Instance details

Defined in Amazonka.SESV2.TestRenderEmailTemplate

ToPath TestRenderEmailTemplate Source # 
Instance details

Defined in Amazonka.SESV2.TestRenderEmailTemplate

ToQuery TestRenderEmailTemplate Source # 
Instance details

Defined in Amazonka.SESV2.TestRenderEmailTemplate

type Rep TestRenderEmailTemplate Source # 
Instance details

Defined in Amazonka.SESV2.TestRenderEmailTemplate

type Rep TestRenderEmailTemplate = D1 ('MetaData "TestRenderEmailTemplate" "Amazonka.SESV2.TestRenderEmailTemplate" "libZSservicesZSamazonka-sesv2ZSamazonka-sesv2" 'False) (C1 ('MetaCons "TestRenderEmailTemplate'" 'PrefixI 'True) (S1 ('MetaSel ('Just "templateName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "templateData") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))
type AWSResponse TestRenderEmailTemplate Source # 
Instance details

Defined in Amazonka.SESV2.TestRenderEmailTemplate

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:

$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_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

  • httpStatus :: Int

    The response's http status code.

  • renderedTemplate :: Text

    The complete MIME message rendered by applying the data in the TemplateData parameter to the template specified in the TemplateName parameter.

Instances

Instances details
Eq TestRenderEmailTemplateResponse Source # 
Instance details

Defined in Amazonka.SESV2.TestRenderEmailTemplate

Read TestRenderEmailTemplateResponse Source # 
Instance details

Defined in Amazonka.SESV2.TestRenderEmailTemplate

Show TestRenderEmailTemplateResponse Source # 
Instance details

Defined in Amazonka.SESV2.TestRenderEmailTemplate

Generic TestRenderEmailTemplateResponse Source # 
Instance details

Defined in Amazonka.SESV2.TestRenderEmailTemplate

Associated Types

type Rep TestRenderEmailTemplateResponse :: Type -> Type #

NFData TestRenderEmailTemplateResponse Source # 
Instance details

Defined in Amazonka.SESV2.TestRenderEmailTemplate

type Rep TestRenderEmailTemplateResponse Source # 
Instance details

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_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.