diff --git a/lambda-events/src/event/cloudwatch_alarms/mod.rs b/lambda-events/src/event/cloudwatch_alarms/mod.rs index 0f2eb03d..aa8f6dd1 100644 --- a/lambda-events/src/event/cloudwatch_alarms/mod.rs +++ b/lambda-events/src/event/cloudwatch_alarms/mod.rs @@ -69,7 +69,8 @@ where R: DeserializeOwned, R: Serialize, { - pub value: String, + #[serde(default)] + pub value: CloudWatchAlarmStateValue, pub reason: String, #[serde(default, bound = "")] pub reason_data: Option, @@ -129,7 +130,7 @@ pub enum CloudWatchAlarmStateValue { #[default] Ok, Alarm, - InsuficientData, + InsufficientData, } #[derive(Clone, Debug, PartialEq)]