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}}.
",
});
}
}
Inherited Members
Namespace: Pulumi.Aws.Ses
Assembly: Pulumi.Aws.dll
Syntax
public class Template : CustomResource
Constructors
View SourceTemplate(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 SourceHtml
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> |
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> |
Subject
The subject line of the email.
Declaration
public Output<string> Subject { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
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 SourceGet(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 |