add set_rule_priorities to elbv2

This commit is contained in:
Toshiya Kawasaki 2017-08-17 03:10:26 +09:00
commit e07bce003c
4 changed files with 126 additions and 23 deletions

View file

@ -158,3 +158,11 @@ class RuleNotFoundError(ELBClientError):
super(RuleNotFoundError, self).__init__(
"RuleNotFound",
"The specified rule does not exist.")
class DuplicatePriorityError(ELBClientError):
def __init__(self, invalid_value):
super(DuplicatePriorityError, self).__init__(
"ValidationError",
"Priority '%s' was provided multiple times" % invalid_value)