interface TemplateProperty
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.SES.CfnTemplate.TemplateProperty |
Java | software.amazon.awscdk.services.ses.CfnTemplate.TemplateProperty |
Python | aws_cdk.aws_ses.CfnTemplate.TemplateProperty |
TypeScript | @aws-cdk/aws-ses » CfnTemplate » TemplateProperty |
The content of the email, composed of a subject line and either an HTML part or a text-only part.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as ses from '@aws-cdk/aws-ses';
const templateProperty: ses.CfnTemplate.TemplateProperty = {
subjectPart: 'subjectPart',
// the properties below are optional
htmlPart: 'htmlPart',
templateName: 'templateName',
textPart: 'textPart',
};
Properties
Name | Type | Description |
---|---|---|
subject | string | The subject line of the email. |
html | string | The HTML body of the email. |
template | string | The name of the template. |
text | string | The email body that is visible to recipients whose email clients do not display HTML content. |
subjectPart
Type:
string
The subject line of the email.
htmlPart?
Type:
string
(optional)
The HTML body of the email.
templateName?
Type:
string
(optional)
The name of the template.
textPart?
Type:
string
(optional)
The email body that is visible to recipients whose email clients do not display HTML content.