pulumi/pkg/codegen/internal/test/testdata/external-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(name: Optional[pulumi_random.RandomPet] = 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 %}}

Name Pulumi.Random.RandomPet
{{% md %}}{{% /md %}}
{{% /choosable %}}

{{% choosable language go %}}

Name RandomPet
{{% md %}}{{% /md %}}
{{% /choosable %}}

{{% choosable language nodejs %}}

name randomRandomPet
{{% md %}}{{% /md %}}
{{% /choosable %}}

{{% choosable language python %}}

name RandomPet
{{% md %}}{{% /md %}}
{{% /choosable %}}

argFunction Result

The following output properties are available:

{{% choosable language csharp %}}

Age int
{{% md %}}{{% /md %}}
{{% /choosable %}}

{{% choosable language go %}}

Age int
{{% md %}}{{% /md %}}
{{% /choosable %}}

{{% choosable language nodejs %}}

age number
{{% md %}}{{% /md %}}
{{% /choosable %}}

{{% choosable language python %}}

age int
{{% md %}}{{% /md %}}
{{% /choosable %}}

Package Details

Repository
License