generated from pbs/terraform-aws-template-v2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
optional-alarm.tf
35 lines (35 loc) · 1.46 KB
/
optional-alarm.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
variable "alarm_config" {
description = "Configurations for the alarm"
type = object({
actions_enabled = optional(bool, true)
comparison_operator = optional(string, "LessThanThreshold")
period = optional(number, 300)
evaluation_periods = optional(number, 1)
metric_name = optional(string, "SuccessPercent")
namespace = optional(string, "CloudWatchSynthetics")
statistic = optional(string, "Sum")
datapoints_to_alarm = optional(number, 1)
threshold = optional(string, "90")
alarm_actions = optional(list(string), [])
ok_actions = optional(list(string), [])
insufficient_data_actions = optional(list(string), [])
treat_missing_data = optional(string, "missing")
description = optional(string)
})
default = {
actions_enabled = true
comparison_operator = "LessThanThreshold"
period = 300
evaluation_periods = 1
metric_name = "SuccessPercent"
namespace = "CloudWatchSynthetics"
statistic = "Sum"
datapoints_to_alarm = 1
threshold = "90"
alarm_actions = []
ok_actions = []
insufficient_data_actions = []
treat_missing_data = "missing"
description = null
}
}