1. Packages
  2. Standard Library
  3. API Docs
  4. alltrue
StandardLibrary v2.3.2 published on Tuesday, Feb 10, 2026 by Pulumi
std logo
StandardLibrary v2.3.2 published on Tuesday, Feb 10, 2026 by Pulumi

    Returns true if all elements in a given collection are true or "true". It also returns true if the collection is empty.

    Using alltrue

    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 alltrue(args: AlltrueArgs, opts?: InvokeOptions): Promise<AlltrueResult>
    function alltrueOutput(args: AlltrueOutputArgs, opts?: InvokeOptions): Output<AlltrueResult>
    def alltrue(input: Optional[Sequence[Any]] = None,
                opts: Optional[InvokeOptions] = None) -> AlltrueResult
    def alltrue_output(input: Optional[pulumi.Input[Sequence[Any]]] = None,
                opts: Optional[InvokeOptions] = None) -> Output[AlltrueResult]
    func Alltrue(ctx *Context, args *AlltrueArgs, opts ...InvokeOption) (*AlltrueResult, error)
    func AlltrueOutput(ctx *Context, args *AlltrueOutputArgs, opts ...InvokeOption) AlltrueResultOutput

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

    public static class Alltrue 
    {
        public static Task<AlltrueResult> InvokeAsync(AlltrueArgs args, InvokeOptions? opts = null)
        public static Output<AlltrueResult> Invoke(AlltrueInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<AlltrueResult> alltrue(AlltrueArgs args, InvokeOptions options)
    public static Output<AlltrueResult> alltrue(AlltrueArgs args, InvokeOptions options)
    
    fn::invoke:
      function: std:alltrue
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Input List<object>
    Input []interface{}
    input List<Object>
    input any[]
    input Sequence[Any]
    input List<Any>

    alltrue Result

    The following output properties are available:

    Result bool
    Result bool
    result Boolean
    result boolean
    result bool
    result Boolean

    Package Details

    Repository
    std pulumi/pulumi-std
    License
    std logo
    StandardLibrary v2.3.2 published on Tuesday, Feb 10, 2026 by Pulumi
      Meet Neo: Your AI Platform Teammate