-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathvariables.tf
More file actions
55 lines (47 loc) · 1.62 KB
/
variables.tf
File metadata and controls
55 lines (47 loc) · 1.62 KB
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
variable "name" {
description = "value of the name of the diagnostic setting"
type = string
validation {
condition = can(regex("^[a-zA-Z0-9][a-zA-Z0-9-_]{0,78}[a-zA-Z0-9]$", var.name))
error_message = "The Diagnostic Setting name must be between 1 and 80 characters, start with an alphanumeric character, end with an alphanumeric character, and can only contain alphanumeric characters, hyphens, and underscores."
}
}
variable "enabled_log" {
type = list(string)
description = "value of the enabled log"
default = []
}
variable "eventhub_authorization_rule_id" {
type = string
description = "value of the eventhub authorization rule id"
default = null
}
variable "eventhub_name" {
type = string
description = "value of the EventHub name if logging to an EventHub."
default = null
}
variable "log_analytics_workspace_id" {
type = string
description = "Identifier of a log analytics workspace to send resource logging to via diagnostic settings if logging to log analytic workspace is being used."
default = null
}
variable "enabled_metric" {
type = list(string)
description = "value of the metric"
default = []
}
variable "metric_enabled" {
type = bool
description = "True to retain diagnostic setting metrics, false otherwise"
default = true
}
variable "storage_account_id" {
type = string
description = "value of the storage account id if logging to storage account is being used."
default = null
}
variable "target_resource_id" {
type = string
description = "value of the target resource id"
}