-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvariables.tf
45 lines (40 loc) · 1.11 KB
/
variables.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
36
37
38
39
40
41
42
43
44
45
variable "name" {
description = "Specifies the name of the template"
type = string
}
variable "name_postfix" {
description = "Name Postfix"
type = string
default = null
}
variable "content" {
description = "Content of template"
type = string
}
variable "locale" {
description = "Language"
type = string
default = "en-us"
validation {
condition = contains(["zh-cn", "en-us"], var.locale)
error_message = "Locale is not one of: zh-cn, en-us"
}
}
variable "sub_type" {
description = "Type of the template"
type = string
default = "email"
validation {
condition = contains(["sms", "dingding", "wechat", "webhook", "email"], var.sub_type)
error_message = "Type of template is not one of: sms, dingding, wechat, webhook, email"
}
}
variable "template_source" {
description = "The source of the notification template, currently, this parameter is mandatory to LTS"
type = string
default = "LTS"
validation {
condition = var.template_source == "LTS"
error_message = "Template source is not LTS"
}
}