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 |
Synopsis
- data TreatmentResource = TreatmentResource' {
- customDeliveryConfiguration :: Maybe CustomDeliveryConfiguration
- state :: Maybe CampaignState
- schedule :: Maybe Schedule
- templateConfiguration :: Maybe TemplateConfiguration
- treatmentName :: Maybe Text
- treatmentDescription :: Maybe Text
- messageConfiguration :: Maybe MessageConfiguration
- id :: Text
- sizePercent :: Int
- newTreatmentResource :: Text -> Int -> TreatmentResource
- treatmentResource_customDeliveryConfiguration :: Lens' TreatmentResource (Maybe CustomDeliveryConfiguration)
- treatmentResource_state :: Lens' TreatmentResource (Maybe CampaignState)
- treatmentResource_schedule :: Lens' TreatmentResource (Maybe Schedule)
- treatmentResource_templateConfiguration :: Lens' TreatmentResource (Maybe TemplateConfiguration)
- treatmentResource_treatmentName :: Lens' TreatmentResource (Maybe Text)
- treatmentResource_treatmentDescription :: Lens' TreatmentResource (Maybe Text)
- treatmentResource_messageConfiguration :: Lens' TreatmentResource (Maybe MessageConfiguration)
- treatmentResource_id :: Lens' TreatmentResource Text
- treatmentResource_sizePercent :: Lens' TreatmentResource Int
Documentation
data TreatmentResource 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: newTreatmentResource
smart constructor.
TreatmentResource' | |
|
Instances
Create a value of TreatmentResource
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:TreatmentResource'
, treatmentResource_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:state:TreatmentResource'
, treatmentResource_state
- The current status of the treatment.
$sel:schedule:TreatmentResource'
, treatmentResource_schedule
- The schedule settings for the treatment.
$sel:templateConfiguration:TreatmentResource'
, treatmentResource_templateConfiguration
- The message template to use for the treatment.
$sel:treatmentName:TreatmentResource'
, treatmentResource_treatmentName
- The custom name of the treatment.
$sel:treatmentDescription:TreatmentResource'
, treatmentResource_treatmentDescription
- The custom description of the treatment.
$sel:messageConfiguration:TreatmentResource'
, treatmentResource_messageConfiguration
- The message configuration settings for the treatment.
$sel:id:TreatmentResource'
, treatmentResource_id
- The unique identifier for the treatment.
$sel:sizePercent:TreatmentResource'
, treatmentResource_sizePercent
- The allocated percentage of users (segment members) that the treatment
is sent to.
treatmentResource_customDeliveryConfiguration :: Lens' TreatmentResource (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.
treatmentResource_state :: Lens' TreatmentResource (Maybe CampaignState) Source #
The current status of the treatment.
treatmentResource_schedule :: Lens' TreatmentResource (Maybe Schedule) Source #
The schedule settings for the treatment.
treatmentResource_templateConfiguration :: Lens' TreatmentResource (Maybe TemplateConfiguration) Source #
The message template to use for the treatment.
treatmentResource_treatmentName :: Lens' TreatmentResource (Maybe Text) Source #
The custom name of the treatment.
treatmentResource_treatmentDescription :: Lens' TreatmentResource (Maybe Text) Source #
The custom description of the treatment.
treatmentResource_messageConfiguration :: Lens' TreatmentResource (Maybe MessageConfiguration) Source #
The message configuration settings for the treatment.
treatmentResource_id :: Lens' TreatmentResource Text Source #
The unique identifier for the treatment.
treatmentResource_sizePercent :: Lens' TreatmentResource Int Source #
The allocated percentage of users (segment members) that the treatment is sent to.