pulumi/tests/testdata/codegen/output-funcs/docs/funcwithdefaultvalue/_index.md

15 KiB


title: "funcWithDefaultValue" title_tag: "mypkg.funcWithDefaultValue" meta_desc: "Documentation for the mypkg.funcWithDefaultValue function with examples, input properties, output properties, and supporting types." layout: api no_edit_this_page: true

Check codegen of functions with default values.

Using funcWithDefaultValue

Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

function funcWithDefaultValue(args: FuncWithDefaultValueArgs, opts?: InvokeOptions): Promise<FuncWithDefaultValueResult>
function funcWithDefaultValueOutput(args: FuncWithDefaultValueOutputArgs, opts?: InvokeOptions): Output<FuncWithDefaultValueResult>
def func_with_default_value(a: Optional[str] = None,
                            b: Optional[str] = None,
                            opts: Optional[InvokeOptions] = None) -> FuncWithDefaultValueResult
def func_with_default_value_output(a: Optional[pulumi.Input[str]] = None,
                            b: Optional[pulumi.Input[str]] = None,
                            opts: Optional[InvokeOptions] = None) -> Output[FuncWithDefaultValueResult]
func FuncWithDefaultValue(ctx *Context, args *FuncWithDefaultValueArgs, opts ...InvokeOption) (*FuncWithDefaultValueResult, error)
func FuncWithDefaultValueOutput(ctx *Context, args *FuncWithDefaultValueOutputArgs, opts ...InvokeOption) FuncWithDefaultValueResultOutput

> Note: This function is named FuncWithDefaultValue in the Go SDK.

public static class FuncWithDefaultValue 
{
    public static Task<FuncWithDefaultValueResult> InvokeAsync(FuncWithDefaultValueArgs args, InvokeOptions? opts = null)
    public static Output<FuncWithDefaultValueResult> Invoke(FuncWithDefaultValueInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<FuncWithDefaultValueResult> funcWithDefaultValue(FuncWithDefaultValueArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
  function: mypkg:funcWithDefaultValue
  arguments:
    # arguments dictionary

The following arguments are supported:

A string
B string
A string
B string
a String
b String
a string
b string
a str
b str
a String
b String

funcWithDefaultValue Result

The following output properties are available:

R string
R string
r String
r string
r str
r String

Package Details

Repository
mypkg
License