We recommend new projects start with resources from the AWS provider.
aws-native.ses.Template
Explore with Pulumi AI
We recommend new projects start with resources from the AWS provider.
Resource Type definition for AWS::SES::Template
Example Usage
Example
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AwsNative = Pulumi.AwsNative;
return await Deployment.RunAsync(() =>
{
var config = new Config();
var templateName = config.Require("templateName");
var subjectPart = config.Require("subjectPart");
var textPart = config.Require("textPart");
var htmlPart = config.Require("htmlPart");
var template = new AwsNative.Ses.Template("template", new()
{
TemplateValue = new AwsNative.Ses.Inputs.TemplateArgs
{
TemplateName = templateName,
SubjectPart = subjectPart,
TextPart = textPart,
HtmlPart = htmlPart,
},
});
});
package main
import (
"github.com/pulumi/pulumi-aws-native/sdk/go/aws/ses"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
cfg := config.New(ctx, "")
templateName := cfg.Require("templateName")
subjectPart := cfg.Require("subjectPart")
textPart := cfg.Require("textPart")
htmlPart := cfg.Require("htmlPart")
_, err := ses.NewTemplate(ctx, "template", &ses.TemplateArgs{
Template: &ses.TemplateTypeArgs{
TemplateName: pulumi.String(templateName),
SubjectPart: pulumi.String(subjectPart),
TextPart: pulumi.String(textPart),
HtmlPart: pulumi.String(htmlPart),
},
})
if err != nil {
return err
}
return nil
})
}
Coming soon!
import pulumi
import pulumi_aws_native as aws_native
config = pulumi.Config()
template_name = config.require("templateName")
subject_part = config.require("subjectPart")
text_part = config.require("textPart")
html_part = config.require("htmlPart")
template = aws_native.ses.Template("template", template={
"template_name": template_name,
"subject_part": subject_part,
"text_part": text_part,
"html_part": html_part,
})
import * as pulumi from "@pulumi/pulumi";
import * as aws_native from "@pulumi/aws-native";
const config = new pulumi.Config();
const templateName = config.require("templateName");
const subjectPart = config.require("subjectPart");
const textPart = config.require("textPart");
const htmlPart = config.require("htmlPart");
const template = new aws_native.ses.Template("template", {template: {
templateName: templateName,
subjectPart: subjectPart,
textPart: textPart,
htmlPart: htmlPart,
}});
Coming soon!
Example
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AwsNative = Pulumi.AwsNative;
return await Deployment.RunAsync(() =>
{
var config = new Config();
var templateName = config.Require("templateName");
var subjectPart = config.Require("subjectPart");
var textPart = config.Require("textPart");
var htmlPart = config.Require("htmlPart");
var template = new AwsNative.Ses.Template("template", new()
{
TemplateValue = new AwsNative.Ses.Inputs.TemplateArgs
{
TemplateName = templateName,
SubjectPart = subjectPart,
TextPart = textPart,
HtmlPart = htmlPart,
},
});
});
package main
import (
"github.com/pulumi/pulumi-aws-native/sdk/go/aws/ses"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
cfg := config.New(ctx, "")
templateName := cfg.Require("templateName")
subjectPart := cfg.Require("subjectPart")
textPart := cfg.Require("textPart")
htmlPart := cfg.Require("htmlPart")
_, err := ses.NewTemplate(ctx, "template", &ses.TemplateArgs{
Template: &ses.TemplateTypeArgs{
TemplateName: pulumi.String(templateName),
SubjectPart: pulumi.String(subjectPart),
TextPart: pulumi.String(textPart),
HtmlPart: pulumi.String(htmlPart),
},
})
if err != nil {
return err
}
return nil
})
}
Coming soon!
import pulumi
import pulumi_aws_native as aws_native
config = pulumi.Config()
template_name = config.require("templateName")
subject_part = config.require("subjectPart")
text_part = config.require("textPart")
html_part = config.require("htmlPart")
template = aws_native.ses.Template("template", template={
"template_name": template_name,
"subject_part": subject_part,
"text_part": text_part,
"html_part": html_part,
})
import * as pulumi from "@pulumi/pulumi";
import * as aws_native from "@pulumi/aws-native";
const config = new pulumi.Config();
const templateName = config.require("templateName");
const subjectPart = config.require("subjectPart");
const textPart = config.require("textPart");
const htmlPart = config.require("htmlPart");
const template = new aws_native.ses.Template("template", {template: {
templateName: templateName,
subjectPart: subjectPart,
textPart: textPart,
htmlPart: htmlPart,
}});
Coming soon!
Create Template Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Template(name: string, args?: TemplateArgs, opts?: CustomResourceOptions);
@overload
def Template(resource_name: str,
args: Optional[TemplateInitArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def Template(resource_name: str,
opts: Optional[ResourceOptions] = None,
template: Optional[TemplateArgs] = None)
func NewTemplate(ctx *Context, name string, args *TemplateArgs, opts ...ResourceOption) (*Template, error)
public Template(string name, TemplateArgs? args = null, CustomResourceOptions? opts = null)
public Template(String name, TemplateArgs args)
public Template(String name, TemplateArgs args, CustomResourceOptions options)
type: aws-native:ses:Template
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args TemplateArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args TemplateInitArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args TemplateArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args TemplateArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args TemplateArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Template Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The Template resource accepts the following input properties:
- Template
Value Pulumi.Aws Native. Ses. Inputs. Template - The content of the email, composed of a subject line and either an HTML part or a text-only part.
- Template
Template
Type Args - The content of the email, composed of a subject line and either an HTML part or a text-only part.
- template
Template
Args - The content of the email, composed of a subject line and either an HTML part or a text-only part.
- template Property Map
- The content of the email, composed of a subject line and either an HTML part or a text-only part.
Outputs
All input properties are implicitly available as output properties. Additionally, the Template resource produces the following output properties:
Supporting Types
Template, TemplateArgs
- Subject
Part string - The subject line of the email.
- Html
Part string - The HTML body of the email.
- Template
Name string - The name of the template.
- Text
Part string - The email body that is visible to recipients whose email clients do not display HTML content.
- Subject
Part string - The subject line of the email.
- Html
Part string - The HTML body of the email.
- Template
Name string - The name of the template.
- Text
Part string - The email body that is visible to recipients whose email clients do not display HTML content.
- subject
Part String - The subject line of the email.
- html
Part String - The HTML body of the email.
- template
Name String - The name of the template.
- text
Part String - The email body that is visible to recipients whose email clients do not display HTML content.
- subject
Part string - The subject line of the email.
- html
Part string - The HTML body of the email.
- template
Name string - The name of the template.
- text
Part string - The email body that is visible to recipients whose email clients do not display HTML content.
- subject_
part str - The subject line of the email.
- html_
part str - The HTML body of the email.
- template_
name str - The name of the template.
- text_
part str - The email body that is visible to recipients whose email clients do not display HTML content.
- subject
Part String - The subject line of the email.
- html
Part String - The HTML body of the email.
- template
Name String - The name of the template.
- text
Part String - The email body that is visible to recipients whose email clients do not display HTML content.
Package Details
- Repository
- AWS Native pulumi/pulumi-aws-native
- License
- Apache-2.0
We recommend new projects start with resources from the AWS provider.