ListIdentities() public method

Returns a list containing all of the identities (email addresses and domains) for your AWS account, regardless of verification status.

This action is throttled at one request per second.

public ListIdentities ( ) : ListIdentitiesResponse
return ListIdentitiesResponse
コード例 #1
0
ファイル: SESSamples.cs プロジェクト: rajdotnet/aws-sdk-net
    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();
    }
コード例 #2
0
ファイル: SESSamples.cs プロジェクト: rajdotnet/aws-sdk-net
    public static void SESGetIdentityDkimAttributes()
    {
      #region SESGetIdentityDkimAttributes
      var sesClient = new AmazonSimpleEmailServiceClient();

      var idsResponse = sesClient.ListIdentities();

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

        var response = sesClient.GetIdentityDkimAttributes(request);

        foreach (var attr in response.DkimAttributes)
        {
          Console.WriteLine(attr.Key);
          Console.WriteLine("  DKIM Enabled: " + attr.Value.DkimEnabled);
          Console.WriteLine("  DKIM Verification Status: " + 
            attr.Value.DkimVerificationStatus.Value);

          if (attr.Value.DkimTokens.Count > 0)
          {
            Console.WriteLine("  DKIM Tokens: ");

            foreach (var token in attr.Value.DkimTokens)
            {
              Console.WriteLine("    " + token);
            }          
          }
          
          Console.WriteLine();
        }
      };
      #endregion

      Console.ReadLine();
    }
コード例 #3
0
ファイル: SESSamples.cs プロジェクト: rajdotnet/aws-sdk-net
    public static void SESListIdentities()
    {
      #region SESListIdentities
      var sesClient = new AmazonSimpleEmailServiceClient();

      var response = sesClient.ListIdentities();

      if (response.Identities.Count > 0)
      {
        Console.WriteLine("Identities:");

        foreach (var identity in response.Identities)
        {
          Console.WriteLine("  " + identity);
        }
      }
      #endregion

      Console.ReadLine();
    }