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

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

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-ses/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)


5156
5157
5158
5159
5160
5161
5162
# File 'gems/aws-sdk-ses/lib/aws-sdk-ses/types.rb', line 5156

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)


5156
5157
5158
5159
5160
5161
5162
# File 'gems/aws-sdk-ses/lib/aws-sdk-ses/types.rb', line 5156

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)


5156
5157
5158
5159
5160
5161
5162
# File 'gems/aws-sdk-ses/lib/aws-sdk-ses/types.rb', line 5156

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)


5156
5157
5158
5159
5160
5161
5162
# File 'gems/aws-sdk-ses/lib/aws-sdk-ses/types.rb', line 5156

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