future-nail-5956402/12/2021, 3:18 PM
? 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?
. Thanks anyway! 👍
witty-candle-6600702/12/2021, 4:24 PM
miniature-musician-3126202/13/2021, 12:52 AM
is another option: https://www.pulumi.com/docs/intro/concepts/inputs-outputs/#convert-input-to-output-through-interpolation
little-cartoon-1056902/14/2021, 7:37 AM
would be my preferred choice.
const o: pulumi.Input<string> = pulumi.output(i);