public void SimpleEmailServiceCreateReceiptRuleSet()
        {
            #region createreceiptruleset-1469058761646

            var response = client.CreateReceiptRuleSet(new CreateReceiptRuleSetRequest
            {
                RuleSetName = "MyRuleSet"
            });


            #endregion
        }
Example #2
0
 public void CreateReceiptRuleSet(IAmazonSimpleEmailService client, string email)
 {
     try
     {
         var objCreateReceiptRuleSetRequest = new CreateReceiptRuleSetRequest
         {
             RuleSetName = email.Replace("@", "-")
         };
         client.CreateReceiptRuleSet(objCreateReceiptRuleSetRequest);
     }
     catch
     {
         // ignored
     }
 }
Example #3
0
 private Amazon.SimpleEmail.Model.CreateReceiptRuleSetResponse CallAWSServiceOperation(IAmazonSimpleEmailService client, Amazon.SimpleEmail.Model.CreateReceiptRuleSetRequest request)
 {
     Utils.Common.WriteVerboseEndpointMessage(this, client.Config, "Amazon Simple Email Service (SES)", "CreateReceiptRuleSet");
     try
     {
         #if DESKTOP
         return(client.CreateReceiptRuleSet(request));
         #elif CORECLR
         return(client.CreateReceiptRuleSetAsync(request).GetAwaiter().GetResult());
         #else
                 #error "Unknown build edition"
         #endif
     }
     catch (AmazonServiceException exc)
     {
         var webException = exc.InnerException as System.Net.WebException;
         if (webException != null)
         {
             throw new Exception(Utils.Common.FormatNameResolutionFailureMessage(client.Config, webException.Message), webException);
         }
         throw;
     }
 }