Class: Aws::Pinpoint::Types::WriteTreatmentResource

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-pinpoint/lib/aws-sdk-pinpoint/types.rb

Overview

Note:

When making an API call, you may pass WriteTreatmentResource data as a hash:

{
  custom_delivery_configuration: {
    delivery_uri: "__string", # required
    endpoint_types: ["PUSH"], # accepts PUSH, GCM, APNS, APNS_SANDBOX, APNS_VOIP, APNS_VOIP_SANDBOX, ADM, SMS, VOICE, EMAIL, BAIDU, CUSTOM
  },
  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",
    },
    custom_message: {
      data: "__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",
}

Specifies the settings for a campaign treatment. A treatment is a variation of a campaign that's used for A/B testing of a campaign.

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#custom_delivery_configurationTypes::CustomDeliveryConfiguration

The delivery configuration settings for sending the treatment through a custom channel. This object is required if the MessageConfiguration object for the treatment specifies a CustomMessage object.



20005
20006
20007
20008
20009
20010
20011
20012
20013
20014
20015
# File 'gems/aws-sdk-pinpoint/lib/aws-sdk-pinpoint/types.rb', line 20005

class WriteTreatmentResource < Struct.new(
  :custom_delivery_configuration,
  :message_configuration,
  :schedule,
  :size_percent,
  :template_configuration,
  :treatment_description,
  :treatment_name)
  SENSITIVE = []
  include Aws::Structure
end

#message_configurationTypes::MessageConfiguration

The message configuration settings for the treatment.



20005
20006
20007
20008
20009
20010
20011
20012
20013
20014
20015
# File 'gems/aws-sdk-pinpoint/lib/aws-sdk-pinpoint/types.rb', line 20005

class WriteTreatmentResource < Struct.new(
  :custom_delivery_configuration,
  :message_configuration,
  :schedule,
  :size_percent,
  :template_configuration,
  :treatment_description,
  :treatment_name)
  SENSITIVE = []
  include Aws::Structure
end

#scheduleTypes::Schedule

The schedule settings for the treatment.

Returns:



20005
20006
20007
20008
20009
20010
20011
20012
20013
20014
20015
# File 'gems/aws-sdk-pinpoint/lib/aws-sdk-pinpoint/types.rb', line 20005

class WriteTreatmentResource < Struct.new(
  :custom_delivery_configuration,
  :message_configuration,
  :schedule,
  :size_percent,
  :template_configuration,
  :treatment_description,
  :treatment_name)
  SENSITIVE = []
  include Aws::Structure
end

#size_percentInteger

The allocated percentage of users (segment members) to send the treatment to.

Returns:

  • (Integer)


20005
20006
20007
20008
20009
20010
20011
20012
20013
20014
20015
# File 'gems/aws-sdk-pinpoint/lib/aws-sdk-pinpoint/types.rb', line 20005

class WriteTreatmentResource < Struct.new(
  :custom_delivery_configuration,
  :message_configuration,
  :schedule,
  :size_percent,
  :template_configuration,
  :treatment_description,
  :treatment_name)
  SENSITIVE = []
  include Aws::Structure
end

#template_configurationTypes::TemplateConfiguration

The message template to use for the treatment.



20005
20006
20007
20008
20009
20010
20011
20012
20013
20014
20015
# File 'gems/aws-sdk-pinpoint/lib/aws-sdk-pinpoint/types.rb', line 20005

class WriteTreatmentResource < Struct.new(
  :custom_delivery_configuration,
  :message_configuration,
  :schedule,
  :size_percent,
  :template_configuration,
  :treatment_description,
  :treatment_name)
  SENSITIVE = []
  include Aws::Structure
end

#treatment_descriptionString

A custom description of the treatment.

Returns:

  • (String)


20005
20006
20007
20008
20009
20010
20011
20012
20013
20014
20015
# File 'gems/aws-sdk-pinpoint/lib/aws-sdk-pinpoint/types.rb', line 20005

class WriteTreatmentResource < Struct.new(
  :custom_delivery_configuration,
  :message_configuration,
  :schedule,
  :size_percent,
  :template_configuration,
  :treatment_description,
  :treatment_name)
  SENSITIVE = []
  include Aws::Structure
end

#treatment_nameString

A custom name for the treatment.

Returns:

  • (String)


20005
20006
20007
20008
20009
20010
20011
20012
20013
20014
20015
# File 'gems/aws-sdk-pinpoint/lib/aws-sdk-pinpoint/types.rb', line 20005

class WriteTreatmentResource < Struct.new(
  :custom_delivery_configuration,
  :message_configuration,
  :schedule,
  :size_percent,
  :template_configuration,
  :treatment_description,
  :treatment_name)
  SENSITIVE = []
  include Aws::Structure
end