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 |
Synopsis
- data Template = Template' {}
- newTemplate :: Template
- template_templateArn :: Lens' Template (Maybe Text)
- template_templateData :: Lens' Template (Maybe Text)
- template_templateName :: Lens' Template (Maybe Text)
Documentation
An object that defines the email template to use for an email message, and the values to use for any message variables in that template. An email template is a type of message template that contains content that you want to define, save, and reuse in email messages that you send.
See: newTemplate
smart constructor.
Template' | |
|
Instances
ToJSON Template Source # | |
Defined in Amazonka.SESV2.Types.Template | |
Generic Template Source # | |
Read Template Source # | |
Show Template Source # | |
NFData Template Source # | |
Defined in Amazonka.SESV2.Types.Template | |
Eq Template Source # | |
Hashable Template Source # | |
Defined in Amazonka.SESV2.Types.Template | |
type Rep Template Source # | |
Defined in Amazonka.SESV2.Types.Template type Rep Template = D1 ('MetaData "Template" "Amazonka.SESV2.Types.Template" "amazonka-sesv2-2.0-KPRo1S1CRfP4bs5VKSgHvB" 'False) (C1 ('MetaCons "Template'" 'PrefixI 'True) (S1 ('MetaSel ('Just "templateArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "templateData") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "templateName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))))) |
newTemplate :: Template 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:templateArn:Template'
, template_templateArn
- The Amazon Resource Name (ARN) of the template.
$sel:templateData:Template'
, template_templateData
- An object that defines the values to use for message variables in the
template. This object is a set of key-value pairs. Each key defines a
message variable in the template. The corresponding value defines the
value to use for that variable.
$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_templateArn :: Lens' Template (Maybe Text) Source #
The Amazon Resource Name (ARN) of the template.
template_templateData :: Lens' Template (Maybe Text) Source #
An object that defines the values to use for message variables in the template. This object is a set of key-value pairs. Each key defines a message variable in the template. The corresponding value defines the value to use for that variable.