This action is throttled at one request per second.
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(); }
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(); }
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(); }