AWS::SES::Template - AWS CloudFormation

AWS::SES::Template

Specifies an email template. Email templates enable you to send personalized email to one or more destinations in a single API operation.

Syntax

To declare this entity in your AWS CloudFormation template, use the following syntax:

JSON

{ "Type" : "AWS::SES::Template", "Properties" : { "Template" : Template } }

YAML

Type: AWS::SES::Template Properties: Template: Template

Properties

Template

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

Required: No

Type: Template

Update requires: No interruption

Examples

Specifies an email template, which is used when sending templated email messages.

JSON

{ "AWSTemplateFormatVersion": "2010-09-09", "Description": "Amazon SES Template Sample Template", "Parameters": { "TemplateName": { "Type": "String" }, "SubjectPart": { "Type": "String" }, "TextPart": { "Type": "String" }, "HtmlPart": { "Type": "String" } }, "Resources": { "Template": { "Type": "AWS::SES::Template", "Properties": { "Template": { "TemplateName": { "Ref": "TemplateName" }, "SubjectPart": { "Ref": "SubjectPart" }, "TextPart": { "Ref": "TextPart" }, "HtmlPart": { "Ref": "HtmlPart" } } } } } }

YAML

AWSTemplateFormatVersion: 2010-09-09 Description: Amazon SES Template Sample Template Parameters: TemplateName: Type: String SubjectPart: Type: String TextPart: Type: String HtmlPart: Type: String Resources: Template: Type: 'AWS::SES::Template' Properties: Template: TemplateName: !Ref TemplateName SubjectPart: !Ref SubjectPart TextPart: !Ref TextPart HtmlPart: !Ref HtmlPart