github.com/myhau/pulumi/pkg/v3@v3.70.2-0.20221116134521-f2775972e587/codegen/testing/test/testdata/output-funcs/nodejs/funcWithAllOptionalInputs.ts (about) 1 // *** WARNING: this file was generated by test. *** 2 // *** Do not edit by hand unless you're certain you know what you are doing! *** 3 4 import * as pulumi from "@pulumi/pulumi"; 5 import * as utilities from "./utilities"; 6 7 /** 8 * Check codegen of functions with all optional inputs. 9 */ 10 export function funcWithAllOptionalInputs(args?: FuncWithAllOptionalInputsArgs, opts?: pulumi.InvokeOptions): Promise<FuncWithAllOptionalInputsResult> { 11 args = args || {}; 12 13 opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); 14 return pulumi.runtime.invoke("mypkg::funcWithAllOptionalInputs", { 15 "a": args.a, 16 "b": args.b, 17 }, opts); 18 } 19 20 export interface FuncWithAllOptionalInputsArgs { 21 /** 22 * Property A 23 */ 24 a?: string; 25 /** 26 * Property B 27 */ 28 b?: string; 29 } 30 31 export interface FuncWithAllOptionalInputsResult { 32 readonly r: string; 33 } 34 35 export function funcWithAllOptionalInputsOutput(args?: FuncWithAllOptionalInputsOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<FuncWithAllOptionalInputsResult> { 36 return pulumi.output(args).apply(a => funcWithAllOptionalInputs(a, opts)) 37 } 38 39 export interface FuncWithAllOptionalInputsOutputArgs { 40 /** 41 * Property A 42 */ 43 a?: pulumi.Input<string>; 44 /** 45 * Property B 46 */ 47 b?: pulumi.Input<string>; 48 }