forked from SumoLogic/terraform-sumologic-sumo-logic-monitor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
variables.tf
73 lines (69 loc) · 2.42 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
variable "access_id" {
type = string
description = "Sumo Logic Access ID. Visit https://help.sumologic.com/Manage/Security/Access-Keys#Create_an_access_key"
validation {
condition = length(var.access_id) > 0
error_message = "The \"sumo_access_id\" can not be empty."
}
}
variable "access_key" {
type = string
description = "Sumo Logic Access Key."
validation {
condition = length(var.access_key) > 0
error_message = "The \"sumo_access_key\" can not be empty."
}
}
variable "environment" {
type = string
description = "Please update with your deployment, refer: https://help.sumologic.com/APIs/General-API-Information/Sumo-Logic-Endpoints-and-Firewall-Security"
validation {
condition = contains([
"US1",
"us1","US2","us2","AU","au","CA","ca","DE","de","EU","eu","FED","fed","JP","jp","IN","in"], var.environment)
error_message = "Argument \"environment\" must be one of \"us1\",\"us2\",\"au\",\"ca\",\"de\",\"eu\",\"fed\",\"jp\",\"in\"."
}
}
variable "folder" {
type = string
description = "Folder where monitors will be created."
default = "Oracle"
}
variable "monitors_disabled" {
type = bool
description = "Whether the monitors are enabled or not?"
default = true
}
variable "connection_notifications" {
type = list(object(
{
connection_type = string,
connection_id = string,
payload_override = string,
run_for_trigger_types = list(string)
}
))
description = "Connection Notifications to be sent by the alert."
}
variable "email_notifications" {
type = list(object(
{
connection_type = string,
recipients = list(string),
subject = string,
time_zone = string,
message_body = string,
run_for_trigger_types = list(string)
}
))
description = "Email Notifications to be sent by the alert."
}
variable "group_notifications" {
type = bool
description = "Whether or not to group notifications for individual items that meet the trigger condition. Defaults to true."
default = true
}
variable "oracle_data_source" {
type = string
description = "Sumo Logic Oracle Cluster Filter. For eg: db_cluster=oracle.prod.01"
}