pulumi/tests/testdata/codegen/external-resource-schema/docs/argfunction/_index.md

13 KiB


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

Using argFunction

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 argFunction(args: ArgFunctionArgs, opts?: InvokeOptions): Promise<ArgFunctionResult>
function argFunctionOutput(args: ArgFunctionOutputArgs, opts?: InvokeOptions): Output<ArgFunctionResult>
def arg_function(name: Optional[pulumi_random.RandomPet] = None,
                 opts: Optional[InvokeOptions] = None) -> ArgFunctionResult
def arg_function_output(name: Optional[pulumi.Input[pulumi_random.RandomPet]] = None,
                 opts: Optional[InvokeOptions] = None) -> Output[ArgFunctionResult]
func ArgFunction(ctx *Context, args *ArgFunctionArgs, opts ...InvokeOption) (*ArgFunctionResult, error)
func ArgFunctionOutput(ctx *Context, args *ArgFunctionOutputArgs, opts ...InvokeOption) ArgFunctionResultOutput

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

public static class ArgFunction 
{
    public static Task<ArgFunctionResult> InvokeAsync(ArgFunctionArgs args, InvokeOptions? opts = null)
    public static Output<ArgFunctionResult> Invoke(ArgFunctionInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<ArgFunctionResult> argFunction(ArgFunctionArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
  function: example:argFunction
  arguments:
    # arguments dictionary

The following arguments are supported:

Name Pulumi.Random.RandomPet
This type is defined in the random package.
Name RandomPet
This type is defined in the random package.
name RandomPet
This type is defined in the random package.
name pulumiRandomRandomPet
This type is defined in the random package.
name pulumi_random.RandomPet
This type is defined in the random package.
name random:RandomPet
This type is defined in the random package.

argFunction Result

The following output properties are available:

Age int
Age int
age Integer
age number
age int
age Number

Package Details

Repository
example
License