Basic Kinesis Stream CRUD.

This commit is contained in:
Steve Pulec 2014-11-26 10:55:58 -05:00
commit da15fb711d
10 changed files with 246 additions and 0 deletions

View file

@ -0,0 +1,19 @@
from __future__ import unicode_literals
import json
from werkzeug.exceptions import BadRequest
class ResourceNotFoundError(BadRequest):
def __init__(self, message):
super(ResourceNotFoundError, self).__init__()
self.description = json.dumps({
"message": message,
'__type': 'ResourceNotFoundException',
})
class StreamNotFoundError(ResourceNotFoundError):
def __init__(self, stream_name):
super(StreamNotFoundError, self).__init__(
'Stream {} under account 123456789012 not found.'.format(stream_name))