Files
tree-sitter-jhcl/fuzz/corpus/hashicorp%terraforminternal%terraform%testdata%input-variables%main.tf
2021-09-19 12:00:18 +02:00

31 lines
342 B
HCL

# Required
variable "foo" {
}
# Optional
variable "bar" {
default = "baz"
}
# Mapping
variable "map" {
default = {
foo = "bar"
}
}
# Complex Object Types
variable "object_map" {
type = map(object({
foo = string,
bar = any
}))
}
variable "object_list" {
type = list(object({
foo = string,
bar = any
}))
}