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

miniature-leather-70472

05/18/2021, 8:06 AM
I'm working on converting some modules to the AzureNative provider, but hitting an issue with union lists. If i have a resource that accepts an
Copy code
InputList<Union<string, CertificatePermissions>>
Should I not then be able to pass it an
Copy code
InputList<CertificatePermissions>
This generates a conversion error if I try
t

tall-librarian-49374

05/18/2021, 8:23 AM
Yeah, lists. of relaxed enums are unpleasant in our .NET SDK… this is tracked in https://github.com/pulumi/pulumi/issues/5947 also see the workaround there