You are viewing documentation for version 3 of the AWS SDK for Ruby. Version 2 documentation can be found here.

Class: Aws::PinpointEmail::Types::Body

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

Overview

Note:

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

{
  text: {
    data: "MessageData", # required
    charset: "Charset",
  },
  html: {
    data: "MessageData", # required
    charset: "Charset",
  },
}

Represents the body of the email message.

Instance Attribute Summary collapse

Instance Attribute Details

#htmlTypes::Content

An object that represents the version of the message that is displayed in email clients that support HTML. HTML messages can include formatted text, hyperlinks, images, and more.

Returns:



68
69
70
71
72
# File 'gems/aws-sdk-pinpointemail/lib/aws-sdk-pinpointemail/types.rb', line 68

class Body < Struct.new(
  :text,
  :html)
  include Aws::Structure
end

#textTypes::Content

An object that represents the version of the message that is displayed in email clients that don't support HTML, or clients where the recipient has disabled HTML rendering.

Returns:



68
69
70
71
72
# File 'gems/aws-sdk-pinpointemail/lib/aws-sdk-pinpointemail/types.rb', line 68

class Body < Struct.new(
  :text,
  :html)
  include Aws::Structure
end