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 |
Synopsis
- data CampaignResponse = CampaignResponse' {
- additionalTreatments :: Maybe [TreatmentResource]
- customDeliveryConfiguration :: Maybe CustomDeliveryConfiguration
- defaultState :: Maybe CampaignState
- 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
- state :: Maybe CampaignState
- templateConfiguration :: Maybe TemplateConfiguration
- treatmentDescription :: Maybe Text
- treatmentName :: Maybe Text
- version :: Maybe Int
- tags :: Maybe (HashMap Text Text)
- lastModifiedDate :: Text
- creationDate :: Text
- segmentId :: Text
- segmentVersion :: Int
- id :: Text
- arn :: Text
- applicationId :: Text
- newCampaignResponse :: Text -> Text -> Text -> Int -> Text -> Text -> Text -> CampaignResponse
- campaignResponse_additionalTreatments :: Lens' CampaignResponse (Maybe [TreatmentResource])
- campaignResponse_customDeliveryConfiguration :: Lens' CampaignResponse (Maybe CustomDeliveryConfiguration)
- campaignResponse_defaultState :: Lens' CampaignResponse (Maybe CampaignState)
- campaignResponse_description :: Lens' CampaignResponse (Maybe Text)
- campaignResponse_holdoutPercent :: Lens' CampaignResponse (Maybe Int)
- campaignResponse_hook :: Lens' CampaignResponse (Maybe CampaignHook)
- campaignResponse_isPaused :: Lens' CampaignResponse (Maybe Bool)
- campaignResponse_limits :: Lens' CampaignResponse (Maybe CampaignLimits)
- campaignResponse_messageConfiguration :: Lens' CampaignResponse (Maybe MessageConfiguration)
- campaignResponse_name :: Lens' CampaignResponse (Maybe Text)
- campaignResponse_priority :: Lens' CampaignResponse (Maybe Int)
- campaignResponse_schedule :: Lens' CampaignResponse (Maybe Schedule)
- campaignResponse_state :: Lens' CampaignResponse (Maybe CampaignState)
- campaignResponse_templateConfiguration :: Lens' CampaignResponse (Maybe TemplateConfiguration)
- campaignResponse_treatmentDescription :: Lens' CampaignResponse (Maybe Text)
- campaignResponse_treatmentName :: Lens' CampaignResponse (Maybe Text)
- campaignResponse_version :: Lens' CampaignResponse (Maybe Int)
- campaignResponse_tags :: Lens' CampaignResponse (Maybe (HashMap Text Text))
- campaignResponse_lastModifiedDate :: Lens' CampaignResponse Text
- campaignResponse_creationDate :: Lens' CampaignResponse Text
- campaignResponse_segmentId :: Lens' CampaignResponse Text
- campaignResponse_segmentVersion :: Lens' CampaignResponse Int
- campaignResponse_id :: Lens' CampaignResponse Text
- campaignResponse_arn :: Lens' CampaignResponse Text
- campaignResponse_applicationId :: Lens' CampaignResponse Text
Documentation
data CampaignResponse Source #
Provides information about the status, configuration, and other settings for a campaign.
See: newCampaignResponse
smart constructor.
CampaignResponse' | |
|
Instances
Create a value of CampaignResponse
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:CampaignResponse'
, campaignResponse_additionalTreatments
- An array of responses, one for each treatment that you defined for the
campaign, in addition to the default treatment.
CampaignResponse
, campaignResponse_customDeliveryConfiguration
- The delivery configuration settings for sending the campaign through a
custom channel.
$sel:defaultState:CampaignResponse'
, campaignResponse_defaultState
- The current status of the campaign's default treatment. This value
exists only for campaigns that have more than one treatment.
$sel:description:CampaignResponse'
, campaignResponse_description
- The custom description of the campaign.
$sel:holdoutPercent:CampaignResponse'
, campaignResponse_holdoutPercent
- The allocated percentage of users (segment members) who shouldn't
receive messages from the campaign.
$sel:hook:CampaignResponse'
, campaignResponse_hook
- The settings for the AWS Lambda function to use as a code hook for the
campaign. You can use this hook to customize the segment that's used by
the campaign.
$sel:isPaused:CampaignResponse'
, campaignResponse_isPaused
- Specifies whether the campaign is paused. A paused campaign doesn't run
unless you resume it by changing this value to false.
$sel:limits:CampaignResponse'
, campaignResponse_limits
- The messaging limits for the campaign.
CampaignResponse
, campaignResponse_messageConfiguration
- The message configuration settings for the campaign.
$sel:name:CampaignResponse'
, campaignResponse_name
- The name of the campaign.
$sel:priority:CampaignResponse'
, campaignResponse_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.
CampaignResponse
, campaignResponse_schedule
- The schedule settings for the campaign.
CampaignResponse
, campaignResponse_state
- The current status of the campaign.
CampaignResponse
, campaignResponse_templateConfiguration
- The message template that’s used for the campaign.
CampaignResponse
, campaignResponse_treatmentDescription
- The custom description of the default treatment for the campaign.
CampaignResponse
, campaignResponse_treatmentName
- The 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:version:CampaignResponse'
, campaignResponse_version
- The version number of the campaign.
$sel:tags:CampaignResponse'
, campaignResponse_tags
- A string-to-string map of key-value pairs that identifies the tags that
are associated with the campaign. Each tag consists of a required tag
key and an associated tag value.
$sel:lastModifiedDate:CampaignResponse'
, campaignResponse_lastModifiedDate
- The date, in ISO 8601 format, when the campaign was last modified.
$sel:creationDate:CampaignResponse'
, campaignResponse_creationDate
- The date, in ISO 8601 format, when the campaign was created.
$sel:segmentId:CampaignResponse'
, campaignResponse_segmentId
- The unique identifier for the segment that's associated with the
campaign.
$sel:segmentVersion:CampaignResponse'
, campaignResponse_segmentVersion
- The version number of the segment that's associated with the campaign.
CampaignResponse
, campaignResponse_id
- The unique identifier for the campaign.
$sel:arn:CampaignResponse'
, campaignResponse_arn
- The Amazon Resource Name (ARN) of the campaign.
$sel:applicationId:CampaignResponse'
, campaignResponse_applicationId
- The unique identifier for the application that the campaign applies to.
campaignResponse_additionalTreatments :: Lens' CampaignResponse (Maybe [TreatmentResource]) Source #
An array of responses, one for each treatment that you defined for the campaign, in addition to the default treatment.
campaignResponse_customDeliveryConfiguration :: Lens' CampaignResponse (Maybe CustomDeliveryConfiguration) Source #
The delivery configuration settings for sending the campaign through a custom channel.
campaignResponse_defaultState :: Lens' CampaignResponse (Maybe CampaignState) Source #
The current status of the campaign's default treatment. This value exists only for campaigns that have more than one treatment.
campaignResponse_description :: Lens' CampaignResponse (Maybe Text) Source #
The custom description of the campaign.
campaignResponse_holdoutPercent :: Lens' CampaignResponse (Maybe Int) Source #
The allocated percentage of users (segment members) who shouldn't receive messages from the campaign.
campaignResponse_hook :: Lens' CampaignResponse (Maybe CampaignHook) Source #
The settings for the AWS Lambda function to use as a code hook for the campaign. You can use this hook to customize the segment that's used by the campaign.
campaignResponse_isPaused :: Lens' CampaignResponse (Maybe Bool) Source #
Specifies whether the campaign is paused. A paused campaign doesn't run unless you resume it by changing this value to false.
campaignResponse_limits :: Lens' CampaignResponse (Maybe CampaignLimits) Source #
The messaging limits for the campaign.
campaignResponse_messageConfiguration :: Lens' CampaignResponse (Maybe MessageConfiguration) Source #
The message configuration settings for the campaign.
campaignResponse_name :: Lens' CampaignResponse (Maybe Text) Source #
The name of the campaign.
campaignResponse_priority :: Lens' CampaignResponse (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.
campaignResponse_schedule :: Lens' CampaignResponse (Maybe Schedule) Source #
The schedule settings for the campaign.
campaignResponse_state :: Lens' CampaignResponse (Maybe CampaignState) Source #
The current status of the campaign.
campaignResponse_templateConfiguration :: Lens' CampaignResponse (Maybe TemplateConfiguration) Source #
The message template that’s used for the campaign.
campaignResponse_treatmentDescription :: Lens' CampaignResponse (Maybe Text) Source #
The custom description of the default treatment for the campaign.
campaignResponse_treatmentName :: Lens' CampaignResponse (Maybe Text) Source #
The 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.
campaignResponse_version :: Lens' CampaignResponse (Maybe Int) Source #
The version number of the campaign.
campaignResponse_tags :: Lens' CampaignResponse (Maybe (HashMap Text Text)) Source #
A string-to-string map of key-value pairs that identifies the tags that are associated with the campaign. Each tag consists of a required tag key and an associated tag value.
campaignResponse_lastModifiedDate :: Lens' CampaignResponse Text Source #
The date, in ISO 8601 format, when the campaign was last modified.
campaignResponse_creationDate :: Lens' CampaignResponse Text Source #
The date, in ISO 8601 format, when the campaign was created.
campaignResponse_segmentId :: Lens' CampaignResponse Text Source #
The unique identifier for the segment that's associated with the campaign.
campaignResponse_segmentVersion :: Lens' CampaignResponse Int Source #
The version number of the segment that's associated with the campaign.
campaignResponse_id :: Lens' CampaignResponse Text Source #
The unique identifier for the campaign.
campaignResponse_arn :: Lens' CampaignResponse Text Source #
The Amazon Resource Name (ARN) of the campaign.
campaignResponse_applicationId :: Lens' CampaignResponse Text Source #
The unique identifier for the application that the campaign applies to.