| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Amazonka.Pinpoint.Types.WriteCampaignRequest
Description
Synopsis
- data WriteCampaignRequest = WriteCampaignRequest' {
- additionalTreatments :: Maybe [WriteTreatmentResource]
- customDeliveryConfiguration :: Maybe CustomDeliveryConfiguration
- description :: Maybe Text
- holdoutPercent :: Maybe Int
- hook :: Maybe CampaignHook
- isPaused :: Maybe Bool
- limits :: Maybe CampaignLimits
- messageConfiguration :: Maybe MessageConfiguration
- name :: Maybe Text
- priority :: Maybe Int
- schedule :: Maybe Schedule
- segmentId :: Maybe Text
- segmentVersion :: Maybe Int
- templateConfiguration :: Maybe TemplateConfiguration
- treatmentDescription :: Maybe Text
- treatmentName :: Maybe Text
- tags :: Maybe (HashMap Text Text)
- newWriteCampaignRequest :: WriteCampaignRequest
- writeCampaignRequest_additionalTreatments :: Lens' WriteCampaignRequest (Maybe [WriteTreatmentResource])
- writeCampaignRequest_customDeliveryConfiguration :: Lens' WriteCampaignRequest (Maybe CustomDeliveryConfiguration)
- writeCampaignRequest_description :: Lens' WriteCampaignRequest (Maybe Text)
- writeCampaignRequest_holdoutPercent :: Lens' WriteCampaignRequest (Maybe Int)
- writeCampaignRequest_hook :: Lens' WriteCampaignRequest (Maybe CampaignHook)
- writeCampaignRequest_isPaused :: Lens' WriteCampaignRequest (Maybe Bool)
- writeCampaignRequest_limits :: Lens' WriteCampaignRequest (Maybe CampaignLimits)
- writeCampaignRequest_messageConfiguration :: Lens' WriteCampaignRequest (Maybe MessageConfiguration)
- writeCampaignRequest_name :: Lens' WriteCampaignRequest (Maybe Text)
- writeCampaignRequest_priority :: Lens' WriteCampaignRequest (Maybe Int)
- writeCampaignRequest_schedule :: Lens' WriteCampaignRequest (Maybe Schedule)
- writeCampaignRequest_segmentId :: Lens' WriteCampaignRequest (Maybe Text)
- writeCampaignRequest_segmentVersion :: Lens' WriteCampaignRequest (Maybe Int)
- writeCampaignRequest_templateConfiguration :: Lens' WriteCampaignRequest (Maybe TemplateConfiguration)
- writeCampaignRequest_treatmentDescription :: Lens' WriteCampaignRequest (Maybe Text)
- writeCampaignRequest_treatmentName :: Lens' WriteCampaignRequest (Maybe Text)
- writeCampaignRequest_tags :: Lens' WriteCampaignRequest (Maybe (HashMap Text Text))
Documentation
data WriteCampaignRequest Source #
Specifies the configuration and other settings for a campaign.
See: newWriteCampaignRequest smart constructor.
Constructors
| WriteCampaignRequest' | |
Fields
| |
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:additionalTreatments:WriteCampaignRequest', writeCampaignRequest_additionalTreatments - An array of requests that defines additional treatments for the
campaign, in addition to the default treatment for the campaign.
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:description:WriteCampaignRequest', writeCampaignRequest_description - A custom description of the campaign.
$sel:holdoutPercent:WriteCampaignRequest', writeCampaignRequest_holdoutPercent - The allocated percentage of users (segment members) who shouldn't
receive messages from 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: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:limits:WriteCampaignRequest', writeCampaignRequest_limits - The messaging limits for the campaign.
WriteCampaignRequest, writeCampaignRequest_messageConfiguration - The message configuration settings for the campaign.
$sel:name:WriteCampaignRequest', writeCampaignRequest_name - A custom name for the campaign.
$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.
WriteCampaignRequest, writeCampaignRequest_schedule - The schedule settings for the campaign.
$sel:segmentId:WriteCampaignRequest', writeCampaignRequest_segmentId - The unique identifier for the segment to associate with the campaign.
$sel:segmentVersion:WriteCampaignRequest', writeCampaignRequest_segmentVersion - The version of the segment to associate with the campaign.
WriteCampaignRequest, writeCampaignRequest_templateConfiguration - The message template to use for the campaign.
WriteCampaignRequest, writeCampaignRequest_treatmentDescription - A custom description of the default treatment for the campaign.
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: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.
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_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_description :: Lens' WriteCampaignRequest (Maybe Text) Source #
A custom description of 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_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_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_limits :: Lens' WriteCampaignRequest (Maybe CampaignLimits) Source #
The messaging limits for the campaign.
writeCampaignRequest_messageConfiguration :: Lens' WriteCampaignRequest (Maybe MessageConfiguration) Source #
The message configuration settings for the campaign.
writeCampaignRequest_name :: Lens' WriteCampaignRequest (Maybe Text) Source #
A custom name for the campaign.
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_segmentId :: Lens' WriteCampaignRequest (Maybe Text) Source #
The unique identifier for the segment to associate with the campaign.
writeCampaignRequest_segmentVersion :: Lens' WriteCampaignRequest (Maybe Int) Source #
The version of the segment to associate with the campaign.
writeCampaignRequest_templateConfiguration :: Lens' WriteCampaignRequest (Maybe TemplateConfiguration) Source #
The message template to use for the campaign.
writeCampaignRequest_treatmentDescription :: Lens' WriteCampaignRequest (Maybe Text) Source #
A custom description of the default treatment for 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_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.