* Update cloudwatch.put_metric_alarm to accept TreatMissingData and Tags parameter * Add parameter ExtendedStatistic and EvaluateLowSampleCountPercentile to cloudwatch.put_metric_alarm * Add parameter ThresholdMetricId to cloudwatch.put_metric_alarm
37 lines
739 B
Python
37 lines
739 B
Python
from moto.core.exceptions import RESTError
|
|
|
|
|
|
class InvalidFormat(RESTError):
|
|
code = 400
|
|
|
|
def __init__(self, message):
|
|
super().__init__(__class__.__name__, message)
|
|
|
|
|
|
class InvalidParameterValue(RESTError):
|
|
code = 400
|
|
|
|
def __init__(self, message):
|
|
super().__init__(__class__.__name__, message)
|
|
|
|
|
|
class ResourceNotFound(RESTError):
|
|
code = 404
|
|
|
|
def __init__(self):
|
|
super().__init__(__class__.__name__, "Unknown")
|
|
|
|
|
|
class ResourceNotFoundException(RESTError):
|
|
code = 404
|
|
|
|
def __init__(self):
|
|
super().__init__(__class__.__name__, "Unknown")
|
|
|
|
|
|
class ValidationError(RESTError):
|
|
code = 400
|
|
|
|
def __init__(self, message):
|
|
super().__init__(__class__.__name__, message)
|