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.InAppTemplateRequest

Description

 
Synopsis

Documentation

data InAppTemplateRequest Source #

InApp Template Request.

See: newInAppTemplateRequest smart constructor.

Constructors

InAppTemplateRequest' 

Fields

Instances

Instances details
Eq InAppTemplateRequest Source # 
Instance details

Defined in Amazonka.Pinpoint.Types.InAppTemplateRequest

Read InAppTemplateRequest Source # 
Instance details

Defined in Amazonka.Pinpoint.Types.InAppTemplateRequest

Show InAppTemplateRequest Source # 
Instance details

Defined in Amazonka.Pinpoint.Types.InAppTemplateRequest

Generic InAppTemplateRequest Source # 
Instance details

Defined in Amazonka.Pinpoint.Types.InAppTemplateRequest

Associated Types

type Rep InAppTemplateRequest :: Type -> Type #

NFData InAppTemplateRequest Source # 
Instance details

Defined in Amazonka.Pinpoint.Types.InAppTemplateRequest

Methods

rnf :: InAppTemplateRequest -> () #

Hashable InAppTemplateRequest Source # 
Instance details

Defined in Amazonka.Pinpoint.Types.InAppTemplateRequest

ToJSON InAppTemplateRequest Source # 
Instance details

Defined in Amazonka.Pinpoint.Types.InAppTemplateRequest

type Rep InAppTemplateRequest Source # 
Instance details

Defined in Amazonka.Pinpoint.Types.InAppTemplateRequest

type Rep InAppTemplateRequest = D1 ('MetaData "InAppTemplateRequest" "Amazonka.Pinpoint.Types.InAppTemplateRequest" "libZSservicesZSamazonka-pinpointZSamazonka-pinpoint" 'False) (C1 ('MetaCons "InAppTemplateRequest'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "layout") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Layout)) :*: S1 ('MetaSel ('Just "templateDescription") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "content") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [InAppMessageContent])) :*: (S1 ('MetaSel ('Just "customConfig") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (HashMap Text Text))) :*: S1 ('MetaSel ('Just "tags") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (HashMap Text Text)))))))

newInAppTemplateRequest :: InAppTemplateRequest Source #

Create a value of InAppTemplateRequest 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:layout:InAppTemplateRequest', inAppTemplateRequest_layout - The layout of the message.

$sel:templateDescription:InAppTemplateRequest', inAppTemplateRequest_templateDescription - The description of the template.

$sel:content:InAppTemplateRequest', inAppTemplateRequest_content - The content of the message, can include up to 5 modals. Each modal must contain a message, a header, and background color. ImageUrl and buttons are optional.

$sel:customConfig:InAppTemplateRequest', inAppTemplateRequest_customConfig - Custom config to be sent to client.

$sel:tags:InAppTemplateRequest', inAppTemplateRequest_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.

inAppTemplateRequest_content :: Lens' InAppTemplateRequest (Maybe [InAppMessageContent]) Source #

The content of the message, can include up to 5 modals. Each modal must contain a message, a header, and background color. ImageUrl and buttons are optional.

inAppTemplateRequest_tags :: Lens' InAppTemplateRequest (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.