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

Description

 
Synopsis

Documentation

data WriteTreatmentResource Source #

Specifies the settings for a campaign treatment. A treatment is a variation of a campaign that's used for A/B testing of a campaign.

See: newWriteTreatmentResource smart constructor.

Constructors

WriteTreatmentResource' 

Fields

Instances

Instances details
Eq WriteTreatmentResource Source # 
Instance details

Defined in Amazonka.Pinpoint.Types.WriteTreatmentResource

Read WriteTreatmentResource Source # 
Instance details

Defined in Amazonka.Pinpoint.Types.WriteTreatmentResource

Show WriteTreatmentResource Source # 
Instance details

Defined in Amazonka.Pinpoint.Types.WriteTreatmentResource

Generic WriteTreatmentResource Source # 
Instance details

Defined in Amazonka.Pinpoint.Types.WriteTreatmentResource

Associated Types

type Rep WriteTreatmentResource :: Type -> Type #

NFData WriteTreatmentResource Source # 
Instance details

Defined in Amazonka.Pinpoint.Types.WriteTreatmentResource

Methods

rnf :: WriteTreatmentResource -> () #

Hashable WriteTreatmentResource Source # 
Instance details

Defined in Amazonka.Pinpoint.Types.WriteTreatmentResource

ToJSON WriteTreatmentResource Source # 
Instance details

Defined in Amazonka.Pinpoint.Types.WriteTreatmentResource

type Rep WriteTreatmentResource Source # 
Instance details

Defined in Amazonka.Pinpoint.Types.WriteTreatmentResource

type Rep WriteTreatmentResource = D1 ('MetaData "WriteTreatmentResource" "Amazonka.Pinpoint.Types.WriteTreatmentResource" "libZSservicesZSamazonka-pinpointZSamazonka-pinpoint" 'False) (C1 ('MetaCons "WriteTreatmentResource'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "customDeliveryConfiguration") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe CustomDeliveryConfiguration)) :*: (S1 ('MetaSel ('Just "schedule") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Schedule)) :*: S1 ('MetaSel ('Just "templateConfiguration") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe TemplateConfiguration)))) :*: ((S1 ('MetaSel ('Just "treatmentName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "treatmentDescription") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "messageConfiguration") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe MessageConfiguration)) :*: S1 ('MetaSel ('Just "sizePercent") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))))

newWriteTreatmentResource Source #

Create a value of WriteTreatmentResource 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:customDeliveryConfiguration:WriteTreatmentResource', writeTreatmentResource_customDeliveryConfiguration - The delivery configuration settings for sending the treatment through a custom channel. This object is required if the MessageConfiguration object for the treatment specifies a CustomMessage object.

$sel:schedule:WriteTreatmentResource', writeTreatmentResource_schedule - The schedule settings for the treatment.

$sel:templateConfiguration:WriteTreatmentResource', writeTreatmentResource_templateConfiguration - The message template to use for the treatment.

$sel:treatmentName:WriteTreatmentResource', writeTreatmentResource_treatmentName - A custom name for the treatment.

$sel:treatmentDescription:WriteTreatmentResource', writeTreatmentResource_treatmentDescription - A custom description of the treatment.

$sel:messageConfiguration:WriteTreatmentResource', writeTreatmentResource_messageConfiguration - The message configuration settings for the treatment.

$sel:sizePercent:WriteTreatmentResource', writeTreatmentResource_sizePercent - The allocated percentage of users (segment members) to send the treatment to.

writeTreatmentResource_customDeliveryConfiguration :: Lens' WriteTreatmentResource (Maybe CustomDeliveryConfiguration) Source #

The delivery configuration settings for sending the treatment through a custom channel. This object is required if the MessageConfiguration object for the treatment specifies a CustomMessage object.

writeTreatmentResource_sizePercent :: Lens' WriteTreatmentResource Int Source #

The allocated percentage of users (segment members) to send the treatment to.