UNPKG

@fiftyten/db-connect

Version:

CLI tool for database connections and DynamoDB operations via AWS Session Manager

43 lines 1.13 kB
export interface DynamoDBTableInfo { tableName: string; status: string; itemCount?: number; sizeBytes?: number; creationDateTime?: Date; } export declare class DynamoDBConnector { private dynamoClient; private docClient; private mfaAuth; private mfaAuthenticated; constructor(region?: string); /** * Ensure MFA authentication if required */ private ensureMfaAuthentication; /** * List all DynamoDB tables */ listTables(): Promise<void>; /** * Filter out sensitive fields from data */ private filterSensitiveFields; /** * Scan a DynamoDB table */ scanTable(tableName: string, limit?: number): Promise<void>; /** * Query a DynamoDB table */ queryTable(tableName: string, keyCondition: string, limit?: number): Promise<void>; /** * Get a specific item from DynamoDB table */ getItem(tableName: string, key: string): Promise<void>; /** * Describe a specific table */ describeTable(tableName: string): Promise<void>; } //# sourceMappingURL=dynamodb-connector.d.ts.map