Show / Hide Table of Contents

Class Template

Provides a resource to create a SES template.

Example Usage

using Pulumi;
using Aws = Pulumi.Aws;

class MyStack : Stack
{
public MyStack()
{
    var myTemplate = new Aws.Ses.Template("myTemplate", new Aws.Ses.TemplateArgs
    {
        Html = "<h1>Hello {{name}},</h1><p>Your favorite animal is {{favoriteanimal}}.</p>",
        Subject = "Greetings, {{name}}!",
        Text = @"Hello {{name}},
Your favorite animal is {{favoriteanimal}}.
",
    });
}

}
Inheritance
System.Object
Resource
CustomResource
Template
Inherited Members
CustomResource.Id
Resource.GetResourceType()
Resource.GetResourceName()
Resource.Urn
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Pulumi.Aws.Ses
Assembly: Pulumi.Aws.dll
Syntax
public class Template : CustomResource

Constructors

View Source

Template(String, TemplateArgs, CustomResourceOptions)

Create a Template resource with the given unique name, arguments, and options.

Declaration
public Template(string name, TemplateArgs args = null, CustomResourceOptions options = null)
Parameters
Type Name Description
System.String name

The unique name of the resource

TemplateArgs args

The arguments used to populate this resource's properties

CustomResourceOptions options

A bag of options that control this resource's behavior

Properties

View Source

Html

The HTML body of the email. Must be less than 500KB in size, including both the text and HTML parts.

Declaration
public Output<string> Html { get; }
Property Value
Type Description
Output<System.String>
View Source

Name

The name of the template. Cannot exceed 64 characters. You will refer to this name when you send email.

Declaration
public Output<string> Name { get; }
Property Value
Type Description
Output<System.String>
View Source

Subject

The subject line of the email.

Declaration
public Output<string> Subject { get; }
Property Value
Type Description
Output<System.String>
View Source

Text

The email body that will be visible to recipients whose email clients do not display HTML. Must be less than 500KB in size, including both the text and HTML parts.

Declaration
public Output<string> Text { get; }
Property Value
Type Description
Output<System.String>

Methods

View Source

Get(String, Input<String>, TemplateState, CustomResourceOptions)

Get an existing Template resource's state with the given name, ID, and optional extra properties used to qualify the lookup.

Declaration
public static Template Get(string name, Input<string> id, TemplateState state = null, CustomResourceOptions options = null)
Parameters
Type Name Description
System.String name

The unique name of the resulting resource.

Input<System.String> id

The unique provider ID of the resource to lookup.

TemplateState state

Any extra arguments used during the lookup.

CustomResourceOptions options

A bag of options that control this resource's behavior

Returns
Type Description
Template
  • View Source
Back to top Copyright 2016-2020, Pulumi Corporation.