https://pulumi.com logo
#general
Title
# general
f

full-dress-10026

06/07/2019, 4:05 PM
Can an output of a
pulumi.dynamic.Resource
be a function?
w

white-balloon-205

06/07/2019, 4:06 PM
What do you mean by "an output" in this context?
f

full-dress-10026

06/07/2019, 4:09 PM
Something like this:
Copy code
const myResource = new MyResource("my-resource");

const derivedOutput = myResource.derivedOutput("foo");
where
derivedOutput
returns an
Output
calculated from the `Output`s of
MyResource
. Writing it out like that makes me think that that should work.
Wait, how do you get the
outs
from a
ResourceProvider
?