public void ElasticLoadBalancingV2SetRulePriorities()
        {
            #region elbv2-set-rule-priorities-1

            var response = client.SetRulePriorities(new SetRulePrioritiesRequest
            {
                RulePriorities = new List <RulePriorityPair> {
                    new RulePriorityPair {
                        Priority = 5,
                        RuleArn  = "arn:aws:elasticloadbalancing:us-west-2:123456789012:listener-rule/app/my-load-balancer/50dc6c495c0c9188/f2f7dc8efc522ab2/1291d13826f405c3"
                    }
                }
            });

            List <Rule> rules = response.Rules;

            #endregion
        }
Exemple #2
0
 private Amazon.ElasticLoadBalancingV2.Model.SetRulePrioritiesResponse CallAWSServiceOperation(IAmazonElasticLoadBalancingV2 client, Amazon.ElasticLoadBalancingV2.Model.SetRulePrioritiesRequest request)
 {
     Utils.Common.WriteVerboseEndpointMessage(this, client.Config, "Elastic Load Balancing V2", "SetRulePriorities");
     try
     {
         #if DESKTOP
         return(client.SetRulePriorities(request));
         #elif CORECLR
         return(client.SetRulePrioritiesAsync(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;
     }
 }