e.g instead of ```type ConfigResource struct { s...
# golang
w
e.g instead of
Copy code
type ConfigResource struct {
  section ConfigResourceSection
}

type ConfigResourceSection struct {
  field string
}
have
Copy code
type ConfigResource struct {
  section ConfigResourceSection // or SomeSpecArgs
}

type ConfigResourceSection struct {
  field pulumi.StringInput
}
b
No you can't. Under the hood, pulumi's config pkg is using the built in
json
un-marshaling to parse the configuration values, and you can only un-marshal to simple types (e.g, int, string) and not complex ones (e.g. pulumi.Int or pulumi.String)
👍 1
w
thank you!