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
Determines the length of a given list, map, or string.
Using length
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 length(args: LengthArgs, opts?: InvokeOptions): Promise<LengthResult>
function lengthOutput(args: LengthOutputArgs, opts?: InvokeOptions): Output<LengthResult>def length(input: Optional[Any] = None,
opts: Optional[InvokeOptions] = None) -> LengthResult
def length_output(input: Optional[Any] = None,
opts: Optional[InvokeOptions] = None) -> Output[LengthResult]func Length(ctx *Context, args *LengthArgs, opts ...InvokeOption) (*LengthResult, error)
func LengthOutput(ctx *Context, args *LengthOutputArgs, opts ...InvokeOption) LengthResultOutput> Note: This function is named Length in the Go SDK.
public static class Length
{
public static Task<LengthResult> InvokeAsync(LengthArgs args, InvokeOptions? opts = null)
public static Output<LengthResult> Invoke(LengthInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<LengthResult> length(LengthArgs args, InvokeOptions options)
public static Output<LengthResult> length(LengthArgs args, InvokeOptions options)
fn::invoke:
function: std:length
arguments:
# arguments dictionaryThe following arguments are supported:
- Input object
- Input interface{}
- input Object
- input any
- input Any
- input Any
length 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
