mirror of https://github.com/pulumi/pulumi.git
c4cd7214d1
Resolves https://github.com/pulumi/pulumi/issues/8753 This adds conversion operators so that you can cast a `Union<T0,T1>` or `Output<Union<T0,T1>>` to an `InputUnion<T0,T1>`. Without this conversions it wasn't possible to create an `InputUnion` with a union value, you could only give it a `T0` or `T1` (or an output of them). This also adds `Union.Bimap` to easily convert both sides of the union, it was possible to write this with match but Bimap is slightly nicer: ``` union.Match<Union<TResult0, TResult1>>(t0 => mapFunc0(t0), t1 => mapFunc1(t1))) union.Bimap(mapFunc0, mapFunc1) ``` |
||
---|---|---|
.. | ||
Core | ||
Deployment | ||
Exceptions | ||
Resources | ||
Serialization | ||
Testing | ||
AssemblyAttributes.cs | ||
Config.cs | ||
Config_Exceptions.cs | ||
Extensions.cs | ||
Log.cs | ||
PublicAPI.Shipped.txt | ||
PublicAPI.Unshipped.txt | ||
Pulumi.csproj | ||
Stack.cs |