AWS SDK Version 2 for .NET
API Reference

AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

.NET Framework 3.5
 
Given an identity (email address or domain), sets the Amazon Simple Notification Service (Amazon SNS) topic to which Amazon SES will publish bounce, complaint, and/or delivery notifications for emails sent with that identity as the Source. Unless feedback forwarding is enabled, you must specify Amazon SNS topics for bounce and complaint notifications. For more information, see SetIdentityFeedbackForwardingEnabled.

This action is throttled at one request per second.

For more information about feedback notification, see the Amazon SES Developer Guide.

Namespace: Amazon.SimpleEmail
Assembly: AWSSDK.dll
Version: (assembly version)

Syntax

C#
public virtual SetIdentityNotificationTopicResponse SetIdentityNotificationTopic(
         SetIdentityNotificationTopicRequest request
)

Parameters

request
Type: Amazon.SimpleEmail.Model.SetIdentityNotificationTopicRequest

Container for the necessary parameters to execute the SetIdentityNotificationTopic service method.

Return Value
Type: Amazon.SimpleEmail.Model.SetIdentityNotificationTopicResponse
The response from the SetIdentityNotificationTopic service method, as returned by SimpleEmailService.

Examples

This example shows how to set notification topics for an identity (email address or domain).

Set notification topics example

var sesClient = new AmazonSimpleEmailServiceClient();

var bounceRequest = new SetIdentityNotificationTopicRequest
{
  Identity = "johndoe@example.com",
  NotificationType = NotificationType.Bounce,
  SnsTopic = "arn:aws:sns:us-east-1:80398EXAMPLE:CodingTestResults"
};

sesClient.SetIdentityNotificationTopic(bounceRequest);

var complaintRequest = new SetIdentityNotificationTopicRequest
{
  Identity = "johndoe@example.com",
  NotificationType = NotificationType.Complaint,
  SnsTopic = "arn:aws:sns:us-east-1:80398EXAMPLE:CodingTestResults"
};

sesClient.SetIdentityNotificationTopic(complaintRequest);
      

Version Information

.NET Framework:
Supported in: 4.5, 4.0, 3.5