Skip to content

Commit f00aa04

Browse files
authored
Fix parsing failure in CloudWatchAlarmStateValue. (#761)
1 parent a8f860f commit f00aa04

File tree

1 file changed

+3
-2
lines changed
  • lambda-events/src/event/cloudwatch_alarms

1 file changed

+3
-2
lines changed

lambda-events/src/event/cloudwatch_alarms/mod.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,8 @@ where
6969
R: DeserializeOwned,
7070
R: Serialize,
7171
{
72-
pub value: String,
72+
#[serde(default)]
73+
pub value: CloudWatchAlarmStateValue,
7374
pub reason: String,
7475
#[serde(default, bound = "")]
7576
pub reason_data: Option<R>,
@@ -129,7 +130,7 @@ pub enum CloudWatchAlarmStateValue {
129130
#[default]
130131
Ok,
131132
Alarm,
132-
InsuficientData,
133+
InsufficientData,
133134
}
134135

135136
#[derive(Clone, Debug, PartialEq)]

0 commit comments

Comments
 (0)