moto/moto/ram/exceptions.py
Anton Grübel a507314d45
RAM - implement CRUD endpoints (#3158)
* Add ram.create_resource_share

* Add ram.get_resource_shares

* Add ram.update_resource_share

* Add ram.delete_resource_share

* Add ram.enable_sharing_with_aws_organization

* Fix server tests

* Add CR suggestions
2020-07-21 14:15:13 +01:00

40 lines
1.1 KiB
Python

from __future__ import unicode_literals
from moto.core.exceptions import JsonRESTError
class InvalidParameterException(JsonRESTError):
code = 400
def __init__(self, message):
super(InvalidParameterException, self).__init__(
"InvalidParameterException", message
)
class MalformedArnException(JsonRESTError):
code = 400
def __init__(self, message):
super(MalformedArnException, self).__init__("MalformedArnException", message)
class OperationNotPermittedException(JsonRESTError):
code = 400
def __init__(self):
super(OperationNotPermittedException, self).__init__(
"OperationNotPermittedException",
"Unable to enable sharing with AWS Organizations. "
"Received AccessDeniedException from AWSOrganizations with the following error message: "
"You don't have permissions to access this resource.",
)
class UnknownResourceException(JsonRESTError):
code = 400
def __init__(self, message):
super(UnknownResourceException, self).__init__(
"UnknownResourceException", message
)