gray-city-50684
03/03/2020, 4:45 PMgorgeous-egg-16927
03/03/2020, 4:47 PMconst foo: pulumi.Input<string> = "possibly-unknown-value"
pulumi.output(foo).apply(foo => {
if (foo === "bar") {
console.log("it's a bar")
}
})
gray-city-50684
03/03/2020, 4:50 PMgorgeous-egg-16927
03/03/2020, 4:54 PMapply
, but can cause inaccurate previews, and isn’t recommended if you can avoid it. https://www.pulumi.com/docs/intro/concepts/programming-model/#applygray-city-50684
03/03/2020, 4:55 PM