future-nail-59564
02/12/2021, 3:18 PMOutput<string>
? I have a custom component that returns a string output: in some cases it will return an output from a child resource, but in some cases the value will be known immediately/synchronously and I want to return it in the same output property. What’s the simplest syntax to return such a string as output?Output.create(…)
. Thanks anyway! 👍witty-candle-66007
02/12/2021, 4:24 PMminiature-musician-31262
02/13/2021, 12:52 AMpulumi.output
is another option: https://www.pulumi.com/docs/intro/concepts/inputs-outputs/#convert-input-to-output-through-interpolationlittle-cartoon-10569
02/14/2021, 7:37 AMpulumi.output
would be my preferred choice.
const o: pulumi.Input<string> = pulumi.output(i);