https://pulumi.com logo
#dotnet
Title
# dotnet
p

plain-tiger-79744

04/08/2020, 7:26 AM
Why is it not possible to use my own POCO when using [Output] Output<T> ? It seems like you have some marker attributes, but those also don't help. Is a dictionary the only way to produce complex outputs? See also: https://github.com/pulumi/pulumi/issues/3690
t

tall-librarian-49374

04/08/2020, 9:23 AM
There’s an issues tracking this https://github.com/pulumi/pulumi/issues/3690
p

plain-tiger-79744

04/08/2020, 9:24 AM
Almost simultaneous idea 😛
t

tall-librarian-49374

04/08/2020, 9:24 AM
Ah I see your comment now
p

plain-tiger-79744

04/08/2020, 9:25 AM
Could I use class with properties of Type Output<T> ?
Not quite sure if this would help. I think I will try the dictionary approach for now.
@tall-librarian-49374 I am struggling with adding multiple values (Output<string>) into a Output<Dictionary<string , object>>. e.g. Adding the SiteUsername and SitePassword into a dictionary. How is that possible?
t

tall-librarian-49374

04/08/2020, 2:01 PM
What’s the problem?
Btw, I believe your output should be an ImmutableDictionary
p

plain-tiger-79744

04/14/2020, 8:12 AM
Yes, I got it.