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