public void ElasticLoadBalancingV2DeleteRule()
        {
            #region elbv2-delete-rule-1

            var response = client.DeleteRule(new DeleteRuleRequest
            {
                RuleArn = "arn:aws:elasticloadbalancing:us-west-2:123456789012:listener-rule/app/my-load-balancer/50dc6c495c0c9188/f2f7dc8efc522ab2/1291d13826f405c3"
            });


            #endregion
        }
Пример #2
0
 private Amazon.ElasticLoadBalancingV2.Model.DeleteRuleResponse CallAWSServiceOperation(IAmazonElasticLoadBalancingV2 client, Amazon.ElasticLoadBalancingV2.Model.DeleteRuleRequest request)
 {
     Utils.Common.WriteVerboseEndpointMessage(this, client.Config, "Elastic Load Balancing V2", "DeleteRule");
     try
     {
         #if DESKTOP
         return(client.DeleteRule(request));
         #elif CORECLR
         return(client.DeleteRuleAsync(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;
     }
 }