TemplateArgs

data class TemplateArgs(val html: Output<String>? = null, val name: Output<String>? = null, val subject: Output<String>? = null, val text: Output<String>? = null) : ConvertibleToJava<TemplateArgs>

Provides a resource to create a SES template.

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.ses.Template;
import com.pulumi.aws.ses.TemplateArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var myTemplate = new Template("myTemplate", TemplateArgs.builder()
.html("<h1>Hello {{name}},</h1><p>Your favorite animal is {{favoriteanimal}}.</p>")
.subject("Greetings, {{name}}!")
.text("""
Hello {{name}},
Your favorite animal is {{favoriteanimal}}.
""")
.build());
}
}

Import

SES templates can be imported using the template name, e.g.,

$ pulumi import aws:ses/template:Template MyTemplate MyTemplate

Constructors

Link copied to clipboard
constructor(html: Output<String>? = null, name: Output<String>? = null, subject: Output<String>? = null, text: Output<String>? = null)

Properties

Link copied to clipboard
val html: Output<String>? = null

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

Link copied to clipboard
val name: Output<String>? = null

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

Link copied to clipboard
val subject: Output<String>? = null

The subject line of the email.

Link copied to clipboard
val text: Output<String>? = null

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.

Functions

Link copied to clipboard
open override fun toJava(): TemplateArgs