Add F# operators for InputUnion (#4699)

This commit is contained in:
Tomas Jansson 2020-05-26 14:18:56 +02:00 committed by GitHub
parent f613b6917b
commit 1bdfd3dd41
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 14 additions and 0 deletions

View file

@ -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)

View file

@ -33,6 +33,17 @@ module Ops =
result.Add item
result
/// <summary>
/// Wraps a raw value for the first type into an <see cref="InputUnion{'a,'b}" />.
/// </summary>
let inputUnion1Of2<'a, 'b> (valA: 'a) = InputUnion<'a, 'b>.op_Implicit(valA)
/// <summary>
/// Wraps a raw value for the second type into an <see cref="InputUnion{'a,'b}" />.
/// </summary>
let inputUnion2Of2<'a, 'b> (valB: 'b) = InputUnion<'a, 'b>.op_Implicit(valB)
/// <summary>
/// Pulumi deployment functions.
/// </summary>