Add first version of SWF endpoint RespondDecisionTaskCompleted
There's just the structure for now, for now the workflow execution doesn't know how to handle any decision type.
This commit is contained in:
parent
c72c198208
commit
d97c770849
8 changed files with 211 additions and 2 deletions
|
|
@ -12,9 +12,13 @@ class SWFClientError(JSONResponseError):
|
|||
|
||||
|
||||
class SWFUnknownResourceFault(SWFClientError):
|
||||
def __init__(self, resource_type, resource_name):
|
||||
def __init__(self, resource_type, resource_name=None):
|
||||
if resource_name:
|
||||
message = "Unknown {}: {}".format(resource_type, resource_name)
|
||||
else:
|
||||
message = "Unknown {}".format(resource_type)
|
||||
super(SWFUnknownResourceFault, self).__init__(
|
||||
"Unknown {}: {}".format(resource_type, resource_name),
|
||||
message,
|
||||
"com.amazonaws.swf.base.model#UnknownResourceFault")
|
||||
|
||||
|
||||
|
|
@ -75,3 +79,11 @@ class SWFDefaultUndefinedFault(SWFClientError):
|
|||
super(SWFDefaultUndefinedFault, self).__init__(
|
||||
key_camel_case, "com.amazonaws.swf.base.model#DefaultUndefinedFault"
|
||||
)
|
||||
|
||||
|
||||
class SWFValidationException(SWFClientError):
|
||||
def __init__(self, message):
|
||||
super(SWFValidationException, self).__init__(
|
||||
message,
|
||||
"com.amazon.coral.validate#ValidationException"
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue