See also  https://github.com/localstack/localstack/blob/master/localstack/services/dynamodbstreams/dynamodbstreams_api.py#L70 
import json
import uuid
import hashlib
import six
from flask import Flask, jsonify, request, make_response
from localstack.services import generic_proxy
from localstack.utils.aws import aws_stack
from localstack.utils.common import to_str, to_bytes
from localstack.utils.analytics import event_publisher
APP_NAME = 'ddb_streams_api'
app = Flask(APP_NAME)
DDB_STREAMS = {}
DDB_KINESIS_STREAM_NAME_PREFIX = '__ddb_stream_'
ACTION_HEADER_PREFIX = 'DynamoDBStreams_20120810'
SEQUENCE_NUMBER_COUNTER = 1
def add_dynamodb_stream(table_name, latest_stream_label=None, view_type='NEW_AND_OLD_IMAGES', enabled=True):