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 4.5
 
Given a list of verified identities (email addresses and/or domains), returns a structure describing identity notification attributes.

This action is throttled at one request per second and can only get notification attributes for up to 100 identities at a time.

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

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

Syntax

C#
public virtual GetIdentityNotificationAttributesResponse GetIdentityNotificationAttributes(
         GetIdentityNotificationAttributesRequest request
)

Parameters

request
Type: Amazon.SimpleEmail.Model.GetIdentityNotificationAttributesRequest

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

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

Examples

This example shows how to get information about notification attributes for identities (email addresses and domains).

Get notification attributes example

var sesClient = new AmazonSimpleEmailServiceClient();
var idsResponse = sesClient.ListIdentities();

if (idsResponse.Identities.Count > 0)
{
  var request = new GetIdentityNotificationAttributesRequest
  {
    Identities = idsResponse.Identities
  };

  var response = sesClient.GetIdentityNotificationAttributes(request);

  foreach (var attr in response.NotificationAttributes)
  {
    Console.WriteLine(attr.Key);
    Console.WriteLine("  Bounce Topic: " + attr.Value.BounceTopic);
    Console.WriteLine("  Complaint Topic: " + attr.Value.ComplaintTopic);
    Console.WriteLine("  Forwarding Enabled: " + 
      attr.Value.ForwardingEnabled);
    Console.WriteLine();
  }
}
      

Version Information

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