From 1bdfd3dd41a0568a4c63bd8ac5c735b51192435a Mon Sep 17 00:00:00 2001 From: Tomas Jansson Date: Tue, 26 May 2020 14:18:56 +0200 Subject: [PATCH] Add F# operators for InputUnion (#4699) --- CHANGELOG.md | 3 +++ sdk/dotnet/Pulumi.FSharp/Library.fs | 11 +++++++++++ 2 files changed, 14 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index d5a907505..8f793c541 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,9 @@ CHANGELOG ## HEAD (Unreleased) +- Add F# operators for InputUnion. + [#4699](https://github.com/pulumi/pulumi/pull/4699) + - Add support for untagged outputs in Go SDK. [#4640](https://github.com/pulumi/pulumi/pull/4640) diff --git a/sdk/dotnet/Pulumi.FSharp/Library.fs b/sdk/dotnet/Pulumi.FSharp/Library.fs index dc0db353f..0006d783b 100644 --- a/sdk/dotnet/Pulumi.FSharp/Library.fs +++ b/sdk/dotnet/Pulumi.FSharp/Library.fs @@ -33,6 +33,17 @@ module Ops = result.Add item result + /// + /// Wraps a raw value for the first type into an . + /// + let inputUnion1Of2<'a, 'b> (valA: 'a) = InputUnion<'a, 'b>.op_Implicit(valA) + + /// + /// Wraps a raw value for the second type into an . + /// + let inputUnion2Of2<'a, 'b> (valB: 'b) = InputUnion<'a, 'b>.op_Implicit(valB) + + /// /// Pulumi deployment functions. ///