serverless-spy
Version:
CDK-based library for writing elegant integration tests on AWS serverless architecture and an additional web console to monitor events in real time.
13 lines (11 loc) • 382 B
text/typescript
import { NativeAttributeValue } from '@aws-sdk/util-dynamodb';
import { DynamoDBRecord } from 'aws-lambda';
import { SpyEvent } from './SpyEvent';
// asdasd
export interface DynamoDBSpyEvent<TData = any> extends SpyEvent {
spyEventType: 'DynamoDB';
eventName: DynamoDBRecord['eventName'];
newImage?: TData;
keys: Record<string, NativeAttributeValue>;
oldImage?: TData;
}