Class: Aws::Pinpoint::Types::InAppMessageContent
- Inherits:
-
Struct
- Object
- Struct
- Aws::Pinpoint::Types::InAppMessageContent
- 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
-
#background_color ⇒ String
The background color for the message.
-
#body_config ⇒ Types::InAppMessageBodyConfig
The configuration for the message body.
-
#header_config ⇒ Types::InAppMessageHeaderConfig
The configuration for the message header.
-
#image_url ⇒ String
The image url for the background of message.
-
#primary_btn ⇒ Types::InAppMessageButton
The first button inside the message.
-
#secondary_btn ⇒ Types::InAppMessageButton
The second button inside message.
Instance Attribute Details
#background_color ⇒ String
The background color for 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 |
#body_config ⇒ Types::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_config ⇒ Types::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_url ⇒ String
The image url for the background of 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 |
#primary_btn ⇒ Types::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_btn ⇒ Types::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 |