amazonka-pinpoint-email-2.0: Amazon Pinpoint Email Service SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.PinpointEmail.Types.Template

Description

 
Synopsis

Documentation

data Template Source #

See: newTemplate smart constructor.

Constructors

Template' 

Fields

  • templateArn :: Maybe Text

    The Amazon Resource Name (ARN) of the template.

  • templateData :: Maybe Text

    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.

Instances

Instances details
ToJSON Template Source # 
Instance details

Defined in Amazonka.PinpointEmail.Types.Template

Generic Template Source # 
Instance details

Defined in Amazonka.PinpointEmail.Types.Template

Associated Types

type Rep Template :: Type -> Type #

Methods

from :: Template -> Rep Template x #

to :: Rep Template x -> Template #

Read Template Source # 
Instance details

Defined in Amazonka.PinpointEmail.Types.Template

Show Template Source # 
Instance details

Defined in Amazonka.PinpointEmail.Types.Template

NFData Template Source # 
Instance details

Defined in Amazonka.PinpointEmail.Types.Template

Methods

rnf :: Template -> () #

Eq Template Source # 
Instance details

Defined in Amazonka.PinpointEmail.Types.Template

Hashable Template Source # 
Instance details

Defined in Amazonka.PinpointEmail.Types.Template

Methods

hashWithSalt :: Int -> Template -> Int #

hash :: Template -> Int #

type Rep Template Source # 
Instance details

Defined in Amazonka.PinpointEmail.Types.Template

type Rep Template = D1 ('MetaData "Template" "Amazonka.PinpointEmail.Types.Template" "amazonka-pinpoint-email-2.0-EgVsRBIHQXMGA9Xbyu2BvI" '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))))

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.

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.