mysterious-australia-14256
07/17/2023, 7:40 PMvar protocols = new Pulumi.InputList<APIM.Protocol>();
protocols.Add(APIM.Protocol.Https);
protocols.Add(APIM.Protocol.Http);
var apiArgs = new APIM.ApiArgs
{
Protocols = protocols
,
};
The error I get with this is
Cannot implicitly convert type 'Pulumi.InputList<Pulumi.AzureNative.ApiManagement.Protocol>' to 'Pulumi.InputList<Pulumi.Union<string, Pulumi.AzureNative.ApiManagement.Protocol>>'
The docs site just shows setting
Protocols = new[]
{
"https",
"http",
}
But that also fails for me with a similar error
Cannot implicitly convert type string[] to 'Pulumi.InputList<Pulumi.Union<string, Pulumi.AzureNative.ApiManagement.Protocol>>'
Can someone let me know the correct syntax for this?
Cheers
AlanNo matter how you like to participate in developer communities, Pulumi wants to meet you there. If you want to meet other Pulumi users to share use-cases and best practices, contribute code or documentation, see us at an event, or just tell a story about something cool you did with Pulumi, you are part of our community.
Powered by