github.com/pulumi/terraform@v1.4.0/pkg/configs/testdata/valid-files/object-optional-attrs.tf (about) 1 variable "a" { 2 type = object({ 3 foo = optional(string) 4 bar = optional(bool, true) 5 }) 6 } 7 8 variable "b" { 9 type = list( 10 object({ 11 foo = optional(string) 12 }) 13 ) 14 } 15 16 variable "c" { 17 type = set( 18 object({ 19 foo = optional(string) 20 }) 21 ) 22 } 23 24 variable "d" { 25 type = map( 26 object({ 27 foo = optional(string) 28 }) 29 ) 30 } 31 32 variable "e" { 33 type = object({ 34 foo = string 35 bar = optional(bool, true) 36 }) 37 default = null 38 }