2017-10-16 19:09:51 -05:00
|
|
|
from __future__ import unicode_literals
|
|
|
|
from moto.core.exceptions import RESTError
|
|
|
|
|
|
|
|
|
|
|
|
class AutoscalingClientError(RESTError):
|
2017-12-29 03:00:53 +00:00
|
|
|
code = 400
|
2017-10-16 19:09:51 -05:00
|
|
|
|
|
|
|
|
2017-12-29 03:32:25 +00:00
|
|
|
class ResourceContentionError(RESTError):
|
|
|
|
code = 500
|
2017-10-16 19:09:51 -05:00
|
|
|
|
|
|
|
def __init__(self):
|
|
|
|
super(ResourceContentionError, self).__init__(
|
|
|
|
"ResourceContentionError",
|
|
|
|
"You already have a pending update to an Auto Scaling resource (for example, a group, instance, or load balancer).")
|