https://pulumi.com logo
#getting-started
Title
# getting-started
b

better-noon-15962

09/24/2021, 11:58 AM
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

green-stone-37839

09/24/2021, 9:40 PM
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

better-noon-15962

09/27/2021, 8:03 PM
Alright thx!
3 Views