-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvariables.tf
46 lines (39 loc) · 1.06 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
variable "datadog_api_key" {
type = string
sensitive = true
}
variable "datadog_firehose_endpoint" {
type = string
validation {
condition = contains([
"https://awsmetrics-intake.datadoghq.com/v1/input",
"https://awsmetrics-intake.datadoghq.eu/v1/input",
], var.datadog_firehose_endpoint)
error_message = "Invalid Datadog Kinesis Firehose endpoint."
}
}
variable "datadog_metric_stream_filters" {
type = list(object({
namespace = string
metric_names = optional(list(string))
}))
default = []
}
variable "datadog_metric_statistics_configurations" {
type = list(object({
additional_statistics = list(string)
include_metric = list(object({
namespace = string
metric_name = string
}))
}))
default = []
}
variable "datadog_buffering_interval_seconds" {
type = number
default = 60
validation {
condition = var.datadog_buffering_interval_seconds >= 0 && var.datadog_buffering_interval_seconds <= 900
error_message = "Allowed buffering interval between 0-900 seconds."
}
}