serverless-snippets icon indicating copy to clipboard operation
serverless-snippets copied to clipboard

Missing or unclear type definitions in "Integration of Amazon DocumentDB with AWS Lambda" typescript snippet

Open dmarfonov-klika-tech opened this issue 5 months ago • 0 comments

The code snippet in integration-docdb-to-lambda/example.ts includes the following two types:

import { DocumentDBEventRecord, DocumentDBEventSubscriptionContext } from 'aws-lambda';

However, it is unclear what the source of these types is. The name "aws-lambda" suggests they might be part of the @types/aws-lambda package, but that package does not define these types. Additionally, I was unable to find any other package named "aws-lambda" that provides them.

It would be helpful to clarify the origin of these types, or define them directly within the snippet.

dmarfonov-klika-tech avatar Jul 21 '25 14:07 dmarfonov-klika-tech