pulumi/tests/testdata/codegen/regress-node-8110/docs/examplefunc/_index.md

7.9 KiB


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

Using exampleFunc

function exampleFunc(args: ExampleFuncArgs, opts?: InvokeOptions): Promise<ExampleFuncResult>
def example_func(enums: Optional[Sequence[Union[str, MyEnum]]] = None,
                 opts: Optional[InvokeOptions] = None) -> ExampleFuncResult
func ExampleFunc(ctx *Context, args *ExampleFuncArgs, opts ...InvokeOption) (*ExampleFuncResult, error)

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

public static class ExampleFunc 
{
    public static Task<ExampleFuncResult> InvokeAsync(ExampleFuncArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<ExampleFuncResult> exampleFunc(ExampleFuncArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
  function: my8110:exampleFunc
  arguments:
    # arguments dictionary

The following arguments are supported:

Enums List<Union<string, Pulumi.My8110.MyEnum>>
Enums []string
enums List<Either<String,MyEnum>>
enums (string | MyEnum)[]
enums Sequence[Union[str, MyEnum]]
enums List<String | "one" | "two">

exampleFunc Result

The following output properties are available:

Supporting Types

MyEnum

Package Details

Repository
my8110
License