Jump to Content

This API Documentation is now deprecated

We are excited to announce our new API Documentation.

Class ListIdentitiesCommandProtected

Returns a list containing all of the identities (email addresses and domains) for your Amazon Web Services account in the current Amazon Web Services Region, regardless of verification status.

You can execute this operation no more than once per second.

It's recommended that for successive pagination calls of this API, you continue to the use the same parameter/value pairs as used in the original call, e.g., if you used IdentityType=Domain in the the original call and received a NextToken in the response, you should continue providing the IdentityType=Domain parameter for further NextToken calls; however, if you didn't provide the IdentityType parameter in the original call, then continue to not provide it for successive pagination calls. Using this protocol will ensure consistent results.

Example

Use a bare-bones client and the command you need to make an API call.

import { SESClient, ListIdentitiesCommand } from "@aws-sdk/client-ses"; // ES Modules import
// const { SESClient, ListIdentitiesCommand } = require("@aws-sdk/client-ses"); // CommonJS import
const client = new SESClient(config);
const input = { // ListIdentitiesRequest
IdentityType: "EmailAddress" || "Domain",
NextToken: "STRING_VALUE",
MaxItems: Number("int"),
};
const command = new ListIdentitiesCommand(input);
const response = await client.send(command);
// { // ListIdentitiesResponse
// Identities: [ // IdentityList // required
// "STRING_VALUE",
// ],
// NextToken: "STRING_VALUE",
// };

Param

ListIdentitiesCommandInput

Returns

ListIdentitiesCommandOutput

See

Throws

SESServiceException

Base exception class for all service exceptions from SES service.

Example

ListIdentities

// The following example lists the email address identities that have been submitted for verification with Amazon SES:
const input = {
"IdentityType": "EmailAddress",
"MaxItems": 123,
"NextToken": ""
};
const command = new ListIdentitiesCommand(input);
const response = await client.send(command);
/* response ==
{
"Identities": [
"user@example.com"
],
"NextToken": ""
}
*/
// example id: listidentities-1469048638493

Hierarchy

Constructors

Properties

Methods

Constructors

Properties

Methods