libZSservicesZSamazonka-pinpointZSamazonka-pinpoint
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.Pinpoint.Types.EmailTemplateRequest

Description

 
Synopsis

Documentation

data EmailTemplateRequest Source #

Specifies the content and settings for a message template that can be used in messages that are sent through the email channel.

See: newEmailTemplateRequest smart constructor.

Constructors

EmailTemplateRequest' 

Fields

  • subject :: Maybe Text

    The subject line, or title, to use in email messages that are based on the message template.

  • textPart :: Maybe Text

    The message body, in plain text format, to use in email messages that are based on the message template. We recommend using plain text format for email clients that don't render HTML content and clients that are connected to high-latency networks, such as mobile devices.

  • templateDescription :: Maybe Text

    A custom description of the message template.

  • defaultSubstitutions :: Maybe Text

    A JSON object that specifies the default values to use for message variables in the message template. This object is a set of key-value pairs. Each key defines a message variable in the template. The corresponding value defines the default value for that variable. When you create a message that's based on the template, you can override these defaults with message-specific and address-specific variables and values.

  • htmlPart :: Maybe Text

    The message body, in HTML format, to use in email messages that are based on the message template. We recommend using HTML format for email clients that render HTML content. You can include links, formatted text, and more in an HTML message.

  • recommenderId :: Maybe Text

    The unique identifier for the recommender model to use for the message template. Amazon Pinpoint uses this value to determine how to retrieve and process data from a recommender model when it sends messages that use the template, if the template contains message variables for recommendation data.

  • tags :: Maybe (HashMap Text Text)

    A string-to-string map of key-value pairs that defines the tags to associate with the message template. Each tag consists of a required tag key and an associated tag value.

Instances

Instances details
Eq EmailTemplateRequest Source # 
Instance details

Defined in Amazonka.Pinpoint.Types.EmailTemplateRequest

Read EmailTemplateRequest Source # 
Instance details

Defined in Amazonka.Pinpoint.Types.EmailTemplateRequest

Show EmailTemplateRequest Source # 
Instance details

Defined in Amazonka.Pinpoint.Types.EmailTemplateRequest

Generic EmailTemplateRequest Source # 
Instance details

Defined in Amazonka.Pinpoint.Types.EmailTemplateRequest

Associated Types

type Rep EmailTemplateRequest :: Type -> Type #

NFData EmailTemplateRequest Source # 
Instance details

Defined in Amazonka.Pinpoint.Types.EmailTemplateRequest

Methods

rnf :: EmailTemplateRequest -> () #

Hashable EmailTemplateRequest Source # 
Instance details

Defined in Amazonka.Pinpoint.Types.EmailTemplateRequest

ToJSON EmailTemplateRequest Source # 
Instance details

Defined in Amazonka.Pinpoint.Types.EmailTemplateRequest

type Rep EmailTemplateRequest Source # 
Instance details

Defined in Amazonka.Pinpoint.Types.EmailTemplateRequest

type Rep EmailTemplateRequest = D1 ('MetaData "EmailTemplateRequest" "Amazonka.Pinpoint.Types.EmailTemplateRequest" "libZSservicesZSamazonka-pinpointZSamazonka-pinpoint" 'False) (C1 ('MetaCons "EmailTemplateRequest'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "subject") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "textPart") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "templateDescription") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))) :*: ((S1 ('MetaSel ('Just "defaultSubstitutions") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "htmlPart") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "recommenderId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "tags") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (HashMap Text Text)))))))

newEmailTemplateRequest :: EmailTemplateRequest Source #

Create a value of EmailTemplateRequest 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:subject:EmailTemplateRequest', emailTemplateRequest_subject - The subject line, or title, to use in email messages that are based on the message template.

$sel:textPart:EmailTemplateRequest', emailTemplateRequest_textPart - The message body, in plain text format, to use in email messages that are based on the message template. We recommend using plain text format for email clients that don't render HTML content and clients that are connected to high-latency networks, such as mobile devices.

$sel:templateDescription:EmailTemplateRequest', emailTemplateRequest_templateDescription - A custom description of the message template.

$sel:defaultSubstitutions:EmailTemplateRequest', emailTemplateRequest_defaultSubstitutions - A JSON object that specifies the default values to use for message variables in the message template. This object is a set of key-value pairs. Each key defines a message variable in the template. The corresponding value defines the default value for that variable. When you create a message that's based on the template, you can override these defaults with message-specific and address-specific variables and values.

$sel:htmlPart:EmailTemplateRequest', emailTemplateRequest_htmlPart - The message body, in HTML format, to use in email messages that are based on the message template. We recommend using HTML format for email clients that render HTML content. You can include links, formatted text, and more in an HTML message.

$sel:recommenderId:EmailTemplateRequest', emailTemplateRequest_recommenderId - The unique identifier for the recommender model to use for the message template. Amazon Pinpoint uses this value to determine how to retrieve and process data from a recommender model when it sends messages that use the template, if the template contains message variables for recommendation data.

$sel:tags:EmailTemplateRequest', emailTemplateRequest_tags - A string-to-string map of key-value pairs that defines the tags to associate with the message template. Each tag consists of a required tag key and an associated tag value.

emailTemplateRequest_subject :: Lens' EmailTemplateRequest (Maybe Text) Source #

The subject line, or title, to use in email messages that are based on the message template.

emailTemplateRequest_textPart :: Lens' EmailTemplateRequest (Maybe Text) Source #

The message body, in plain text format, to use in email messages that are based on the message template. We recommend using plain text format for email clients that don't render HTML content and clients that are connected to high-latency networks, such as mobile devices.

emailTemplateRequest_templateDescription :: Lens' EmailTemplateRequest (Maybe Text) Source #

A custom description of the message template.

emailTemplateRequest_defaultSubstitutions :: Lens' EmailTemplateRequest (Maybe Text) Source #

A JSON object that specifies the default values to use for message variables in the message template. This object is a set of key-value pairs. Each key defines a message variable in the template. The corresponding value defines the default value for that variable. When you create a message that's based on the template, you can override these defaults with message-specific and address-specific variables and values.

emailTemplateRequest_htmlPart :: Lens' EmailTemplateRequest (Maybe Text) Source #

The message body, in HTML format, to use in email messages that are based on the message template. We recommend using HTML format for email clients that render HTML content. You can include links, formatted text, and more in an HTML message.

emailTemplateRequest_recommenderId :: Lens' EmailTemplateRequest (Maybe Text) Source #

The unique identifier for the recommender model to use for the message template. Amazon Pinpoint uses this value to determine how to retrieve and process data from a recommender model when it sends messages that use the template, if the template contains message variables for recommendation data.

emailTemplateRequest_tags :: Lens' EmailTemplateRequest (Maybe (HashMap Text Text)) Source #

A string-to-string map of key-value pairs that defines the tags to associate with the message template. Each tag consists of a required tag key and an associated tag value.