-
Notifications
You must be signed in to change notification settings - Fork 231
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added the object representation of the CloudWatch Alarm #485
Conversation
…omposite types) Updated encoding properties to remove warnings
There is a design decision on whether there should be one class or two? The two different types of alarms use different attributes. |
...nts/src/test/java/com/amazonaws/services/lambda/runtime/events/CloudWatchAlarmEventTest.java
Outdated
Show resolved
Hide resolved
What do you think about having both use cases model as a single class? I think having two is awkward because some attributes won't make sense in one case. But the alternative of having two is awkward if CloudWatch continues to make different events in the future. |
...-events/src/main/java/com/amazonaws/services/lambda/runtime/events/CloudWatchAlarmEvent.java
Outdated
Show resolved
Hide resolved
Moved the tests to the test module
Ready to recheck |
@@ -35,6 +35,8 @@ | |||
<maven.compiler.source>1.8</maven.compiler.source> | |||
<maven.compiler.target>1.8</maven.compiler.target> | |||
<lombok.version>1.18.22</lombok.version> | |||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> | |||
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@msailes is this change required in this PR?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No. There was a warning in the build logs, I added these to remove the warning.
Issue #, if available:
#484
Description of changes:
I added a test dependency to serialisation so I could write a unit test with the correct serialisation configuration for Jackson.
Target (OCI, Managed Runtime, both):
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.