-
Notifications
You must be signed in to change notification settings - Fork 0
/
variables.tf
21 lines (18 loc) · 960 Bytes
/
variables.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
variable "labels" {
description = "A set of key/value label pairs to assign to this Topic."
type = map(string)
default = {}
}
variable "message_retention_duration" {
default = "2678400s"
description = "Indicates the minimum duration to retain a message after it is published to the topic. If this field is set, messages published to the topic in the last messageRetentionDuration are always available to subscribers. For instance, it allows any attached subscription to seek to a timestamp that is up to messageRetentionDuration in the past. If this field is not set, message retention is controlled by settings on individual subscriptions."
type = string
validation {
condition = can(regex("^\\d+s$", var.message_retention_duration))
error_message = "Value must be a duration represented in seconds. Example: 86400s"
}
}
variable "topic_name" {
description = "Name of the topic."
type = string
}