Jump to Content

Class DeleteIdentityPolicyCommandProtected

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

This API is for the identity owner only. If you have not verified the identity, this API will return 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 command = new DeleteIdentityPolicyCommand(input);
const response = await client.send(command);

Param

DeleteIdentityPolicyCommandInput

Returns

DeleteIdentityPolicyCommandOutput

See

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