1. Packages
  2. AWS Native
  3. API Docs
  4. ses
  5. Template

We recommend new projects start with resources from the AWS provider.

AWS Native v0.126.0 published on Monday, Sep 30, 2024 by Pulumi

aws-native.ses.Template

Explore with Pulumi AI

aws-native logo

We recommend new projects start with resources from the AWS provider.

AWS Native v0.126.0 published on Monday, Sep 30, 2024 by Pulumi

    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

    The Template resource accepts the following input properties:

    TemplateValue Pulumi.AwsNative.Ses.Inputs.Template
    The content of the email, composed of a subject line and either an HTML part or a text-only part.
    Template TemplateTypeArgs
    The content of the email, composed of a subject line and either an HTML part or a text-only part.
    template Template
    The content of the email, composed of a subject line and either an HTML part or a text-only part.
    template Template
    The content of the email, composed of a subject line and either an HTML part or a text-only part.
    template TemplateArgs
    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:

    AwsId string
    Id string
    The provider-assigned unique ID for this managed resource.
    AwsId string
    Id string
    The provider-assigned unique ID for this managed resource.
    awsId String
    id String
    The provider-assigned unique ID for this managed resource.
    awsId string
    id string
    The provider-assigned unique ID for this managed resource.
    aws_id str
    id str
    The provider-assigned unique ID for this managed resource.
    awsId String
    id String
    The provider-assigned unique ID for this managed resource.

    Supporting Types

    Template, TemplateArgs

    SubjectPart string
    The subject line of the email.
    HtmlPart string
    The HTML body of the email.
    TemplateName string
    The name of the template.
    TextPart string
    The email body that is visible to recipients whose email clients do not display HTML content.
    SubjectPart string
    The subject line of the email.
    HtmlPart string
    The HTML body of the email.
    TemplateName string
    The name of the template.
    TextPart string
    The email body that is visible to recipients whose email clients do not display HTML content.
    subjectPart String
    The subject line of the email.
    htmlPart String
    The HTML body of the email.
    templateName String
    The name of the template.
    textPart String
    The email body that is visible to recipients whose email clients do not display HTML content.
    subjectPart string
    The subject line of the email.
    htmlPart string
    The HTML body of the email.
    templateName string
    The name of the template.
    textPart 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.
    subjectPart String
    The subject line of the email.
    htmlPart String
    The HTML body of the email.
    templateName String
    The name of the template.
    textPart 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
    aws-native logo

    We recommend new projects start with resources from the AWS provider.

    AWS Native v0.126.0 published on Monday, Sep 30, 2024 by Pulumi