public void SimpleEmailServiceCloneReceiptRuleSet()
        {
            #region clonereceiptruleset-1469055039770

            var response = client.CloneReceiptRuleSet(new CloneReceiptRuleSetRequest
            {
                OriginalRuleSetName = "RuleSetToClone",
                RuleSetName         = "RuleSetToCreate"
            });


            #endregion
        }
예제 #2
0
 public void CloneReceiptRule(IAmazonSimpleEmailService client)
 {
     try
     {
         var objCloneReceiptRuleSetRequest = new CloneReceiptRuleSetRequest
         {
             RuleSetName         = "test-rule",
             OriginalRuleSetName = "test"
         };
         client.CloneReceiptRuleSet(objCloneReceiptRuleSetRequest);
     }
     catch
     {
         // ignored
     }
 }
 private Amazon.SimpleEmail.Model.CloneReceiptRuleSetResponse CallAWSServiceOperation(IAmazonSimpleEmailService client, Amazon.SimpleEmail.Model.CloneReceiptRuleSetRequest request)
 {
     Utils.Common.WriteVerboseEndpointMessage(this, client.Config, "Amazon Simple Email Service (SES)", "CloneReceiptRuleSet");
     try
     {
         #if DESKTOP
         return(client.CloneReceiptRuleSet(request));
         #elif CORECLR
         return(client.CloneReceiptRuleSetAsync(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;
     }
 }