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 CampaignResponse = CampaignResponse' {
- customDeliveryConfiguration :: Maybe CustomDeliveryConfiguration
- state :: Maybe CampaignState
- priority :: Maybe Int
- schedule :: Maybe Schedule
- templateConfiguration :: Maybe TemplateConfiguration
- hook :: Maybe CampaignHook
- treatmentName :: Maybe Text
- limits :: Maybe CampaignLimits
- isPaused :: Maybe Bool
- defaultState :: Maybe CampaignState
- name :: Maybe Text
- version :: Maybe Int
- holdoutPercent :: Maybe Int
- treatmentDescription :: Maybe Text
- messageConfiguration :: Maybe MessageConfiguration
- description :: Maybe Text
- additionalTreatments :: Maybe [TreatmentResource]
- 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_customDeliveryConfiguration :: Lens' CampaignResponse (Maybe CustomDeliveryConfiguration)
- campaignResponse_state :: Lens' CampaignResponse (Maybe CampaignState)
- campaignResponse_priority :: Lens' CampaignResponse (Maybe Int)
- campaignResponse_schedule :: Lens' CampaignResponse (Maybe Schedule)
- campaignResponse_templateConfiguration :: Lens' CampaignResponse (Maybe TemplateConfiguration)
- campaignResponse_hook :: Lens' CampaignResponse (Maybe CampaignHook)
- campaignResponse_treatmentName :: Lens' CampaignResponse (Maybe Text)
- campaignResponse_limits :: Lens' CampaignResponse (Maybe CampaignLimits)
- campaignResponse_isPaused :: Lens' CampaignResponse (Maybe Bool)
- campaignResponse_defaultState :: Lens' CampaignResponse (Maybe CampaignState)
- campaignResponse_name :: Lens' CampaignResponse (Maybe Text)
- campaignResponse_version :: Lens' CampaignResponse (Maybe Int)
- campaignResponse_holdoutPercent :: Lens' CampaignResponse (Maybe Int)
- campaignResponse_treatmentDescription :: Lens' CampaignResponse (Maybe Text)
- campaignResponse_messageConfiguration :: Lens' CampaignResponse (Maybe MessageConfiguration)
- campaignResponse_description :: Lens' CampaignResponse (Maybe Text)
- campaignResponse_additionalTreatments :: Lens' CampaignResponse (Maybe [TreatmentResource])
- 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:customDeliveryConfiguration:CampaignResponse'
, campaignResponse_customDeliveryConfiguration
- The delivery configuration settings for sending the campaign through a
custom channel.
$sel:state:CampaignResponse'
, campaignResponse_state
- The current status 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.
$sel:schedule:CampaignResponse'
, campaignResponse_schedule
- The schedule settings for the campaign.
$sel:templateConfiguration:CampaignResponse'
, campaignResponse_templateConfiguration
- The message template that’s used for 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:treatmentName: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:limits:CampaignResponse'
, campaignResponse_limits
- The messaging limits for 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: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:name:CampaignResponse'
, campaignResponse_name
- The name of the campaign.
$sel:version:CampaignResponse'
, campaignResponse_version
- The version number of the campaign.
$sel:holdoutPercent:CampaignResponse'
, campaignResponse_holdoutPercent
- The allocated percentage of users (segment members) who shouldn't
receive messages from the campaign.
$sel:treatmentDescription:CampaignResponse'
, campaignResponse_treatmentDescription
- The custom description of the default treatment for the campaign.
$sel:messageConfiguration:CampaignResponse'
, campaignResponse_messageConfiguration
- The message configuration settings for the campaign.
$sel:description:CampaignResponse'
, campaignResponse_description
- The custom description of the campaign.
$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.
$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.
$sel:id: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_customDeliveryConfiguration :: Lens' CampaignResponse (Maybe CustomDeliveryConfiguration) Source #
The delivery configuration settings for sending the campaign through a custom channel.
campaignResponse_state :: Lens' CampaignResponse (Maybe CampaignState) Source #
The current status 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_templateConfiguration :: Lens' CampaignResponse (Maybe TemplateConfiguration) Source #
The message template that’s used for 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_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_limits :: Lens' CampaignResponse (Maybe CampaignLimits) Source #
The messaging limits for 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_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_name :: Lens' CampaignResponse (Maybe Text) Source #
The name of the campaign.
campaignResponse_version :: Lens' CampaignResponse (Maybe Int) Source #
The version number 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_treatmentDescription :: Lens' CampaignResponse (Maybe Text) Source #
The custom description of the default treatment for the campaign.
campaignResponse_messageConfiguration :: Lens' CampaignResponse (Maybe MessageConfiguration) Source #
The message configuration settings for the campaign.
campaignResponse_description :: Lens' CampaignResponse (Maybe Text) Source #
The custom description of the campaign.
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_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.