Jump to Content

Class TestRenderTemplateCommandProtected

Creates a preview of the MIME content of an email when provided with a template and a set of replacement data.

You can execute this operation no more than once per second.

Example

Use a bare-bones client and the command you need to make an API call.

import { SESClient, TestRenderTemplateCommand } from "@aws-sdk/client-ses"; // ES Modules import
// const { SESClient, TestRenderTemplateCommand } = require("@aws-sdk/client-ses"); // CommonJS import
const client = new SESClient(config);
const input = {
TemplateName: "STRING_VALUE", // required
TemplateData: "STRING_VALUE", // required
};
const command = new TestRenderTemplateCommand(input);
const response = await client.send(command);

Param

TestRenderTemplateCommandInput

Returns

TestRenderTemplateCommandOutput

See

Throws

InvalidRenderingParameterException (client fault)

Indicates that one or more of the replacement values you provided is invalid. This error may occur when the TemplateData object contains invalid JSON.

Throws

MissingRenderingAttributeException (client fault)

Indicates that one or more of the replacement values for the specified template was not specified. Ensure that the TemplateData object contains references to all of the replacement tags in the specified template.

Throws

TemplateDoesNotExistException (client fault)

Indicates that the Template object you specified does not exist in your Amazon SES account.

Hierarchy

Constructors

Properties

Methods