Skip to content

Commit 8572af6

Browse files
authored
fix: expose CloudWatchMetricAlarm and CloudWatchCompositeAlarm (#926)
* fix: expose CloudWatchMetricAlarm and CloudWatchCompositeAlarm These types are referred to by the CloudWatchAlarm type, but they previously not exported by the crate and left unused in its module. * chore: apply rustfmt
1 parent 20206d7 commit 8572af6

File tree

1 file changed

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

1 file changed

+3
-4
lines changed

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

+3-4
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,11 @@ where
3636
}
3737

3838
/// `CloudWatchMetricAlarm` is the structure of an event triggered by CloudWatch metric alarms.
39-
#[allow(unused)]
40-
type CloudWatchMetricAlarm<R = CloudWatchAlarmStateReasonData> = CloudWatchAlarm<CloudWatchMetricAlarmConfiguration, R>;
39+
pub type CloudWatchMetricAlarm<R = CloudWatchAlarmStateReasonData> =
40+
CloudWatchAlarm<CloudWatchMetricAlarmConfiguration, R>;
4141

4242
/// `CloudWatchCompositeAlarm` is the structure of an event triggered by CloudWatch composite alarms.
43-
#[allow(unused)]
44-
type CloudWatchCompositeAlarm<R = CloudWatchAlarmStateReasonData> =
43+
pub type CloudWatchCompositeAlarm<R = CloudWatchAlarmStateReasonData> =
4544
CloudWatchAlarm<CloudWatchCompositeAlarmConfiguration, R>;
4645

4746
#[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)]

0 commit comments

Comments
 (0)