Add SWF endpoints: RegisterDomain, DeprecateDomain, ListDomains, DescribeDomain
This commit is contained in:
parent
32dd72f6b7
commit
8e3fd6c7de
7 changed files with 337 additions and 0 deletions
32
moto/swf/exceptions.py
Normal file
32
moto/swf/exceptions.py
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
from __future__ import unicode_literals
|
||||
|
||||
from boto.exception import JSONResponseError
|
||||
|
||||
|
||||
class SWFClientError(JSONResponseError):
|
||||
def __init__(self, message, __type):
|
||||
super(SWFClientError, self).__init__(
|
||||
400, "Bad Request",
|
||||
body={"message": message, "__type": __type}
|
||||
)
|
||||
|
||||
|
||||
class SWFUnknownResourceFault(SWFClientError):
|
||||
def __init__(self, resource_type, resource_name):
|
||||
super(SWFUnknownResourceFault, self).__init__(
|
||||
"Unknown {}: {}".format(resource_type, resource_name),
|
||||
"com.amazonaws.swf.base.model#UnknownResourceFault")
|
||||
|
||||
|
||||
class SWFDomainAlreadyExistsFault(SWFClientError):
|
||||
def __init__(self, domain_name):
|
||||
super(SWFDomainAlreadyExistsFault, self).__init__(
|
||||
domain_name,
|
||||
"com.amazonaws.swf.base.model#DomainAlreadyExistsFault")
|
||||
|
||||
|
||||
class SWFDomainDeprecatedFault(SWFClientError):
|
||||
def __init__(self, domain_name):
|
||||
super(SWFDomainDeprecatedFault, self).__init__(
|
||||
domain_name,
|
||||
"com.amazonaws.swf.base.model#DomainDeprecatedFault")
|
||||
Loading…
Add table
Add a link
Reference in a new issue