Optional ReadonlyactionsWhether alarm actions are enabled during state changes.
Optional ReadonlyalarmSNS topic ARNs for ALARM state notifications.
Optional ReadonlyalarmHuman-readable alarm description.
ReadonlyalarmUnique name for the alarm.
ReadonlycomparisonComparison operator (e.g., GreaterThanOrEqualToThreshold).
Optional ReadonlydatapointsDatapoints that must breach threshold (M out of N evaluation).
Optional ReadonlydimensionsMetric dimensions. Supports {{functionName}} placeholder.
ReadonlyevaluationNumber of consecutive periods the metric must breach the threshold.
Optional ReadonlyinsufficientSNS topic ARNs for INSUFFICIENT_DATA state notifications.
Optional ReadonlymetricMetric name for single metric alarms. Validated against metric filters for custom metrics.
Optional ReadonlymetricsMetric data queries for metric math alarms. Mutually exclusive with metricName.
Optional ReadonlynamespaceMetric namespace. AWS/* namespaces bypass validation.
Optional ReadonlyokSNS topic ARNs for OK state notifications.
Optional ReadonlyperiodEvaluation period in seconds.
Optional ReadonlystatisticStatistic for metric aggregation (e.g., Sum, Average).
ReadonlythresholdThreshold value for alarm comparison.
Optional ReadonlytreatMissing data treatment (notBreaching, breaching, ignore, missing).
Optional ReadonlyunitCloudWatch metric unit.
Configuration for CloudWatch alarms for Lambda function monitoring and alerting.
Defines alarm conditions, thresholds, and notification actions for both single metric and metric math alarms with support for custom and AWS metrics.
Use cases: Error rate alerting; Performance monitoring; Custom metric alarms; Multi-metric conditions
AWS: CloudWatch alarm for Lambda function monitoring with SNS integration
Validation: alarmName required; either metricName/namespace or metrics array required; threshold and evaluationPeriods required