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 |
Documentation
Specifies the name and version of the message template to use for the message.
See: newTemplate
smart constructor.
Template' | |
|
Instances
Eq Template Source # | |
Read Template Source # | |
Show Template Source # | |
Generic Template Source # | |
NFData Template Source # | |
Defined in Amazonka.Pinpoint.Types.Template | |
Hashable Template Source # | |
Defined in Amazonka.Pinpoint.Types.Template | |
ToJSON Template Source # | |
Defined in Amazonka.Pinpoint.Types.Template | |
FromJSON Template Source # | |
type Rep Template Source # | |
Defined in Amazonka.Pinpoint.Types.Template type Rep Template = D1 ('MetaData "Template" "Amazonka.Pinpoint.Types.Template" "libZSservicesZSamazonka-pinpointZSamazonka-pinpoint" 'False) (C1 ('MetaCons "Template'" 'PrefixI 'True) (S1 ('MetaSel ('Just "name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "version") '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:name:Template'
, template_name
- The name of the message template to use for the message. If specified,
this value must match the name of an existing message template.
$sel:version:Template'
, template_version
- The unique identifier for the version of the message template to use for
the message. If specified, this value must match the identifier for an
existing template version. To retrieve a list of versions and version
identifiers for a template, use the Template Versions resource.
If you don't specify a value for this property, Amazon Pinpoint uses the active version of the template. The active version is typically the version of a template that's been most recently reviewed and approved for use, depending on your workflow. It isn't necessarily the latest version of a template.
template_name :: Lens' Template (Maybe Text) Source #
The name of the message template to use for the message. If specified, this value must match the name of an existing message template.
template_version :: Lens' Template (Maybe Text) Source #
The unique identifier for the version of the message template to use for the message. If specified, this value must match the identifier for an existing template version. To retrieve a list of versions and version identifiers for a template, use the Template Versions resource.
If you don't specify a value for this property, Amazon Pinpoint uses the active version of the template. The active version is typically the version of a template that's been most recently reviewed and approved for use, depending on your workflow. It isn't necessarily the latest version of a template.