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

wet-noon-14291

05/26/2020, 7:57 AM
@tall-librarian-49374, what is the best way to create a
InputUnion
in F#? I'm using
InputUnion.op_Implicit(80)
, and that isn't pretty 🙂
t

tall-librarian-49374

05/26/2020, 7:58 AM
I suspect a better option is open a PR to add a new function here 🙂 https://github.com/pulumi/pulumi/blob/master/sdk/dotnet/Pulumi.FSharp/Library.fs
w

wet-noon-14291

05/26/2020, 8:32 AM
t

tall-librarian-49374

05/26/2020, 8:33 AM
Awesome! Is there any other similar API you can think of? Are
Of1
and
Of2
the names that are used elsewhere?
w

wet-noon-14291

05/26/2020, 8:35 AM
Choice has almost the same, can change to follow that exactly. To create a choice type you have
Choice1Of2
. that is probably nicer. 2 sec.
fixed. It is now
inputUnion1Of2
and
inputUnion2Of2
t

tall-librarian-49374

05/26/2020, 8:38 AM
SGTM!
w

wet-noon-14291

05/26/2020, 8:39 AM
SGTM? Super Good To me?
t

tall-librarian-49374

05/26/2020, 8:39 AM
Sorry 🙂 sounds good to me
w

wet-noon-14291

05/26/2020, 8:40 AM
ah, I'm using LGTM 🙂
t

tall-librarian-49374

05/26/2020, 8:40 AM
But your version is 👍 too