Jump to Content

This API Documentation is now deprecated

We are excited to announce our new API Documentation.

Class DeleteIdentityCommandProtected

Deletes the specified identity (an email address or a domain) from the list of verified identities.

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, DeleteIdentityCommand } from "@aws-sdk/client-ses"; // ES Modules import
// const { SESClient, DeleteIdentityCommand } = require("@aws-sdk/client-ses"); // CommonJS import
const client = new SESClient(config);
const input = { // DeleteIdentityRequest
Identity: "STRING_VALUE", // required
};
const command = new DeleteIdentityCommand(input);
const response = await client.send(command);
// {};

Param

DeleteIdentityCommandInput

Returns

DeleteIdentityCommandOutput

See

Throws

SESServiceException

Base exception class for all service exceptions from SES service.

Example

DeleteIdentity

// The following example deletes an identity from the list of identities that have been submitted for verification with Amazon SES:
const input = {
"Identity": "user@example.com"
};
const command = new DeleteIdentityCommand(input);
await client.send(command);
// example id: deleteidentity-1469047858906

Hierarchy

Constructors

Properties

Methods

Constructors

Properties

Methods