pulumi/tests/testdata/codegen/output-funcs/nodejs/funcWithDefaultValue.ts

41 lines
1.3 KiB
TypeScript

// *** WARNING: this file was generated by test. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
import * as pulumi from "@pulumi/pulumi";
import * as utilities from "./utilities";
/**
* Check codegen of functions with default values.
*/
export function funcWithDefaultValue(args: FuncWithDefaultValueArgs, opts?: pulumi.InvokeOptions): Promise<FuncWithDefaultValueResult> {
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invoke("mypkg::funcWithDefaultValue", {
"a": args.a,
"b": args.b,
}, opts);
}
export interface FuncWithDefaultValueArgs {
a: string;
b?: string;
}
export interface FuncWithDefaultValueResult {
readonly r: string;
}
/**
* Check codegen of functions with default values.
*/
export function funcWithDefaultValueOutput(args: FuncWithDefaultValueOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<FuncWithDefaultValueResult> {
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invokeOutput("mypkg::funcWithDefaultValue", {
"a": args.a,
"b": args.b,
}, opts);
}
export interface FuncWithDefaultValueOutputArgs {
a: pulumi.Input<string>;
b?: pulumi.Input<string>;
}