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 and either an HTML part or a text-only part.

Required: No

Type: Template

Update requires: No interruption

Return values

Fn::GetAtt

Examples

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

JSON

{ "AWSTemplateFormatVersion": "2010-09-09", "Description": "AWS 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: AWS 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