Class: Aws::Pinpoint::Types::InAppMessageContent

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

{
  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",
    },
  },
}

The configuration for the message content.

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#background_colorString

The background color for the message.

Returns:

  • (String)


11326
11327
11328
11329
11330
11331
11332
11333
11334
11335
# File 'gems/aws-sdk-pinpoint/lib/aws-sdk-pinpoint/types.rb', line 11326

class InAppMessageContent < Struct.new(
  :background_color,
  :body_config,
  :header_config,
  :image_url,
  :primary_btn,
  :secondary_btn)
  SENSITIVE = []
  include Aws::Structure
end

#body_configTypes::InAppMessageBodyConfig

The configuration for the message body.



11326
11327
11328
11329
11330
11331
11332
11333
11334
11335
# File 'gems/aws-sdk-pinpoint/lib/aws-sdk-pinpoint/types.rb', line 11326

class InAppMessageContent < Struct.new(
  :background_color,
  :body_config,
  :header_config,
  :image_url,
  :primary_btn,
  :secondary_btn)
  SENSITIVE = []
  include Aws::Structure
end

#header_configTypes::InAppMessageHeaderConfig

The configuration for the message header.



11326
11327
11328
11329
11330
11331
11332
11333
11334
11335
# File 'gems/aws-sdk-pinpoint/lib/aws-sdk-pinpoint/types.rb', line 11326

class InAppMessageContent < Struct.new(
  :background_color,
  :body_config,
  :header_config,
  :image_url,
  :primary_btn,
  :secondary_btn)
  SENSITIVE = []
  include Aws::Structure
end

#image_urlString

The image url for the background of message.

Returns:

  • (String)


11326
11327
11328
11329
11330
11331
11332
11333
11334
11335
# File 'gems/aws-sdk-pinpoint/lib/aws-sdk-pinpoint/types.rb', line 11326

class InAppMessageContent < Struct.new(
  :background_color,
  :body_config,
  :header_config,
  :image_url,
  :primary_btn,
  :secondary_btn)
  SENSITIVE = []
  include Aws::Structure
end

#primary_btnTypes::InAppMessageButton

The first button inside the message.



11326
11327
11328
11329
11330
11331
11332
11333
11334
11335
# File 'gems/aws-sdk-pinpoint/lib/aws-sdk-pinpoint/types.rb', line 11326

class InAppMessageContent < Struct.new(
  :background_color,
  :body_config,
  :header_config,
  :image_url,
  :primary_btn,
  :secondary_btn)
  SENSITIVE = []
  include Aws::Structure
end

#secondary_btnTypes::InAppMessageButton

The second button inside message.



11326
11327
11328
11329
11330
11331
11332
11333
11334
11335
# File 'gems/aws-sdk-pinpoint/lib/aws-sdk-pinpoint/types.rb', line 11326

class InAppMessageContent < Struct.new(
  :background_color,
  :body_config,
  :header_config,
  :image_url,
  :primary_btn,
  :secondary_btn)
  SENSITIVE = []
  include Aws::Structure
end