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 |
Synopsis
- data Template = Template' {}
- newTemplate :: Text -> Template
- template_textPart :: Lens' Template (Maybe Text)
- template_subjectPart :: Lens' Template (Maybe Text)
- template_htmlPart :: Lens' Template (Maybe Text)
- template_templateName :: Lens' Template Text
Documentation
The content of the email, composed of a subject line, an HTML part, and a text-only part.
See: newTemplate
smart constructor.
Template' | |
|
Instances
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.