add put_records API
fix create_stream API to get right response in case of stream already exists
This commit is contained in:
parent
4aa14960d2
commit
f93b9a86e9
3 changed files with 47 additions and 1 deletions
|
|
@ -13,6 +13,15 @@ class ResourceNotFoundError(BadRequest):
|
|||
})
|
||||
|
||||
|
||||
class ResourceInUseError(BadRequest):
|
||||
def __init__(self, message):
|
||||
super(ResourceNotFoundError, self).__init__()
|
||||
self.description = json.dumps({
|
||||
"message": message,
|
||||
'__type': 'ResourceInUseException',
|
||||
})
|
||||
|
||||
|
||||
class StreamNotFoundError(ResourceNotFoundError):
|
||||
def __init__(self, stream_name):
|
||||
super(StreamNotFoundError, self).__init__(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue