a507314d45
* 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
40 lines
1.1 KiB
Python
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
|
|
)
|