This action is throttled at one request per second.
/// <summary> /// Retrieves send statistics from SES /// </summary> /// <returns></returns> public GetSendQuotaResult getQuota() { GetSendQuotaResult ret = null; using (AmazonSimpleEmailServiceClient client = new AmazonSimpleEmailServiceClient(_accessKeyID, _secretAccessKeyID)) { GetSendQuotaRequest request = new GetSendQuotaRequest(); GetSendQuotaResponse response = client.GetSendQuota(request); ret = response.GetSendQuotaResult; } return ret; }
public static void SESGetSendQuota() { #region SESGetSendQuota var sesClient = new AmazonSimpleEmailServiceClient(); var response = sesClient.GetSendQuota(); Console.WriteLine("Maximum emails that can be sent each 24 hours: " + response.Max24HourSend); Console.WriteLine("Maximum emails that can be sent per second: " + response.MaxSendRate); Console.WriteLine("Number of emails sent in last 24 hours: " + response.SentLast24Hours); #endregion Console.ReadLine(); }