@Generated(value="jsii-pacmak/1.57.0 (build f614666)", date="2022-04-22T09:30:49.752Z") @Stability(value=Stable) public class CfnEmailTemplate extends CfnResource implements IInspectable
Creates a message template that you can use in messages that are sent through the email channel. A message template is a set of content and settings that you can define, save, and reuse in messages for any of your Amazon Pinpoint applications.
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import software.amazon.awscdk.services.pinpoint.*; Object tags; CfnEmailTemplate cfnEmailTemplate = CfnEmailTemplate.Builder.create(this, "MyCfnEmailTemplate") .subject("subject") .templateName("templateName") // the properties below are optional .defaultSubstitutions("defaultSubstitutions") .htmlPart("htmlPart") .tags(tags) .templateDescription("templateDescription") .textPart("textPart") .build();
Modifier and Type | Class and Description |
---|---|
static class |
CfnEmailTemplate.Builder
A fluent builder for
CfnEmailTemplate . |
software.amazon.jsii.JsiiObject.InitializationMode
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy
Modifier and Type | Field and Description |
---|---|
static String |
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
|
Modifier | Constructor and Description |
---|---|
|
CfnEmailTemplate(software.constructs.Construct scope,
String id,
CfnEmailTemplateProps props)
Create a new `AWS::Pinpoint::EmailTemplate`.
|
protected |
CfnEmailTemplate(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CfnEmailTemplate(software.amazon.jsii.JsiiObjectRef objRef) |
Modifier and Type | Method and Description |
---|---|
String |
getAttrArn()
The Amazon Resource Name (ARN) of the message template.
|
protected Map<String,Object> |
getCfnProperties() |
String |
getDefaultSubstitutions()
A JSON object that specifies the default values to use for message variables in the message template.
|
String |
getHtmlPart()
The message body, in HTML format, to use in email messages that are based on the message template.
|
String |
getSubject()
The subject line, or title, to use in email messages that are based on the message template.
|
TagManager |
getTags()
An array of key-value pairs to apply to this resource.
|
String |
getTemplateDescription()
A custom description of the message template.
|
String |
getTemplateName()
The name of the message template.
|
String |
getTextPart()
The message body, in plain text format, to use in email messages that are based on the message template.
|
void |
inspect(TreeInspector inspector)
Examines the CloudFormation resource and discloses attributes.
|
protected Map<String,Object> |
renderProperties(Map<String,Object> props) |
void |
setDefaultSubstitutions(String value)
A JSON object that specifies the default values to use for message variables in the message template.
|
void |
setHtmlPart(String value)
The message body, in HTML format, to use in email messages that are based on the message template.
|
void |
setSubject(String value)
The subject line, or title, to use in email messages that are based on the message template.
|
void |
setTemplateDescription(String value)
A custom description of the message template.
|
void |
setTemplateName(String value)
The name of the message template.
|
void |
setTextPart(String value)
The message body, in plain text format, to use in email messages that are based on the message template.
|
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, isCfnResource, shouldSynthesize, toString, validateProperties
getRef
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
@Stability(value=Stable) public static final String CFN_RESOURCE_TYPE_NAME
protected CfnEmailTemplate(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnEmailTemplate(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable) public CfnEmailTemplate(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnEmailTemplateProps props)
scope
- - scope in which this resource is defined. This parameter is required.id
- - scoped id of the resource. This parameter is required.props
- - resource properties. This parameter is required.@Stability(value=Stable) public void inspect(@NotNull TreeInspector inspector)
inspect
in interface IInspectable
inspector
- - tree inspector to collect and process attributes. This parameter is required.@Stability(value=Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String,Object> props)
renderProperties
in class CfnResource
props
- This parameter is required.@Stability(value=Stable) @NotNull public String getAttrArn()
@Stability(value=Stable) @NotNull protected Map<String,Object> getCfnProperties()
getCfnProperties
in class CfnResource
@Stability(value=Stable) @NotNull public TagManager getTags()
For more information, see Tag .
@Stability(value=Stable) @NotNull public String getSubject()
@Stability(value=Stable) public void setSubject(@NotNull String value)
@Stability(value=Stable) @NotNull public String getTemplateName()
@Stability(value=Stable) public void setTemplateName(@NotNull String value)
@Stability(value=Stable) @Nullable public String getDefaultSubstitutions()
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.
@Stability(value=Stable) public void setDefaultSubstitutions(@Nullable String value)
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.
@Stability(value=Stable) @Nullable public String getHtmlPart()
We recommend using HTML format for email clients that render HTML content. You can include links, formatted text, and more in an HTML message.
@Stability(value=Stable) public void setHtmlPart(@Nullable String value)
We recommend using HTML format for email clients that render HTML content. You can include links, formatted text, and more in an HTML message.
@Stability(value=Stable) @Nullable public String getTemplateDescription()
@Stability(value=Stable) public void setTemplateDescription(@Nullable String value)
@Stability(value=Stable) @Nullable public String getTextPart()
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.
@Stability(value=Stable) public void setTextPart(@Nullable String value)
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.
Copyright © 2022. All rights reserved.