public void SimpleEmailServiceDescribeReceiptRuleSet() { #region describereceiptruleset-1469121240385 var response = client.DescribeReceiptRuleSet(new DescribeReceiptRuleSetRequest { RuleSetName = "MyRuleSet" }); ReceiptRuleSetMetadata metadata = response.Metadata; List <ReceiptRule> rules = response.Rules; #endregion }
public List <string> DescribeReceiptRule(IAmazonSimpleEmailService client) { try { var objDescribeReceiptRuleRequest = new DescribeReceiptRuleSetRequest { RuleSetName = "email-receive" }; var response = client.DescribeReceiptRuleSet(objDescribeReceiptRuleRequest); return(response.Rules[0].Recipients); } catch { // ignored } return(null); }
private Amazon.SimpleEmail.Model.DescribeReceiptRuleSetResponse CallAWSServiceOperation(IAmazonSimpleEmailService client, Amazon.SimpleEmail.Model.DescribeReceiptRuleSetRequest request) { Utils.Common.WriteVerboseEndpointMessage(this, client.Config, "Amazon Simple Email Service (SES)", "DescribeReceiptRuleSet"); try { #if DESKTOP return(client.DescribeReceiptRuleSet(request)); #elif CORECLR return(client.DescribeReceiptRuleSetAsync(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; } }