Jump to Content

Class SetIdentityHeadersInNotificationsEnabledCommandProtected

Given an identity (an email address or a domain), sets whether Amazon SES includes the original email headers in the Amazon Simple Notification Service (Amazon SNS) notifications of a specified type.

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

For more information about using notifications with Amazon SES, see the Amazon SES Developer Guide.

Example

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

import { SESClient, SetIdentityHeadersInNotificationsEnabledCommand } from "@aws-sdk/client-ses"; // ES Modules import
// const { SESClient, SetIdentityHeadersInNotificationsEnabledCommand } = require("@aws-sdk/client-ses"); // CommonJS import
const client = new SESClient(config);
const command = new SetIdentityHeadersInNotificationsEnabledCommand(input);
const response = await client.send(command);

Param

SetIdentityHeadersInNotificationsEnabledCommandInput

Returns

SetIdentityHeadersInNotificationsEnabledCommandOutput

See

Example

SetIdentityHeadersInNotificationsEnabled

// The following example configures Amazon SES to include the original email headers in the Amazon SNS bounce notifications for an identity:
const input = {
"Enabled": true,
"Identity": "user@example.com",
"NotificationType": "Bounce"
};
const command = new SetIdentityHeadersInNotificationsEnabledCommand(input);
await client.send(command);
// example id: setidentityheadersinnotificationsenabled-1469057295001

Hierarchy

Constructors

Properties

Methods