Class: Aws::Pinpoint::Types::UpdateCampaignRequest

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

Overview

Note:

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

{
  application_id: "__string", # required
  campaign_id: "__string", # required
  write_campaign_request: { # required
    additional_treatments: [
      {
        message_configuration: {
          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,
            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,
            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,
            title: "__string",
            url: "__string",
          },
          sms_message: {
            body: "__string",
            message_type: "TRANSACTIONAL", # accepts TRANSACTIONAL, PROMOTIONAL
            sender_id: "__string",
          },
        },
        schedule: {
          end_time: "__string",
          frequency: "ONCE", # accepts ONCE, HOURLY, DAILY, WEEKLY, MONTHLY
          is_local_time: false,
          quiet_time: {
            end: "__string",
            start: "__string",
          },
          start_time: "__string",
          timezone: "__string",
        },
        size_percent: 1,
        treatment_description: "__string",
        treatment_name: "__string",
      },
    ],
    description: "__string",
    holdout_percent: 1,
    is_paused: false,
    limits: {
      daily: 1,
      total: 1,
    },
    message_configuration: {
      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,
        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,
        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,
        title: "__string",
        url: "__string",
      },
      sms_message: {
        body: "__string",
        message_type: "TRANSACTIONAL", # accepts TRANSACTIONAL, PROMOTIONAL
        sender_id: "__string",
      },
    },
    name: "__string",
    schedule: {
      end_time: "__string",
      frequency: "ONCE", # accepts ONCE, HOURLY, DAILY, WEEKLY, MONTHLY
      is_local_time: false,
      quiet_time: {
        end: "__string",
        start: "__string",
      },
      start_time: "__string",
      timezone: "__string",
    },
    segment_id: "__string",
    segment_version: 1,
    treatment_description: "__string",
    treatment_name: "__string",
  },
}

Instance Attribute Summary collapse

Instance Attribute Details

#application_idString

Returns:

  • (String)


4648
4649
4650
4651
4652
4653
# File 'lib/aws-sdk-pinpoint/types.rb', line 4648

class UpdateCampaignRequest < Struct.new(
  :application_id,
  :campaign_id,
  :write_campaign_request)
  include Aws::Structure
end

#campaign_idString

Returns:

  • (String)


4648
4649
4650
4651
4652
4653
# File 'lib/aws-sdk-pinpoint/types.rb', line 4648

class UpdateCampaignRequest < Struct.new(
  :application_id,
  :campaign_id,
  :write_campaign_request)
  include Aws::Structure
end

#write_campaign_requestTypes::WriteCampaignRequest

Used to create a campaign.



4648
4649
4650
4651
4652
4653
# File 'lib/aws-sdk-pinpoint/types.rb', line 4648

class UpdateCampaignRequest < Struct.new(
  :application_id,
  :campaign_id,
  :write_campaign_request)
  include Aws::Structure
end