This message was deleted.
# typescript
s
This message was deleted.
l
Use
pulumi.output(yourInput).apply(value => {});
b
ah ok - thanks. is this the intended way to use
Input<T>
, if so, why does the
Input<T>
type exist couldn't everything just be
Output<T>
?
l
Input can be OutputInstance<T>, Promise<T> or T. It's broader
b
cool, makes sense - thanks for the explanation 👍
👍 1
l
It allows the Pulumi SDK to define parameters (especially inside the various args objects) as (for example)
Input<string>
. That way the string could come from another resource (Output<string>) or a constant (string).
💯 1