awslabs / aws-lambda-rust-runtime

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

Implement CloudWatch alarm SNS payloads. #829

Closed calavera closed 6 months ago

calavera commented 6 months ago

Issue #, if available:

Fixes #793

Description of changes:

Add the struct definitions based on the Go events: https://github.com/aws/aws-lambda-go/blob/3a93ed1e265b5e368f0d20c3a2b8395d2c9f787d/events/sns.go#L34-L88 It doesn't look like the Java and Dotnet events implement these structs to verify them, but the tests are able to deserialize the example payloads that we've been testing already.

By submitting this pull request

dacbd commented 6 months ago

I was too slow... thanks for the addition.

calavera commented 6 months ago

no worries. I'm planning on doing a release, and I thought they could just be there.