Template

class Template : KotlinCustomResource

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

Properties

Link copied to clipboard
val arn: Output<String>

The ARN of the SES template

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

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 id: Output<String>
Link copied to clipboard
val name: Output<String>

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

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val subject: Output<String>?

The subject line of the email.

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

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.

Link copied to clipboard
val urn: Output<String>