calavera / aws-lambda-events

Rust event types for AWS Lambda
MIT License
128 stars 55 forks source link

Change SNS url "rename" to "alias" to support both *URL and *Url #149

Closed cole-abbeduto-particle closed 1 year ago

cole-abbeduto-particle commented 1 year ago

We found conflicting docs on AWS that show usage of *URL as well as *Url. To support both, the rename change I made in the last commit has been changed to an alias. So this will now default to Url, but also deserialize from URL with this change. I've also added a test to validate this works as expected.

Thanks to @yotamofek for bringing this up in https://github.com/calavera/aws-lambda-events/pull/141#issuecomment-1484148166