github.com/myhau/pulumi/pkg/v3@v3.70.2-0.20221116134521-f2775972e587/codegen/testing/test/testdata/output-funcs/nodejs/funcWithConstInput.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 * Codegen demo with const inputs 9 */ 10 export function funcWithConstInput(args?: FuncWithConstInputArgs, opts?: pulumi.InvokeOptions): Promise<void> { 11 args = args || {}; 12 13 opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); 14 return pulumi.runtime.invoke("mypkg::funcWithConstInput", { 15 "plainInput": args.plainInput, 16 }, opts); 17 } 18 19 export interface FuncWithConstInputArgs { 20 plainInput?: "fixed"; 21 }