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 WriteCampaignRequest = WriteCampaignRequest' {
- customDeliveryConfiguration :: Maybe CustomDeliveryConfiguration
- priority :: Maybe Int
- schedule :: Maybe Schedule
- templateConfiguration :: Maybe TemplateConfiguration
- hook :: Maybe CampaignHook
- treatmentName :: Maybe Text
- limits :: Maybe CampaignLimits
- isPaused :: Maybe Bool
- name :: Maybe Text
- holdoutPercent :: Maybe Int
- treatmentDescription :: Maybe Text
- messageConfiguration :: Maybe MessageConfiguration
- description :: Maybe Text
- segmentId :: Maybe Text
- additionalTreatments :: Maybe [WriteTreatmentResource]
- tags :: Maybe (HashMap Text Text)
- segmentVersion :: Maybe Int
- newWriteCampaignRequest :: WriteCampaignRequest
- writeCampaignRequest_customDeliveryConfiguration :: Lens' WriteCampaignRequest (Maybe CustomDeliveryConfiguration)
- writeCampaignRequest_priority :: Lens' WriteCampaignRequest (Maybe Int)
- writeCampaignRequest_schedule :: Lens' WriteCampaignRequest (Maybe Schedule)
- writeCampaignRequest_templateConfiguration :: Lens' WriteCampaignRequest (Maybe TemplateConfiguration)
- writeCampaignRequest_hook :: Lens' WriteCampaignRequest (Maybe CampaignHook)
- writeCampaignRequest_treatmentName :: Lens' WriteCampaignRequest (Maybe Text)
- writeCampaignRequest_limits :: Lens' WriteCampaignRequest (Maybe CampaignLimits)
- writeCampaignRequest_isPaused :: Lens' WriteCampaignRequest (Maybe Bool)
- writeCampaignRequest_name :: Lens' WriteCampaignRequest (Maybe Text)
- writeCampaignRequest_holdoutPercent :: Lens' WriteCampaignRequest (Maybe Int)
- writeCampaignRequest_treatmentDescription :: Lens' WriteCampaignRequest (Maybe Text)
- writeCampaignRequest_messageConfiguration :: Lens' WriteCampaignRequest (Maybe MessageConfiguration)
- writeCampaignRequest_description :: Lens' WriteCampaignRequest (Maybe Text)
- writeCampaignRequest_segmentId :: Lens' WriteCampaignRequest (Maybe Text)
- writeCampaignRequest_additionalTreatments :: Lens' WriteCampaignRequest (Maybe [WriteTreatmentResource])
- writeCampaignRequest_tags :: Lens' WriteCampaignRequest (Maybe (HashMap Text Text))
- writeCampaignRequest_segmentVersion :: Lens' WriteCampaignRequest (Maybe Int)
Documentation
data WriteCampaignRequest Source #
Specifies the configuration and other settings for a campaign.
See: newWriteCampaignRequest
smart constructor.
WriteCampaignRequest' | |
|
Instances
newWriteCampaignRequest :: WriteCampaignRequest Source #
Create a value of WriteCampaignRequest
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:WriteCampaignRequest'
, writeCampaignRequest_customDeliveryConfiguration
- The delivery configuration settings for sending the campaign through a
custom channel. This object is required if the MessageConfiguration
object for the campaign specifies a CustomMessage object.
$sel:priority:WriteCampaignRequest'
, writeCampaignRequest_priority
- Defines the priority of the campaign, used to decide the order of
messages displayed to user if there are multiple messages scheduled to
be displayed at the same moment.
$sel:schedule:WriteCampaignRequest'
, writeCampaignRequest_schedule
- The schedule settings for the campaign.
$sel:templateConfiguration:WriteCampaignRequest'
, writeCampaignRequest_templateConfiguration
- The message template to use for the campaign.
$sel:hook:WriteCampaignRequest'
, writeCampaignRequest_hook
- The settings for the AWS Lambda function to invoke as a code hook for
the campaign. You can use this hook to customize the segment that's
used by the campaign.
$sel:treatmentName:WriteCampaignRequest'
, writeCampaignRequest_treatmentName
- A custom name of the default treatment for the campaign, if the campaign
has multiple treatments. A treatment is a variation of a campaign
that's used for A/B testing.
$sel:limits:WriteCampaignRequest'
, writeCampaignRequest_limits
- The messaging limits for the campaign.
$sel:isPaused:WriteCampaignRequest'
, writeCampaignRequest_isPaused
- Specifies whether to pause the campaign. A paused campaign doesn't run
unless you resume it by changing this value to false.
$sel:name:WriteCampaignRequest'
, writeCampaignRequest_name
- A custom name for the campaign.
$sel:holdoutPercent:WriteCampaignRequest'
, writeCampaignRequest_holdoutPercent
- The allocated percentage of users (segment members) who shouldn't
receive messages from the campaign.
$sel:treatmentDescription:WriteCampaignRequest'
, writeCampaignRequest_treatmentDescription
- A custom description of the default treatment for the campaign.
$sel:messageConfiguration:WriteCampaignRequest'
, writeCampaignRequest_messageConfiguration
- The message configuration settings for the campaign.
$sel:description:WriteCampaignRequest'
, writeCampaignRequest_description
- A custom description of the campaign.
$sel:segmentId:WriteCampaignRequest'
, writeCampaignRequest_segmentId
- The unique identifier for the segment to associate with the campaign.
$sel:additionalTreatments:WriteCampaignRequest'
, writeCampaignRequest_additionalTreatments
- An array of requests that defines additional treatments for the
campaign, in addition to the default treatment for the campaign.
$sel:tags:WriteCampaignRequest'
, writeCampaignRequest_tags
- A string-to-string map of key-value pairs that defines the tags to
associate with the campaign. Each tag consists of a required tag key and
an associated tag value.
$sel:segmentVersion:WriteCampaignRequest'
, writeCampaignRequest_segmentVersion
- The version of the segment to associate with the campaign.
writeCampaignRequest_customDeliveryConfiguration :: Lens' WriteCampaignRequest (Maybe CustomDeliveryConfiguration) Source #
The delivery configuration settings for sending the campaign through a custom channel. This object is required if the MessageConfiguration object for the campaign specifies a CustomMessage object.
writeCampaignRequest_priority :: Lens' WriteCampaignRequest (Maybe Int) Source #
Defines the priority of the campaign, used to decide the order of messages displayed to user if there are multiple messages scheduled to be displayed at the same moment.
writeCampaignRequest_schedule :: Lens' WriteCampaignRequest (Maybe Schedule) Source #
The schedule settings for the campaign.
writeCampaignRequest_templateConfiguration :: Lens' WriteCampaignRequest (Maybe TemplateConfiguration) Source #
The message template to use for the campaign.
writeCampaignRequest_hook :: Lens' WriteCampaignRequest (Maybe CampaignHook) Source #
The settings for the AWS Lambda function to invoke as a code hook for the campaign. You can use this hook to customize the segment that's used by the campaign.
writeCampaignRequest_treatmentName :: Lens' WriteCampaignRequest (Maybe Text) Source #
A custom name of the default treatment for the campaign, if the campaign has multiple treatments. A treatment is a variation of a campaign that's used for A/B testing.
writeCampaignRequest_limits :: Lens' WriteCampaignRequest (Maybe CampaignLimits) Source #
The messaging limits for the campaign.
writeCampaignRequest_isPaused :: Lens' WriteCampaignRequest (Maybe Bool) Source #
Specifies whether to pause the campaign. A paused campaign doesn't run unless you resume it by changing this value to false.
writeCampaignRequest_name :: Lens' WriteCampaignRequest (Maybe Text) Source #
A custom name for the campaign.
writeCampaignRequest_holdoutPercent :: Lens' WriteCampaignRequest (Maybe Int) Source #
The allocated percentage of users (segment members) who shouldn't receive messages from the campaign.
writeCampaignRequest_treatmentDescription :: Lens' WriteCampaignRequest (Maybe Text) Source #
A custom description of the default treatment for the campaign.
writeCampaignRequest_messageConfiguration :: Lens' WriteCampaignRequest (Maybe MessageConfiguration) Source #
The message configuration settings for the campaign.
writeCampaignRequest_description :: Lens' WriteCampaignRequest (Maybe Text) Source #
A custom description of the campaign.
writeCampaignRequest_segmentId :: Lens' WriteCampaignRequest (Maybe Text) Source #
The unique identifier for the segment to associate with the campaign.
writeCampaignRequest_additionalTreatments :: Lens' WriteCampaignRequest (Maybe [WriteTreatmentResource]) Source #
An array of requests that defines additional treatments for the campaign, in addition to the default treatment for the campaign.
writeCampaignRequest_tags :: Lens' WriteCampaignRequest (Maybe (HashMap Text Text)) Source #
A string-to-string map of key-value pairs that defines the tags to associate with the campaign. Each tag consists of a required tag key and an associated tag value.
writeCampaignRequest_segmentVersion :: Lens' WriteCampaignRequest (Maybe Int) Source #
The version of the segment to associate with the campaign.