Jump to Content

This API Documentation is now deprecated

We are excited to announce our new API Documentation.

Class ListTemplatesCommandProtected

Lists the email templates present in your Amazon SES account in the current Amazon Web Services Region.

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, ListTemplatesCommand } from "@aws-sdk/client-ses"; // ES Modules import
// const { SESClient, ListTemplatesCommand } = require("@aws-sdk/client-ses"); // CommonJS import
const client = new SESClient(config);
const input = { // ListTemplatesRequest
NextToken: "STRING_VALUE",
MaxItems: Number("int"),
};
const command = new ListTemplatesCommand(input);
const response = await client.send(command);
// { // ListTemplatesResponse
// TemplatesMetadata: [ // TemplateMetadataList
// { // TemplateMetadata
// Name: "STRING_VALUE",
// CreatedTimestamp: new Date("TIMESTAMP"),
// },
// ],
// NextToken: "STRING_VALUE",
// };

Param

ListTemplatesCommandInput

Returns

ListTemplatesCommandOutput

See

Throws

SESServiceException

Base exception class for all service exceptions from SES service.

Hierarchy

Constructors

Properties

Methods

Constructors

Properties

Methods