Viewing docs for StandardLibrary v2.3.2
published on Tuesday, Feb 10, 2026 by Pulumi
published on Tuesday, Feb 10, 2026 by Pulumi
Viewing docs for StandardLibrary v2.3.2
published on Tuesday, Feb 10, 2026 by Pulumi
published on Tuesday, Feb 10, 2026 by Pulumi
Finds the index of a given element in a list.
Using index
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 index(args: IndexArgs, opts?: InvokeOptions): Promise<IndexResult>
function indexOutput(args: IndexOutputArgs, opts?: InvokeOptions): Output<IndexResult>def index(element: Optional[Any] = None,
input: Optional[Sequence[Any]] = None,
opts: Optional[InvokeOptions] = None) -> IndexResult
def index_output(element: Optional[Any] = None,
input: Optional[pulumi.Input[Sequence[Any]]] = None,
opts: Optional[InvokeOptions] = None) -> Output[IndexResult]func Index(ctx *Context, args *IndexArgs, opts ...InvokeOption) (*IndexResult, error)
func IndexOutput(ctx *Context, args *IndexOutputArgs, opts ...InvokeOption) IndexResultOutput> Note: This function is named Index in the Go SDK.
public static class Index
{
public static Task<IndexResult> InvokeAsync(IndexArgs args, InvokeOptions? opts = null)
public static Output<IndexResult> Invoke(IndexInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<IndexResult> index(IndexArgs args, InvokeOptions options)
public static Output<IndexResult> index(IndexArgs args, InvokeOptions options)
fn::invoke:
function: std:index
arguments:
# arguments dictionaryThe following arguments are supported:
index Result
The following output properties are available:
- Result int
- Result int
- result Integer
- result number
- result int
- result Number
Package Details
- Repository
- std pulumi/pulumi-std
- License
Viewing docs for StandardLibrary v2.3.2
published on Tuesday, Feb 10, 2026 by Pulumi
published on Tuesday, Feb 10, 2026 by Pulumi
