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
 
Returns the current status of Easy DKIM signing for an entity. For domain name identities, this action also returns the DKIM tokens that are required for Easy DKIM signing, and whether Amazon SES has successfully verified that these tokens have been published.

This action takes a list of identities as input and returns the following information for each:

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

For more information about creating DNS records using DKIM tokens, go to the Amazon SES Developer Guide.

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

Syntax

C#
public virtual GetIdentityDkimAttributesResponse GetIdentityDkimAttributes(
         GetIdentityDkimAttributesRequest request
)

Parameters

request
Type: Amazon.SimpleEmail.Model.GetIdentityDkimAttributesRequest

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

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

Examples

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

Get DKIM attributes example

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();
  }
};
      

Version Information

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