Class CfnTemplate.TemplateProperty
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.
Implements
Inherited Members
Namespace: Amazon.CDK.AWS.SES
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnTemplate.TemplateProperty : CfnTemplate.ITemplateProperty
Syntax (vb)
Public Class CfnTemplate.TemplateProperty Implements CfnTemplate.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
Constructors
TemplateProperty() | 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. |
Properties
HtmlPart | The HTML body of the email. |
SubjectPart | The subject line of the email. |
TemplateName | The name of the template. |
TextPart | The email body that is visible to recipients whose email clients do not display HTML content. |
Constructors
TemplateProperty()
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.
public TemplateProperty()
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"
};
Properties
HtmlPart
The HTML body of the email.
public string? HtmlPart { get; set; }
Property Value
Remarks
SubjectPart
The subject line of the email.
public string SubjectPart { get; set; }
Property Value
Remarks
TemplateName
The name of the template.
public string? TemplateName { get; set; }
Property Value
Remarks
You will refer to this name when you send email using the SendEmail
or SendBulkEmail
operations.
TextPart
The email body that is visible to recipients whose email clients do not display HTML content.
public string? TextPart { get; set; }