crooked-jelly-50877
04/21/2020, 8:09 PMlemon-agent-27707
04/21/2020, 8:24 PMInput<T> = T | Output<T>
where T is your plain string type, and Output<T>
is a future/promise that will eventually produce a T.
In languages like Typescript and C#, we can use generics to represent this and allow using native types. In go we have to create this custom pulumi.String
<http://pulumi.Int|pulumi.Int>
etc, to work around this.
If you'd like a high level overview I recommend watching this: https://www.crowdcast.io/e/2020-04-14-PNW-Go
or crooked-jelly-50877
04/21/2020, 8:40 PMlemon-agent-27707
04/21/2020, 9:31 PM