aws / aws-cdk

The AWS Cloud Development Kit is a framework for defining cloud infrastructure in code
https://aws.amazon.com/cdk
Apache License 2.0
11.5k stars 3.84k forks source link

(lambda_event_sources): DocumentDB eventSource not supported #30213

Open mazyu36 opened 3 months ago

mazyu36 commented 3 months ago

Describe the feature

A DocumentDB event source mapping is supported in lambda event source mappings.

But L2 Construct does not exist.

See Lambda event source mappings

Use Case

To use DocumentDB as a event source.

Proposed Solution

Add DocumentDBSource class to the aws_lambda_event_sources.

Other Information

No response

Acknowledgements

CDK version used

2.141.0

Environment details (OS name and version, etc.)

MacOS

pahud commented 3 months ago

Yes we should add a class that implements IEventSource.

https://github.com/aws/aws-cdk/blob/7624c62ffd293187749f742de70695af9b5f4f87/packages/aws-cdk-lib/aws-lambda-event-sources/lib/s3.ts#L23

Thank you for your PR!