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 a list containing all of the identities (email addresses and domains) for a specific AWS Account, regardless of verification status.

This action is throttled at one request per second.

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

Syntax

C#
public virtual ListIdentitiesResponse ListIdentities(
         ListIdentitiesRequest request
)

Parameters

request
Type: Amazon.SimpleEmail.Model.ListIdentitiesRequest

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

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

Examples

This example shows how to list all identities (email addresses and domains) under an account.

List identities example

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

Version Information

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