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.
20 lines (19 loc) • 740 B
JavaScript
import { Client as __Client } from "@smithy/smithy-client";
export { __Client };
export class DynamoDBDocumentClient extends __Client {
constructor(client, translateConfig) {
super(client.config);
this.config = client.config;
this.config.translateConfig = translateConfig;
this.middlewareStack = client.middlewareStack;
if (this.config?.cacheMiddleware) {
throw new Error("@aws-sdk/lib-dynamodb - cacheMiddleware=true is not compatible with the" +
" DynamoDBDocumentClient. This option must be set to false.");
}
}
static from(client, translateConfig) {
return new DynamoDBDocumentClient(client, translateConfig);
}
destroy() {
}
}