Jump to Content

This API Documentation is now deprecated

We are excited to announce our new API Documentation.

Class DeleteIdentityPolicyCommandProtected

Deletes the specified sending authorization policy for the given identity (an email address or a domain). This operation returns successfully even if a policy with the specified name does not exist.

This operation is for the identity owner only. If you have not verified the identity, it returns an error.

Sending authorization is a feature that enables an identity owner to authorize other senders to use its identities. For information about using sending authorization, see the Amazon SES Developer Guide.

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

Param

DeleteIdentityPolicyCommandInput

Returns

DeleteIdentityPolicyCommandOutput

See

Throws

SESServiceException

Base exception class for all service exceptions from SES service.

Example

DeleteIdentityPolicy

// The following example deletes a sending authorization policy for an identity:
const input = {
"Identity": "user@example.com",
"PolicyName": "MyPolicy"
};
const command = new DeleteIdentityPolicyCommand(input);
await client.send(command);
// example id: deleteidentitypolicy-1469055282499

Hierarchy

Constructors

Properties

Methods

Constructors

Properties

Methods