Hi guys, is there an example somewhere of usage of...
# getting-started
b
Hi guys, is there an example somewhere of usage of
[OutputTypeAttribute]
and
[OutputConstructorAttribute]
(c#) ? I'm looking to output stuff in hierarchy. Ex:
Copy code
{
  logging: {
    AppInsights: {
      InstrumentationKey: "...",
    },
    ...<other logging stuff>
  },
  ... <other stuff>
}
Using ImmutableDictionnary seem to display secrets when executing `pulumi output`😞 Thanks!
g
The Pulumi
dotnet
provider currently does not support outputs of user-defined (POCO) types. There is an on-going github issue tracking this effort and please give it an upvote, if you'd like to see this feature. There are a few workarounds that can accomplish what you're trying to do, mainly serializing an object to JSON string and outputting the string.
b
Alright thx!