2019-09-21 14:55:43 +00:00
|
|
|
from moto.core.exceptions import JsonRESTError
|
|
|
|
|
|
|
|
|
|
|
|
class InvalidFilterKey(JsonRESTError):
|
|
|
|
code = 400
|
|
|
|
|
2023-04-24 10:26:25 +00:00
|
|
|
def __init__(self, message: str):
|
2022-01-14 19:51:49 +00:00
|
|
|
super().__init__("InvalidFilterKey", message)
|
2019-09-21 14:55:43 +00:00
|
|
|
|
|
|
|
|
|
|
|
class InvalidFilterOption(JsonRESTError):
|
|
|
|
code = 400
|
|
|
|
|
2023-04-24 10:26:25 +00:00
|
|
|
def __init__(self, message: str):
|
2022-01-14 19:51:49 +00:00
|
|
|
super().__init__("InvalidFilterOption", message)
|
2019-09-21 14:55:43 +00:00
|
|
|
|
|
|
|
|
|
|
|
class InvalidFilterValue(JsonRESTError):
|
|
|
|
code = 400
|
|
|
|
|
2023-04-24 10:26:25 +00:00
|
|
|
def __init__(self, message: str):
|
2022-01-14 19:51:49 +00:00
|
|
|
super().__init__("InvalidFilterValue", message)
|
2019-09-21 14:55:43 +00:00
|
|
|
|
2020-03-11 15:57:04 +00:00
|
|
|
|
2021-09-30 11:47:11 +00:00
|
|
|
class InvalidResourceId(JsonRESTError):
|
|
|
|
code = 400
|
|
|
|
|
2023-04-24 10:26:25 +00:00
|
|
|
def __init__(self) -> None:
|
2022-01-14 19:51:49 +00:00
|
|
|
super().__init__("InvalidResourceId", "Invalid Resource Id")
|
2021-09-30 11:47:11 +00:00
|
|
|
|
|
|
|
|
|
|
|
class InvalidResourceType(JsonRESTError):
|
|
|
|
code = 400
|
|
|
|
|
2023-04-24 10:26:25 +00:00
|
|
|
def __init__(self) -> None:
|
2022-01-14 19:51:49 +00:00
|
|
|
super().__init__("InvalidResourceType", "Invalid Resource Type")
|
2021-09-30 11:47:11 +00:00
|
|
|
|
|
|
|
|
2020-03-09 00:32:01 +00:00
|
|
|
class ParameterNotFound(JsonRESTError):
|
|
|
|
code = 400
|
|
|
|
|
2023-04-24 10:26:25 +00:00
|
|
|
def __init__(self, message: str):
|
2022-01-14 19:51:49 +00:00
|
|
|
super().__init__("ParameterNotFound", message)
|
2020-03-09 00:32:01 +00:00
|
|
|
|
2020-03-11 15:57:04 +00:00
|
|
|
|
2020-03-09 00:32:01 +00:00
|
|
|
class ParameterVersionNotFound(JsonRESTError):
|
|
|
|
code = 400
|
|
|
|
|
2023-04-24 10:26:25 +00:00
|
|
|
def __init__(self, message: str):
|
2022-01-14 19:51:49 +00:00
|
|
|
super().__init__("ParameterVersionNotFound", message)
|
2020-03-11 15:57:04 +00:00
|
|
|
|
2020-03-09 00:32:01 +00:00
|
|
|
|
|
|
|
class ParameterVersionLabelLimitExceeded(JsonRESTError):
|
|
|
|
code = 400
|
|
|
|
|
2023-04-24 10:26:25 +00:00
|
|
|
def __init__(self, message: str):
|
2022-01-14 19:51:49 +00:00
|
|
|
super().__init__("ParameterVersionLabelLimitExceeded", message)
|
2020-03-11 15:57:04 +00:00
|
|
|
|
2019-09-21 14:55:43 +00:00
|
|
|
|
|
|
|
class ValidationException(JsonRESTError):
|
|
|
|
code = 400
|
|
|
|
|
2023-04-24 10:26:25 +00:00
|
|
|
def __init__(self, message: str):
|
2022-01-14 19:51:49 +00:00
|
|
|
super().__init__("ValidationException", message)
|
2020-06-26 14:47:28 +00:00
|
|
|
|
|
|
|
|
|
|
|
class DocumentAlreadyExists(JsonRESTError):
|
|
|
|
code = 400
|
|
|
|
|
2023-04-24 10:26:25 +00:00
|
|
|
def __init__(self, message: str):
|
2022-01-14 19:51:49 +00:00
|
|
|
super().__init__("DocumentAlreadyExists", message)
|
2020-06-26 14:47:28 +00:00
|
|
|
|
|
|
|
|
2021-08-25 14:16:14 +00:00
|
|
|
class DocumentPermissionLimit(JsonRESTError):
|
|
|
|
code = 400
|
|
|
|
|
2023-04-24 10:26:25 +00:00
|
|
|
def __init__(self, message: str):
|
2022-01-14 19:51:49 +00:00
|
|
|
super().__init__("DocumentPermissionLimit", message)
|
2021-08-25 14:16:14 +00:00
|
|
|
|
|
|
|
|
|
|
|
class InvalidPermissionType(JsonRESTError):
|
|
|
|
code = 400
|
|
|
|
|
2023-04-24 10:26:25 +00:00
|
|
|
def __init__(self, message: str):
|
2022-01-14 19:51:49 +00:00
|
|
|
super().__init__("InvalidPermissionType", message)
|
2021-08-25 14:16:14 +00:00
|
|
|
|
|
|
|
|
2020-06-26 14:47:28 +00:00
|
|
|
class InvalidDocument(JsonRESTError):
|
|
|
|
code = 400
|
|
|
|
|
2023-04-24 10:26:25 +00:00
|
|
|
def __init__(self, message: str):
|
2022-01-14 19:51:49 +00:00
|
|
|
super().__init__("InvalidDocument", message)
|
2020-06-26 14:47:28 +00:00
|
|
|
|
|
|
|
|
|
|
|
class InvalidDocumentOperation(JsonRESTError):
|
|
|
|
code = 400
|
|
|
|
|
2023-04-24 10:26:25 +00:00
|
|
|
def __init__(self, message: str):
|
2022-01-14 19:51:49 +00:00
|
|
|
super().__init__("InvalidDocumentOperation", message)
|
2020-06-26 14:47:28 +00:00
|
|
|
|
|
|
|
|
2020-07-28 14:26:59 +00:00
|
|
|
class AccessDeniedException(JsonRESTError):
|
|
|
|
code = 400
|
|
|
|
|
2023-04-24 10:26:25 +00:00
|
|
|
def __init__(self, message: str):
|
2022-01-14 19:51:49 +00:00
|
|
|
super().__init__("AccessDeniedException", message)
|
2020-07-28 14:26:59 +00:00
|
|
|
|
|
|
|
|
2020-06-26 14:47:28 +00:00
|
|
|
class InvalidDocumentContent(JsonRESTError):
|
|
|
|
code = 400
|
|
|
|
|
2023-04-24 10:26:25 +00:00
|
|
|
def __init__(self, message: str):
|
2022-01-14 19:51:49 +00:00
|
|
|
super().__init__("InvalidDocumentContent", message)
|
2020-06-26 14:47:28 +00:00
|
|
|
|
|
|
|
|
|
|
|
class InvalidDocumentVersion(JsonRESTError):
|
|
|
|
code = 400
|
|
|
|
|
2023-04-24 10:26:25 +00:00
|
|
|
def __init__(self, message: str):
|
2022-01-14 19:51:49 +00:00
|
|
|
super().__init__("InvalidDocumentVersion", message)
|
2020-06-26 14:47:28 +00:00
|
|
|
|
|
|
|
|
|
|
|
class DuplicateDocumentVersionName(JsonRESTError):
|
|
|
|
code = 400
|
|
|
|
|
2023-04-24 10:26:25 +00:00
|
|
|
def __init__(self, message: str):
|
2022-01-14 19:51:49 +00:00
|
|
|
super().__init__("DuplicateDocumentVersionName", message)
|
2020-06-26 14:47:28 +00:00
|
|
|
|
|
|
|
|
|
|
|
class DuplicateDocumentContent(JsonRESTError):
|
|
|
|
code = 400
|
|
|
|
|
2023-04-24 10:26:25 +00:00
|
|
|
def __init__(self, message: str):
|
2022-01-14 19:51:49 +00:00
|
|
|
super().__init__("DuplicateDocumentContent", message)
|
2021-05-28 07:32:39 +00:00
|
|
|
|
|
|
|
|
|
|
|
class ParameterMaxVersionLimitExceeded(JsonRESTError):
|
|
|
|
code = 400
|
|
|
|
|
2023-04-24 10:26:25 +00:00
|
|
|
def __init__(self, message: str):
|
2022-01-14 19:51:49 +00:00
|
|
|
super().__init__("ParameterMaxVersionLimitExceeded", message)
|
2023-06-22 10:57:12 +00:00
|
|
|
|
|
|
|
|
|
|
|
class ParameterAlreadyExists(JsonRESTError):
|
|
|
|
code = 400
|
|
|
|
|
2023-06-22 11:54:34 +00:00
|
|
|
def __init__(self) -> None:
|
2023-06-22 10:57:12 +00:00
|
|
|
super().__init__(
|
|
|
|
"ParameterAlreadyExists",
|
|
|
|
"The parameter already exists. To overwrite this value, set the overwrite option in the request to true.",
|
|
|
|
)
|