You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
terraform/internal/configs/testdata/valid-files/object-optional-attrs.tf

39 lines
460 B

variable "a" {
type = object({
foo = optional(string)
bar = optional(bool, true)
})
}
variable "b" {
type = list(
object({
foo = optional(string)
})
)
}
variable "c" {
type = set(
object({
foo = optional(string)
})
)
}
variable "d" {
type = map(
object({
foo = optional(string)
})
)
}
variable "e" {
type = object({
foo = string
bar = optional(bool, true)
})
default = null
}