libZSservicesZSamazonka-sesZSamazonka-ses
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.SES.Types.Template

Description

 
Synopsis

Documentation

data Template Source #

The content of the email, composed of a subject line, an HTML part, and a text-only part.

See: newTemplate smart constructor.

Constructors

Template' 

Fields

  • textPart :: Maybe Text

    The email body that will be visible to recipients whose email clients do not display HTML.

  • subjectPart :: Maybe Text

    The subject line of the email.

  • htmlPart :: Maybe Text

    The HTML body of the email.

  • templateName :: Text

    The name of the template. You will refer to this name when you send email using the SendTemplatedEmail or SendBulkTemplatedEmail operations.

Instances

Instances details
Eq Template Source # 
Instance details

Defined in Amazonka.SES.Types.Template

Read Template Source # 
Instance details

Defined in Amazonka.SES.Types.Template

Show Template Source # 
Instance details

Defined in Amazonka.SES.Types.Template

Generic Template Source # 
Instance details

Defined in Amazonka.SES.Types.Template

Associated Types

type Rep Template :: Type -> Type #

Methods

from :: Template -> Rep Template x #

to :: Rep Template x -> Template #

NFData Template Source # 
Instance details

Defined in Amazonka.SES.Types.Template

Methods

rnf :: Template -> () #

Hashable Template Source # 
Instance details

Defined in Amazonka.SES.Types.Template

Methods

hashWithSalt :: Int -> Template -> Int #

hash :: Template -> Int #

ToQuery Template Source # 
Instance details

Defined in Amazonka.SES.Types.Template

FromXML Template Source # 
Instance details

Defined in Amazonka.SES.Types.Template

type Rep Template Source # 
Instance details

Defined in Amazonka.SES.Types.Template

type Rep Template = D1 ('MetaData "Template" "Amazonka.SES.Types.Template" "libZSservicesZSamazonka-sesZSamazonka-ses" 'False) (C1 ('MetaCons "Template'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "textPart") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "subjectPart") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "htmlPart") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "templateName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))

newTemplate Source #

Create a value of Template 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:textPart:Template', template_textPart - The email body that will be visible to recipients whose email clients do not display HTML.

$sel:subjectPart:Template', template_subjectPart - The subject line of the email.

$sel:htmlPart:Template', template_htmlPart - The HTML body of the email.

$sel:templateName:Template', template_templateName - The name of the template. You will refer to this name when you send email using the SendTemplatedEmail or SendBulkTemplatedEmail operations.

template_textPart :: Lens' Template (Maybe Text) Source #

The email body that will be visible to recipients whose email clients do not display HTML.

template_subjectPart :: Lens' Template (Maybe Text) Source #

The subject line of the email.

template_htmlPart :: Lens' Template (Maybe Text) Source #

The HTML body of the email.

template_templateName :: Lens' Template Text Source #

The name of the template. You will refer to this name when you send email using the SendTemplatedEmail or SendBulkTemplatedEmail operations.