import { ClientConfig , DynamoDB , Kinesis } from 'aws-sdk' ; export const createKinesisClient = ( conf , endpoint ? ) : Kinesis => { const instance = new Kinesis ( conf || { } ) ; if ( endpoint ) { instance . setEndpoint ( endpoint ) ; } return instance ; } ; export const createDynamoClient = ( conf , endpoint ? ) : DynamoDB => { const instance = new DynamoDB ( conf || { } ) ; if ( endpoint ) { instance . setEndpoint ( endpoint ) ; } return instance ; } ;