Class: Aws::SES::Types::Template

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

Overview

Note:

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

{
  template_name: "TemplateName", # required
  subject_part: "SubjectPart",
  text_part: "TextPart",
  html_part: "HtmlPart",
}

The content of the email, composed of a subject line, an HTML part, and a text-only part.

Instance Attribute Summary collapse

Instance Attribute Details

#html_partString

The HTML body of the email.

Returns:

  • (String)


5163
5164
5165
5166
5167
5168
5169
# File 'lib/aws-sdk-ses/types.rb', line 5163

class Template < Struct.new(
  :template_name,
  :subject_part,
  :text_part,
  :html_part)
  include Aws::Structure
end

#subject_partString

The subject line of the email.

Returns:

  • (String)


5163
5164
5165
5166
5167
5168
5169
# File 'lib/aws-sdk-ses/types.rb', line 5163

class Template < Struct.new(
  :template_name,
  :subject_part,
  :text_part,
  :html_part)
  include Aws::Structure
end

#template_nameString

The name of the template. You will refer to this name when you send email using the ‘SendTemplatedEmail` or `SendBulkTemplatedEmail` operations.

Returns:

  • (String)


5163
5164
5165
5166
5167
5168
5169
# File 'lib/aws-sdk-ses/types.rb', line 5163

class Template < Struct.new(
  :template_name,
  :subject_part,
  :text_part,
  :html_part)
  include Aws::Structure
end

#text_partString

The email body that will be visible to recipients whose email clients do not display HTML.

Returns:

  • (String)


5163
5164
5165
5166
5167
5168
5169
# File 'lib/aws-sdk-ses/types.rb', line 5163

class Template < Struct.new(
  :template_name,
  :subject_part,
  :text_part,
  :html_part)
  include Aws::Structure
end