awslabs / aws-lambda-rust-runtime

A Rust runtime for AWS Lambda
Apache License 2.0
3.29k stars 335 forks source link

[DynamoDB event] Makes ApproximateCreationDateTime optional in StreamRecord #891

Closed jfkisafk closed 2 months ago

jfkisafk commented 2 months ago

Issue #, if available: closes https://github.com/awslabs/aws-lambda-rust-runtime/issues/889

Description of changes: Makes the DDB event StreamRecord more robust, b/c it appears that ApproximateCreationDateTime can be absent. The DDB docs are ambiguous in this matter as they suggest it is not required but also say:

In the following list, the required parameters are described first.

Maybe we can get more guidance from DDB team?

By submitting this pull request