Class: Aws::Pinpoint::Types::WriteCampaignRequest
- Inherits:
-
Struct
- Object
- Struct
- Aws::Pinpoint::Types::WriteCampaignRequest
- Includes:
- Structure
- Defined in:
- lib/aws-sdk-pinpoint/types.rb
Overview
When making an API call, you may pass WriteCampaignRequest data as a hash:
{
additional_treatments: [
{
message_configuration: {
adm_message: {
action: "OPEN_APP", # accepts OPEN_APP, DEEP_LINK, URL
body: "__string",
image_icon_url: "__string",
image_small_icon_url: "__string",
image_url: "__string",
json_body: "__string",
media_url: "__string",
raw_content: "__string",
silent_push: false,
time_to_live: 1,
title: "__string",
url: "__string",
},
apns_message: {
action: "OPEN_APP", # accepts OPEN_APP, DEEP_LINK, URL
body: "__string",
image_icon_url: "__string",
image_small_icon_url: "__string",
image_url: "__string",
json_body: "__string",
media_url: "__string",
raw_content: "__string",
silent_push: false,
time_to_live: 1,
title: "__string",
url: "__string",
},
baidu_message: {
action: "OPEN_APP", # accepts OPEN_APP, DEEP_LINK, URL
body: "__string",
image_icon_url: "__string",
image_small_icon_url: "__string",
image_url: "__string",
json_body: "__string",
media_url: "__string",
raw_content: "__string",
silent_push: false,
time_to_live: 1,
title: "__string",
url: "__string",
},
default_message: {
action: "OPEN_APP", # accepts OPEN_APP, DEEP_LINK, URL
body: "__string",
image_icon_url: "__string",
image_small_icon_url: "__string",
image_url: "__string",
json_body: "__string",
media_url: "__string",
raw_content: "__string",
silent_push: false,
time_to_live: 1,
title: "__string",
url: "__string",
},
email_message: {
body: "__string",
from_address: "__string",
html_body: "__string",
title: "__string",
},
gcm_message: {
action: "OPEN_APP", # accepts OPEN_APP, DEEP_LINK, URL
body: "__string",
image_icon_url: "__string",
image_small_icon_url: "__string",
image_url: "__string",
json_body: "__string",
media_url: "__string",
raw_content: "__string",
silent_push: false,
time_to_live: 1,
title: "__string",
url: "__string",
},
sms_message: {
body: "__string",
message_type: "TRANSACTIONAL", # accepts TRANSACTIONAL, PROMOTIONAL
sender_id: "__string",
},
},
schedule: {
end_time: "__string",
event_filter: {
dimensions: { # required
attributes: {
"__string" => {
attribute_type: "INCLUSIVE", # accepts INCLUSIVE, EXCLUSIVE
values: ["__string"], # required
},
},
event_type: {
dimension_type: "INCLUSIVE", # accepts INCLUSIVE, EXCLUSIVE
values: ["__string"], # required
},
metrics: {
"__string" => {
comparison_operator: "__string", # required
value: 1.0, # required
},
},
},
filter_type: "SYSTEM", # required, accepts SYSTEM, ENDPOINT
},
frequency: "ONCE", # accepts ONCE, HOURLY, DAILY, WEEKLY, MONTHLY, EVENT
is_local_time: false,
quiet_time: {
end: "__string",
start: "__string",
},
start_time: "__string", # required
timezone: "__string",
},
size_percent: 1, # required
template_configuration: {
email_template: {
name: "__string",
version: "__string",
},
push_template: {
name: "__string",
version: "__string",
},
sms_template: {
name: "__string",
version: "__string",
},
voice_template: {
name: "__string",
version: "__string",
},
},
treatment_description: "__string",
treatment_name: "__string",
},
],
description: "__string",
holdout_percent: 1,
hook: {
lambda_function_name: "__string",
mode: "DELIVERY", # accepts DELIVERY, FILTER
web_url: "__string",
},
is_paused: false,
limits: {
daily: 1,
maximum_duration: 1,
messages_per_second: 1,
total: 1,
},
message_configuration: {
adm_message: {
action: "OPEN_APP", # accepts OPEN_APP, DEEP_LINK, URL
body: "__string",
image_icon_url: "__string",
image_small_icon_url: "__string",
image_url: "__string",
json_body: "__string",
media_url: "__string",
raw_content: "__string",
silent_push: false,
time_to_live: 1,
title: "__string",
url: "__string",
},
apns_message: {
action: "OPEN_APP", # accepts OPEN_APP, DEEP_LINK, URL
body: "__string",
image_icon_url: "__string",
image_small_icon_url: "__string",
image_url: "__string",
json_body: "__string",
media_url: "__string",
raw_content: "__string",
silent_push: false,
time_to_live: 1,
title: "__string",
url: "__string",
},
baidu_message: {
action: "OPEN_APP", # accepts OPEN_APP, DEEP_LINK, URL
body: "__string",
image_icon_url: "__string",
image_small_icon_url: "__string",
image_url: "__string",
json_body: "__string",
media_url: "__string",
raw_content: "__string",
silent_push: false,
time_to_live: 1,
title: "__string",
url: "__string",
},
default_message: {
action: "OPEN_APP", # accepts OPEN_APP, DEEP_LINK, URL
body: "__string",
image_icon_url: "__string",
image_small_icon_url: "__string",
image_url: "__string",
json_body: "__string",
media_url: "__string",
raw_content: "__string",
silent_push: false,
time_to_live: 1,
title: "__string",
url: "__string",
},
email_message: {
body: "__string",
from_address: "__string",
html_body: "__string",
title: "__string",
},
gcm_message: {
action: "OPEN_APP", # accepts OPEN_APP, DEEP_LINK, URL
body: "__string",
image_icon_url: "__string",
image_small_icon_url: "__string",
image_url: "__string",
json_body: "__string",
media_url: "__string",
raw_content: "__string",
silent_push: false,
time_to_live: 1,
title: "__string",
url: "__string",
},
sms_message: {
body: "__string",
message_type: "TRANSACTIONAL", # accepts TRANSACTIONAL, PROMOTIONAL
sender_id: "__string",
},
},
name: "__string",
schedule: {
end_time: "__string",
event_filter: {
dimensions: { # required
attributes: {
"__string" => {
attribute_type: "INCLUSIVE", # accepts INCLUSIVE, EXCLUSIVE
values: ["__string"], # required
},
},
event_type: {
dimension_type: "INCLUSIVE", # accepts INCLUSIVE, EXCLUSIVE
values: ["__string"], # required
},
metrics: {
"__string" => {
comparison_operator: "__string", # required
value: 1.0, # required
},
},
},
filter_type: "SYSTEM", # required, accepts SYSTEM, ENDPOINT
},
frequency: "ONCE", # accepts ONCE, HOURLY, DAILY, WEEKLY, MONTHLY, EVENT
is_local_time: false,
quiet_time: {
end: "__string",
start: "__string",
},
start_time: "__string", # required
timezone: "__string",
},
segment_id: "__string",
segment_version: 1,
tags: {
"__string" => "__string",
},
template_configuration: {
email_template: {
name: "__string",
version: "__string",
},
push_template: {
name: "__string",
version: "__string",
},
sms_template: {
name: "__string",
version: "__string",
},
voice_template: {
name: "__string",
version: "__string",
},
},
treatment_description: "__string",
treatment_name: "__string",
}
Specifies the configuration and other settings for a campaign.
Instance Attribute Summary collapse
-
#additional_treatments ⇒ Array<Types::WriteTreatmentResource>
An array of requests that defines additional treatments for the campaign, in addition to the default treatment for the campaign.
-
#description ⇒ String
A custom description of the campaign.
-
#holdout_percent ⇒ Integer
The allocated percentage of users (segment members) who shouldn’t receive messages from the campaign.
-
#hook ⇒ Types::CampaignHook
The settings for the AWS Lambda function to use as a code hook for the campaign.
-
#is_paused ⇒ Boolean
Specifies whether to pause the campaign.
-
#limits ⇒ Types::CampaignLimits
The messaging limits for the campaign.
-
#message_configuration ⇒ Types::MessageConfiguration
The message configuration settings for the campaign.
-
#name ⇒ String
A custom name for the campaign.
-
#schedule ⇒ Types::Schedule
The schedule settings for the campaign.
-
#segment_id ⇒ String
The unique identifier for the segment to associate with the campaign.
-
#segment_version ⇒ Integer
The version of the segment to associate with the campaign.
-
#tags ⇒ Hash<String,String>
A string-to-string map of key-value pairs that defines the tags to associate with the campaign.
-
#template_configuration ⇒ Types::TemplateConfiguration
The message template to use for the campaign.
-
#treatment_description ⇒ String
A custom description of a variation of the campaign to use for A/B testing.
-
#treatment_name ⇒ String
A custom name for a variation of the campaign to use for A/B testing.
Instance Attribute Details
#additional_treatments ⇒ Array<Types::WriteTreatmentResource>
An array of requests that defines additional treatments for the campaign, in addition to the default treatment for the campaign.
17932 17933 17934 17935 17936 17937 17938 17939 17940 17941 17942 17943 17944 17945 17946 17947 17948 17949 |
# File 'lib/aws-sdk-pinpoint/types.rb', line 17932 class WriteCampaignRequest < Struct.new( :additional_treatments, :description, :holdout_percent, :hook, :is_paused, :limits, :message_configuration, :name, :schedule, :segment_id, :segment_version, :tags, :template_configuration, :treatment_description, :treatment_name) include Aws::Structure end |
#description ⇒ String
A custom description of the campaign.
17932 17933 17934 17935 17936 17937 17938 17939 17940 17941 17942 17943 17944 17945 17946 17947 17948 17949 |
# File 'lib/aws-sdk-pinpoint/types.rb', line 17932 class WriteCampaignRequest < Struct.new( :additional_treatments, :description, :holdout_percent, :hook, :is_paused, :limits, :message_configuration, :name, :schedule, :segment_id, :segment_version, :tags, :template_configuration, :treatment_description, :treatment_name) include Aws::Structure end |
#holdout_percent ⇒ Integer
The allocated percentage of users (segment members) who shouldn’t receive messages from the campaign.
17932 17933 17934 17935 17936 17937 17938 17939 17940 17941 17942 17943 17944 17945 17946 17947 17948 17949 |
# File 'lib/aws-sdk-pinpoint/types.rb', line 17932 class WriteCampaignRequest < Struct.new( :additional_treatments, :description, :holdout_percent, :hook, :is_paused, :limits, :message_configuration, :name, :schedule, :segment_id, :segment_version, :tags, :template_configuration, :treatment_description, :treatment_name) include Aws::Structure end |
#hook ⇒ Types::CampaignHook
The settings for the AWS Lambda function to use as a code hook for the campaign.
17932 17933 17934 17935 17936 17937 17938 17939 17940 17941 17942 17943 17944 17945 17946 17947 17948 17949 |
# File 'lib/aws-sdk-pinpoint/types.rb', line 17932 class WriteCampaignRequest < Struct.new( :additional_treatments, :description, :holdout_percent, :hook, :is_paused, :limits, :message_configuration, :name, :schedule, :segment_id, :segment_version, :tags, :template_configuration, :treatment_description, :treatment_name) include Aws::Structure end |
#is_paused ⇒ Boolean
Specifies whether to pause the campaign. A paused campaign doesn’t run unless you resume it by setting this value to false.
17932 17933 17934 17935 17936 17937 17938 17939 17940 17941 17942 17943 17944 17945 17946 17947 17948 17949 |
# File 'lib/aws-sdk-pinpoint/types.rb', line 17932 class WriteCampaignRequest < Struct.new( :additional_treatments, :description, :holdout_percent, :hook, :is_paused, :limits, :message_configuration, :name, :schedule, :segment_id, :segment_version, :tags, :template_configuration, :treatment_description, :treatment_name) include Aws::Structure end |
#limits ⇒ Types::CampaignLimits
The messaging limits for the campaign.
17932 17933 17934 17935 17936 17937 17938 17939 17940 17941 17942 17943 17944 17945 17946 17947 17948 17949 |
# File 'lib/aws-sdk-pinpoint/types.rb', line 17932 class WriteCampaignRequest < Struct.new( :additional_treatments, :description, :holdout_percent, :hook, :is_paused, :limits, :message_configuration, :name, :schedule, :segment_id, :segment_version, :tags, :template_configuration, :treatment_description, :treatment_name) include Aws::Structure end |
#message_configuration ⇒ Types::MessageConfiguration
The message configuration settings for the campaign.
17932 17933 17934 17935 17936 17937 17938 17939 17940 17941 17942 17943 17944 17945 17946 17947 17948 17949 |
# File 'lib/aws-sdk-pinpoint/types.rb', line 17932 class WriteCampaignRequest < Struct.new( :additional_treatments, :description, :holdout_percent, :hook, :is_paused, :limits, :message_configuration, :name, :schedule, :segment_id, :segment_version, :tags, :template_configuration, :treatment_description, :treatment_name) include Aws::Structure end |
#name ⇒ String
A custom name for the campaign.
17932 17933 17934 17935 17936 17937 17938 17939 17940 17941 17942 17943 17944 17945 17946 17947 17948 17949 |
# File 'lib/aws-sdk-pinpoint/types.rb', line 17932 class WriteCampaignRequest < Struct.new( :additional_treatments, :description, :holdout_percent, :hook, :is_paused, :limits, :message_configuration, :name, :schedule, :segment_id, :segment_version, :tags, :template_configuration, :treatment_description, :treatment_name) include Aws::Structure end |
#schedule ⇒ Types::Schedule
The schedule settings for the campaign.
17932 17933 17934 17935 17936 17937 17938 17939 17940 17941 17942 17943 17944 17945 17946 17947 17948 17949 |
# File 'lib/aws-sdk-pinpoint/types.rb', line 17932 class WriteCampaignRequest < Struct.new( :additional_treatments, :description, :holdout_percent, :hook, :is_paused, :limits, :message_configuration, :name, :schedule, :segment_id, :segment_version, :tags, :template_configuration, :treatment_description, :treatment_name) include Aws::Structure end |
#segment_id ⇒ String
The unique identifier for the segment to associate with the campaign.
17932 17933 17934 17935 17936 17937 17938 17939 17940 17941 17942 17943 17944 17945 17946 17947 17948 17949 |
# File 'lib/aws-sdk-pinpoint/types.rb', line 17932 class WriteCampaignRequest < Struct.new( :additional_treatments, :description, :holdout_percent, :hook, :is_paused, :limits, :message_configuration, :name, :schedule, :segment_id, :segment_version, :tags, :template_configuration, :treatment_description, :treatment_name) include Aws::Structure end |
#segment_version ⇒ Integer
The version of the segment to associate with the campaign.
17932 17933 17934 17935 17936 17937 17938 17939 17940 17941 17942 17943 17944 17945 17946 17947 17948 17949 |
# File 'lib/aws-sdk-pinpoint/types.rb', line 17932 class WriteCampaignRequest < Struct.new( :additional_treatments, :description, :holdout_percent, :hook, :is_paused, :limits, :message_configuration, :name, :schedule, :segment_id, :segment_version, :tags, :template_configuration, :treatment_description, :treatment_name) include Aws::Structure end |
#tags ⇒ Hash<String,String>
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.
17932 17933 17934 17935 17936 17937 17938 17939 17940 17941 17942 17943 17944 17945 17946 17947 17948 17949 |
# File 'lib/aws-sdk-pinpoint/types.rb', line 17932 class WriteCampaignRequest < Struct.new( :additional_treatments, :description, :holdout_percent, :hook, :is_paused, :limits, :message_configuration, :name, :schedule, :segment_id, :segment_version, :tags, :template_configuration, :treatment_description, :treatment_name) include Aws::Structure end |
#template_configuration ⇒ Types::TemplateConfiguration
The message template to use for the campaign.
17932 17933 17934 17935 17936 17937 17938 17939 17940 17941 17942 17943 17944 17945 17946 17947 17948 17949 |
# File 'lib/aws-sdk-pinpoint/types.rb', line 17932 class WriteCampaignRequest < Struct.new( :additional_treatments, :description, :holdout_percent, :hook, :is_paused, :limits, :message_configuration, :name, :schedule, :segment_id, :segment_version, :tags, :template_configuration, :treatment_description, :treatment_name) include Aws::Structure end |
#treatment_description ⇒ String
A custom description of a variation of the campaign to use for A/B testing.
17932 17933 17934 17935 17936 17937 17938 17939 17940 17941 17942 17943 17944 17945 17946 17947 17948 17949 |
# File 'lib/aws-sdk-pinpoint/types.rb', line 17932 class WriteCampaignRequest < Struct.new( :additional_treatments, :description, :holdout_percent, :hook, :is_paused, :limits, :message_configuration, :name, :schedule, :segment_id, :segment_version, :tags, :template_configuration, :treatment_description, :treatment_name) include Aws::Structure end |
#treatment_name ⇒ String
A custom name for a variation of the campaign to use for A/B testing.
17932 17933 17934 17935 17936 17937 17938 17939 17940 17941 17942 17943 17944 17945 17946 17947 17948 17949 |
# File 'lib/aws-sdk-pinpoint/types.rb', line 17932 class WriteCampaignRequest < Struct.new( :additional_treatments, :description, :holdout_percent, :hook, :is_paused, :limits, :message_configuration, :name, :schedule, :segment_id, :segment_version, :tags, :template_configuration, :treatment_description, :treatment_name) include Aws::Structure end |