CfnTemplateProps Struct
Properties for defining a CfnTemplate.
Example
ts
// 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 cfnTemplateProps: ses.CfnTemplateProps = {
tags: [{
key: 'key',
value: 'value',
}],
template: {
subjectPart: 'subjectPart',
// the properties below are optional
htmlPart: 'htmlPart',
templateName: 'templateName',
textPart: 'textPart',
},
};
python
from aws_cdk import CfnTag
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_ses as ses
cfn_template_props = ses.CfnTemplateProps(
tags=[CfnTag(
key="key",
value="value"
)],
template=ses.CfnTemplate.TemplateProperty(
subject_part="subjectPart",
# the properties below are optional
html_part="htmlPart",
template_name="templateName",
text_part="textPart"
)
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.ses.*;
CfnTemplateProps cfnTemplateProps = CfnTemplateProps.builder()
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.template(TemplateProperty.builder()
.subjectPart("subjectPart")
// the properties below are optional
.htmlPart("htmlPart")
.templateName("templateName")
.textPart("textPart")
.build())
.build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.SES;
var cfnTemplateProps = new CfnTemplateProps {
Tags = new [] { new CfnTag {
Key = "key",
Value = "value"
} },
Template = new TemplateProperty {
SubjectPart = "subjectPart",
// the properties below are optional
HtmlPart = "htmlPart",
TemplateName = "templateName",
TextPart = "textPart"
}
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
cfnTemplateProps := &CfnTemplateProps{
Tags: []CfnTag{
&CfnTag{
Key: jsii.String("key"),
Value: jsii.String("value"),
},
},
Template: &TemplateProperty{
SubjectPart: jsii.String("subjectPart"),
// the properties below are optional
HtmlPart: jsii.String("htmlPart"),
TemplateName: jsii.String("templateName"),
TextPart: jsii.String("textPart"),
},
}
Properties
tagsoptionalCfnTag[]tagsoptionaltyping.List[CfnTag]tagsoptionalList<CfnTag>TagsoptionalCfnTag[]Tagsoptional*[]CfnTag#The tags (keys and values) associated with the email template.
templateoptionalIResolvable | CfnTemplate.TemplatePropertytemplateoptionaltyping.Union[IResolvable, TemplateProperty]templateoptionalIResolvableTemplateoptionalIResolvableTemplateoptionalinterface{}#The content of the email, composed of a subject line and either an HTML part or a text-only part.