aws-cdk-lib.aws_ses.CfnTemplate.TemplateProperty

interface TemplateProperty

LanguageType name
.NETAmazon.CDK.AWS.SES.CfnTemplate.TemplateProperty
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awsses#CfnTemplate_TemplateProperty
Javasoftware.amazon.awscdk.services.ses.CfnTemplate.TemplateProperty
Pythonaws_cdk.aws_ses.CfnTemplate.TemplateProperty
TypeScript aws-cdk-lib » 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 { aws_ses as ses } from 'aws-cdk-lib';
const templateProperty: ses.CfnTemplate.TemplateProperty = {
  subjectPart: 'subjectPart',

  // the properties below are optional
  htmlPart: 'htmlPart',
  templateName: 'templateName',
  textPart: 'textPart',
};

Properties

NameTypeDescription
subjectPartstringThe subject line of the email.
htmlPart?stringThe HTML body of the email.
templateName?stringThe name of the template.
textPart?stringThe 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.