Amazon.SimpleEmail.AmazonSimpleEmailServiceClient.SetIdentityNotificationTopic C# (CSharp) Method

SetIdentityNotificationTopic() public method

Given an identity (an email address or a 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.

public SetIdentityNotificationTopic ( SetIdentityNotificationTopicRequest request ) : SetIdentityNotificationTopicResponse
request SetIdentityNotificationTopicRequest Container for the necessary parameters to execute the SetIdentityNotificationTopic service method.
return SetIdentityNotificationTopicResponse
        public SetIdentityNotificationTopicResponse SetIdentityNotificationTopic(SetIdentityNotificationTopicRequest request)
        {
            var marshaller = new SetIdentityNotificationTopicRequestMarshaller();
            var unmarshaller = SetIdentityNotificationTopicResponseUnmarshaller.Instance;

            return Invoke<SetIdentityNotificationTopicRequest,SetIdentityNotificationTopicResponse>(request, marshaller, unmarshaller);
        }

Usage Example

Example #1
0
    public static void SESSetIdentityNotificationTopic()
    {
      #region SESSetIdentityNotificationTopic
      var sesClient = new AmazonSimpleEmailServiceClient();

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

      sesClient.SetIdentityNotificationTopic(bounceRequest);

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

      sesClient.SetIdentityNotificationTopic(complaintRequest);
      #endregion
    }
AmazonSimpleEmailServiceClient