interface CfnEmailTemplateProps
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.Pinpoint.CfnEmailTemplateProps |
![]() | github.com/aws/aws-cdk-go/awscdk/v2/awspinpoint#CfnEmailTemplateProps |
![]() | software.amazon.awscdk.services.pinpoint.CfnEmailTemplateProps |
![]() | aws_cdk.aws_pinpoint.CfnEmailTemplateProps |
![]() | aws-cdk-lib » aws_pinpoint » CfnEmailTemplateProps |
Properties for defining a CfnEmailTemplate
.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_pinpoint as pinpoint } from 'aws-cdk-lib';
declare const tags: any;
const cfnEmailTemplateProps: pinpoint.CfnEmailTemplateProps = {
subject: 'subject',
templateName: 'templateName',
// the properties below are optional
defaultSubstitutions: 'defaultSubstitutions',
htmlPart: 'htmlPart',
tags: tags,
templateDescription: 'templateDescription',
textPart: 'textPart',
};
Properties
Name | Type | Description |
---|---|---|
subject | string | The subject line, or title, to use in email messages that are based on the message template. |
template | string | The name of the message template. |
default | string | A JSON object that specifies the default values to use for message variables in the message template. |
html | string | The message body, in HTML format, to use in email messages that are based on the message template. |
tags? | any | An array of key-value pairs to apply to this resource. |
template | string | A custom description of the message template. |
text | string | The message body, in plain text format, to use in email messages that are based on the message template. |
subject
Type:
string
The subject line, or title, to use in email messages that are based on the message template.
templateName
Type:
string
The name of the message template.
defaultSubstitutions?
Type:
string
(optional)
A JSON object that specifies the default values to use for message variables in the message template.
This object is a set of key-value pairs. Each key defines a message variable in the template. The corresponding value defines the default value for that variable. When you create a message that's based on the template, you can override these defaults with message-specific and address-specific variables and values.
htmlPart?
Type:
string
(optional)
The message body, in HTML format, to use in email messages that are based on the message template.
We recommend using HTML format for email clients that render HTML content. You can include links, formatted text, and more in an HTML message.
tags?
Type:
any
(optional)
An array of key-value pairs to apply to this resource.
For more information, see Tag .
templateDescription?
Type:
string
(optional)
A custom description of the message template.
textPart?
Type:
string
(optional)
The message body, in plain text format, to use in email messages that are based on the message template.
We recommend using plain text format for email clients that don't render HTML content and clients that are connected to high-latency networks, such as mobile devices.