UNPKG

kinesis-client-library

Version:

Process Kinesis streams and automatically scale up or down as shards split or merge.

19 lines (18 loc) 877 B
import { Model, Queries } from 'vogels'; import { ClientConfig } from 'aws-sdk'; export declare class Cluster { private static DefaultCapacity; private static DB_TYPE; id: string; Cluster: Model; constructor(tableName: string, conf: ClientConfig, dynamoEndpoint?: string); reportActiveConsumers(activeConsumers: number, callback: (e: any) => void): void; fetchAll(callback: (err: any, data: Queries.Query.Result) => void): void; garbageCollect(callback: (err: any, data?: Queries.Item[]) => void): void; static createTable(name: string, conf: ClientConfig, capacity: Capacity, dynamoEndpoint: string, callback: (e: any) => void): void; static tableExists(name: string, conf: ClientConfig, dynamoEndpoint: string, callback: (err: any, data?: Boolean) => void): void; } export interface Capacity { read?: number; write?: number; }