pulumi/pkg/codegen/internal/test/testdata/simple-resource-schema/docs/argfunction.md

6.7 KiB


title: "argFunction" title_tag: "example.argFunction" meta_desc: "Documentation for the example.argFunction function with examples, input properties, output properties, and supporting types."

Using argFunction

{{< chooser language "typescript,python,go,csharp" / >}}

{{% choosable language nodejs %}}

function argFunction(args: ArgFunctionArgs, opts?: InvokeOptions): Promise<ArgFunctionResult>
{{% /choosable %}}

{{% choosable language python %}}

def arg_function(arg1: Optional[Resource] = None,
                 opts: Optional[InvokeOptions] = None) -> ArgFunctionResult
{{% /choosable %}}

{{% choosable language go %}}

func ArgFunction(ctx *Context, args *ArgFunctionArgs, opts ...InvokeOption) (*ArgFunctionResult, error)

Note: This function is named ArgFunction in the Go SDK.

{{% /choosable %}}

{{% choosable language csharp %}}

public static class ArgFunction {
    public static Task<ArgFunctionResult> InvokeAsync(ArgFunctionArgs args, InvokeOptions? opts = null)
}
{{% /choosable %}}

The following arguments are supported:

{{% choosable language csharp %}}

Arg1 Pulumi.Example.Resource
{{% md %}}{{% /md %}}
{{% /choosable %}}

{{% choosable language go %}}

Arg1 Resource
{{% md %}}{{% /md %}}
{{% /choosable %}}

{{% choosable language nodejs %}}

arg1 Resource
{{% md %}}{{% /md %}}
{{% /choosable %}}

{{% choosable language python %}}

arg1 Resource
{{% md %}}{{% /md %}}
{{% /choosable %}}

argFunction Result

The following output properties are available:

{{% choosable language csharp %}}

Result Pulumi.Example.Resource
{{% md %}}{{% /md %}}
{{% /choosable %}}

{{% choosable language go %}}

Result Resource
{{% md %}}{{% /md %}}
{{% /choosable %}}

{{% choosable language nodejs %}}

result Resource
{{% md %}}{{% /md %}}
{{% /choosable %}}

{{% choosable language python %}}

result Resource
{{% md %}}{{% /md %}}
{{% /choosable %}}

Package Details

Repository
License