We are excited to announce our new API Documentation.
Protected
Displays the template object (which includes the Subject line, HTML part and text part) for the template you specify.
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, GetTemplateCommand } from "@aws-sdk/client-ses"; // ES Modules import// const { SESClient, GetTemplateCommand } = require("@aws-sdk/client-ses"); // CommonJS importconst client = new SESClient(config);const input = { // GetTemplateRequest TemplateName: "STRING_VALUE", // required};const command = new GetTemplateCommand(input);const response = await client.send(command);// { // GetTemplateResponse// Template: { // Template// TemplateName: "STRING_VALUE", // required// SubjectPart: "STRING_VALUE",// TextPart: "STRING_VALUE",// HtmlPart: "STRING_VALUE",// },// };
GetTemplateCommandInput
GetTemplateCommandOutput
input
response
config
TemplateDoesNotExistException (client fault)
Indicates that the Template object you specified does not exist in your Amazon SES account.
SESServiceException
Base exception class for all service exceptions from SES service.
Readonly
Static
Displays the template object (which includes the Subject line, HTML part and text part) for the template you specify.
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
GetTemplateCommandInput
Returns
GetTemplateCommandOutput
See
input
shape.response
shape.config
shape.Throws
TemplateDoesNotExistException (client fault)
Indicates that the Template object you specified does not exist in your Amazon SES account.
Throws
SESServiceException
Base exception class for all service exceptions from SES service.