def _get_full_stream(stream_name, region=None, key=None, keyid=None, profile=None):
 conn = _get_conn(region=region, key=key, keyid=keyid, profile=profile)
 r = {}
 stream = _get_basic_stream(stream_name, conn)['result']
 full_stream = stream
 while stream['StreamDescription']['HasMoreShards']:
  stream = _execute_with_retries(conn, 'describe_stream', StreamName=stream_name, ExclusiveStartShardId=stream['StreamDescription']['Shards'][(-1)]['ShardId'])
  stream = stream['result']
  full_stream['StreamDescription']['Shards'] += stream['StreamDescription']['Shards']
 r['result'] = full_stream
 return r

def _get_full_stream ( stream_name , region = None , key = None , keyid = None , profile = None ) : conn = _get_conn ( region = region , key = key , keyid = keyid , profile = profile ) r = { } stream = _get_basic_stream ( stream_name , conn ) [ 'result' ] full_stream = stream while stream [ 'StreamDescription' ] [ 'HasMoreShards' ] : stream = _execute_with_retries ( conn , 'describe_stream' , StreamName = stream_name , ExclusiveStartShardId = stream [ 'StreamDescription' ] [ 'Shards' ] [ ( - 1 ) ] [ 'ShardId' ] ) stream = stream [ 'result' ] full_stream [ 'StreamDescription' ] [ 'Shards' ] += stream [ 'StreamDescription' ] [ 'Shards' ] r [ 'result' ] = full_stream return r
get complete stream info from aws .