Jump to Content

Class GetTemplateCommandProtected

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.

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

Param

GetTemplateCommandInput

Returns

GetTemplateCommandOutput

See

Throws

TemplateDoesNotExistException (client fault)

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

Hierarchy

Constructors

Properties

middlewareStack: MiddlewareStack<GetTemplateCommandInput, GetTemplateCommandOutput>

Methods