@Stability(value=Stable) public static final class CfnEmailTemplate.Builder extends Object implements software.amazon.jsii.Builder<CfnEmailTemplate>
CfnEmailTemplate.| Modifier and Type | Method and Description |
|---|---|
CfnEmailTemplate |
build() |
static CfnEmailTemplate.Builder |
create(software.constructs.Construct scope,
String id) |
CfnEmailTemplate.Builder |
defaultSubstitutions(String defaultSubstitutions)
A JSON object that specifies the default values to use for message variables in the message template.
|
CfnEmailTemplate.Builder |
htmlPart(String htmlPart)
The message body, in HTML format, to use in email messages that are based on the message template.
|
CfnEmailTemplate.Builder |
subject(String subject)
The subject line, or title, to use in email messages that are based on the message template.
|
CfnEmailTemplate.Builder |
tags(Object tags)
An array of key-value pairs to apply to this resource.
|
CfnEmailTemplate.Builder |
templateDescription(String templateDescription)
A custom description of the message template.
|
CfnEmailTemplate.Builder |
templateName(String templateName)
The name of the message template.
|
CfnEmailTemplate.Builder |
textPart(String textPart)
The message body, in plain text format, to use in email messages that are based on the message template.
|
@Stability(value=Stable) public static CfnEmailTemplate.Builder create(software.constructs.Construct scope, String id)
scope - - scope in which this resource is defined. This parameter is required.id - - scoped id of the resource. This parameter is required.CfnEmailTemplate.Builder.@Stability(value=Stable) public CfnEmailTemplate.Builder subject(String subject)
subject - The subject line, or title, to use in email messages that are based on the message template. This parameter is required.this@Stability(value=Stable) public CfnEmailTemplate.Builder templateName(String templateName)
templateName - The name of the message template. This parameter is required.this@Stability(value=Stable) public CfnEmailTemplate.Builder defaultSubstitutions(String defaultSubstitutions)
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.
defaultSubstitutions - A JSON object that specifies the default values to use for message variables in the message template. This parameter is required.this@Stability(value=Stable) public CfnEmailTemplate.Builder htmlPart(String htmlPart)
We recommend using HTML format for email clients that render HTML content. You can include links, formatted text, and more in an HTML message.
htmlPart - The message body, in HTML format, to use in email messages that are based on the message template. This parameter is required.this@Stability(value=Stable) public CfnEmailTemplate.Builder tags(Object tags)
For more information, see Tag .
tags - An array of key-value pairs to apply to this resource. This parameter is required.this@Stability(value=Stable) public CfnEmailTemplate.Builder templateDescription(String templateDescription)
templateDescription - A custom description of the message template. This parameter is required.this@Stability(value=Stable) public CfnEmailTemplate.Builder textPart(String textPart)
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.
textPart - The message body, in plain text format, to use in email messages that are based on the message template. This parameter is required.this@Stability(value=Stable) public CfnEmailTemplate build()
build in interface software.amazon.jsii.Builder<CfnEmailTemplate>Copyright © 2022. All rights reserved.