Class: Aws::Pinpoint::Types::CampaignInAppMessage

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 CampaignInAppMessage data as a hash:

{
  body: "__string",
  content: [
    {
      background_color: "__string",
      body_config: {
        alignment: "LEFT", # required, accepts LEFT, CENTER, RIGHT
        body: "__string", # required
        text_color: "__string", # required
      },
      header_config: {
        alignment: "LEFT", # required, accepts LEFT, CENTER, RIGHT
        header: "__string", # required
        text_color: "__string", # required
      },
      image_url: "__string",
      primary_btn: {
        android: {
          button_action: "LINK", # required, accepts LINK, DEEP_LINK, CLOSE
          link: "__string",
        },
        default_config: {
          background_color: "__string",
          border_radius: 1,
          button_action: "LINK", # required, accepts LINK, DEEP_LINK, CLOSE
          link: "__string",
          text: "__string", # required
          text_color: "__string",
        },
        ios: {
          button_action: "LINK", # required, accepts LINK, DEEP_LINK, CLOSE
          link: "__string",
        },
        web: {
          button_action: "LINK", # required, accepts LINK, DEEP_LINK, CLOSE
          link: "__string",
        },
      },
      secondary_btn: {
        android: {
          button_action: "LINK", # required, accepts LINK, DEEP_LINK, CLOSE
          link: "__string",
        },
        default_config: {
          background_color: "__string",
          border_radius: 1,
          button_action: "LINK", # required, accepts LINK, DEEP_LINK, CLOSE
          link: "__string",
          text: "__string", # required
          text_color: "__string",
        },
        ios: {
          button_action: "LINK", # required, accepts LINK, DEEP_LINK, CLOSE
          link: "__string",
        },
        web: {
          button_action: "LINK", # required, accepts LINK, DEEP_LINK, CLOSE
          link: "__string",
        },
      },
    },
  ],
  custom_config: {
    "__string" => "__string",
  },
  layout: "BOTTOM_BANNER", # accepts BOTTOM_BANNER, TOP_BANNER, OVERLAYS, MOBILE_FEED, MIDDLE_BANNER, CAROUSEL
}

In-app message configuration.

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#bodyString

The message body of the notification, the email body or the text message.

Returns:

  • (String)


2704
2705
2706
2707
2708
2709
2710
2711
# File 'gems/aws-sdk-pinpoint/lib/aws-sdk-pinpoint/types.rb', line 2704

class CampaignInAppMessage < Struct.new(
  :body,
  :content,
  :custom_config,
  :layout)
  SENSITIVE = []
  include Aws::Structure
end

#contentArray<Types::InAppMessageContent>

In-app message content.

Returns:



2704
2705
2706
2707
2708
2709
2710
2711
# File 'gems/aws-sdk-pinpoint/lib/aws-sdk-pinpoint/types.rb', line 2704

class CampaignInAppMessage < Struct.new(
  :body,
  :content,
  :custom_config,
  :layout)
  SENSITIVE = []
  include Aws::Structure
end

#custom_configHash<String,String>

Custom config to be sent to client.

Returns:

  • (Hash<String,String>)


2704
2705
2706
2707
2708
2709
2710
2711
# File 'gems/aws-sdk-pinpoint/lib/aws-sdk-pinpoint/types.rb', line 2704

class CampaignInAppMessage < Struct.new(
  :body,
  :content,
  :custom_config,
  :layout)
  SENSITIVE = []
  include Aws::Structure
end

#layoutString

In-app message layout.

Returns:

  • (String)


2704
2705
2706
2707
2708
2709
2710
2711
# File 'gems/aws-sdk-pinpoint/lib/aws-sdk-pinpoint/types.rb', line 2704

class CampaignInAppMessage < Struct.new(
  :body,
  :content,
  :custom_config,
  :layout)
  SENSITIVE = []
  include Aws::Structure
end