Protected
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.
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 importconst 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);
TestRenderTemplateCommandInput
TestRenderTemplateCommandOutput
input
response
config
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.
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.
TemplateDoesNotExistException (client fault)
Indicates that the Template object you specified does not exist in your Amazon SES account.
Readonly
Static
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.
Param
TestRenderTemplateCommandInput
Returns
TestRenderTemplateCommandOutput
See
input
shape.response
shape.config
shape.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.