Amazon SES examples using SDK for JavaScript V3 - Amazon SDK for JavaScript
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China.

The Amazon SDK for JavaScript V3 API Reference Guide describes in detail all the API operations for the Amazon SDK for JavaScript version 3 (V3).

Starting October 1, 2022, Amazon SDK for JavaScript (v3) will end support for Internet Explorer 11 (IE 11). For details, see Announcing the end of support for Internet Explorer 11 in the Amazon SDK for JavaScript (v3).

Amazon SES examples using SDK for JavaScript V3

The following code examples show you how to perform actions and implement common scenarios by using the Amazon SDK for JavaScript V3 with Amazon SES.

Actions are code excerpts that show you how to call individual Amazon SES functions.

Scenarios are code examples that show you how to accomplish a specific task by calling multiple Amazon SES functions.

Each example includes a link to GitHub, where you can find instructions on how to set up and run the code in context.

Topics

Actions

The following code example shows how to list Amazon SES identities.

SDK for JavaScript V3
Tip

To learn how to set up and run this example, see GitHub.

import { ListIdentitiesCommand } from "@aws-sdk/client-ses"; import { sesClient } from "./libs/sesClient.js"; const createListIdentitiesCommand = () => new ListIdentitiesCommand({ IdentityType: "EmailAddress", MaxItems: 10 }); const run = async () => { const listIdentitiesCommmand = createListIdentitiesCommand(); try { return await sesClient.send(listIdentitiesCommmand); } catch (err) { console.log("Failed to list identities.", err); return err; } };
  • For API details, see ListIdentities in Amazon SDK for JavaScript API Reference.