https://pulumi.com logo
Title
m

mysterious-australia-14256

07/05/2021, 11:57 AM
Does anyone know how I can store an object of type Dictionary<string,object> in a YAML config file so that I can deserialize it into a dictionary using Pulumi.Config.RequireObject? For example my POCO class contains a property
public Dictionary<string, CustomApiConnectionParameterModel> ConnectionParameters { get; set; } = new Dictionary<string, CustomApiConnectionParameterModel>();
At the moment CustomApiConnectionParameterModel just looks like this
public class CustomApiConnectionParameterModel
{
    public CustomApiConnectionType Type { get; set; }
}
I want to be able to store a bunch of dictionary items as yaml so that I can pull them in.