GetIdentityNotificationAttributes() public method

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.

public GetIdentityNotificationAttributes ( GetIdentityNotificationAttributesRequest request ) : GetIdentityNotificationAttributesResponse
request GetIdentityNotificationAttributesRequest Container for the necessary parameters to execute the GetIdentityNotificationAttributes service method.
return GetIdentityNotificationAttributesResponse
Exemplo n.º 1
0
    public static void SESGetIdentityNotificationAttributes()
    {
      #region SESGetIdentityNotificationAttributes
      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();
        }
      }
      #endregion

      Console.ReadLine();
    }