Interface CfnTemplate.ITemplateProperty
An object that defines the email template to use for an email message, and the values to use for any message variables in that template.
Namespace: Amazon.CDK.AWS.SES
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface ITemplateProperty
Syntax (vb)
Public Interface ITemplateProperty
Remarks
An email template is a type of message template that contains content that you want to reuse in email messages that you send. You can specifiy the email template by providing the name or ARN of an email template previously saved in your Amazon SES account or by providing the full template content.
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.SES;
var templateProperty = new TemplateProperty {
SubjectPart = "subjectPart",
// the properties below are optional
HtmlPart = "htmlPart",
TemplateName = "templateName",
TextPart = "textPart"
};
Synopsis
Properties
Html |
The HTML body of the email. |
Subject |
The subject line of the email. |
Template |
The name of the template. |
Text |
The email body that is visible to recipients whose email clients do not display HTML content. |
Properties
HtmlPart
The HTML body of the email.
virtual string HtmlPart { get; }
Property Value
System.
Remarks
SubjectPart
The subject line of the email.
string SubjectPart { get; }
Property Value
System.
Remarks
TemplateName
The name of the template.
virtual string TemplateName { get; }
Property Value
System.
Remarks
You will refer to this name when you send email using the SendTemplatedEmail
or SendBulkTemplatedEmail
operations.
TextPart
The email body that is visible to recipients whose email clients do not display HTML content.
virtual string TextPart { get; }
Property Value
System.