Why is it not possible to use my own POCO when usi...
# dotnet
p
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
There’s an issues tracking this https://github.com/pulumi/pulumi/issues/3690
p
Almost simultaneous idea 😛
t
Ah I see your comment now
p
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
What’s the problem?
Btw, I believe your output should be an ImmutableDictionary
p
Yes, I got it.