Jump to Content

This API Documentation is now deprecated

We are excited to announce our new API Documentation.

Class SetIdentityFeedbackForwardingEnabledCommandProtected

Given an identity (an email address or a domain), enables or disables whether Amazon SES forwards bounce and complaint notifications as email. Feedback forwarding can only be disabled when Amazon Simple Notification Service (Amazon SNS) topics are specified for both bounces and complaints.

Feedback forwarding does not apply to delivery notifications. Delivery notifications are only available through Amazon SNS.

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

Param

SetIdentityFeedbackForwardingEnabledCommandInput

Returns

SetIdentityFeedbackForwardingEnabledCommandOutput

See

Throws

SESServiceException

Base exception class for all service exceptions from SES service.

Example

SetIdentityFeedbackForwardingEnabled

// The following example configures Amazon SES to forward an identity's bounces and complaints via email:
const input = {
"ForwardingEnabled": true,
"Identity": "user@example.com"
};
const command = new SetIdentityFeedbackForwardingEnabledCommand(input);
await client.send(command);
// example id: setidentityfeedbackforwardingenabled-1469056811329

Hierarchy

Constructors

Properties

Methods

Constructors

Properties

Methods