setRulePriorities

Sets the priorities of the specified rules.

You can reorder the rules as long as there are no priority conflicts in the new order. Any existing rules that you do not specify retain their current priority.

Samples

import aws.sdk.kotlin.services.elasticloadbalancingv2.model.RulePriorityPair
fun main() { 
   //sampleStart 
   // This example sets the priority of the specified rule.
val resp = elasticLoadBalancingV2Client.setRulePriorities {
    rulePriorities = listOf<RulePriorityPair>(
        RulePriorityPair {
            ruleArn = "arn:aws:elasticloadbalancing:us-west-2:123456789012:listener-rule/app/my-load-balancer/50dc6c495c0c9188/f2f7dc8efc522ab2/1291d13826f405c3"
            priority = 5
        }            
    )
} 
   //sampleEnd
}