1. Packages
  2. Standard Library
  3. API Docs
  4. matchkeys
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

    For two lists values and keys of equal length, returns all elements from values where the corresponding element from keys exists in the searchset list.

    Using matchkeys

    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 matchkeys(args: MatchkeysArgs, opts?: InvokeOptions): Promise<MatchkeysResult>
    function matchkeysOutput(args: MatchkeysOutputArgs, opts?: InvokeOptions): Output<MatchkeysResult>
    def matchkeys(search_list: Optional[Sequence[str]] = None,
                  values: Optional[Sequence[str]] = None,
                  opts: Optional[InvokeOptions] = None) -> MatchkeysResult
    def matchkeys_output(search_list: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                  values: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                  opts: Optional[InvokeOptions] = None) -> Output[MatchkeysResult]
    func Matchkeys(ctx *Context, args *MatchkeysArgs, opts ...InvokeOption) (*MatchkeysResult, error)
    func MatchkeysOutput(ctx *Context, args *MatchkeysOutputArgs, opts ...InvokeOption) MatchkeysResultOutput

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

    public static class Matchkeys 
    {
        public static Task<MatchkeysResult> InvokeAsync(MatchkeysArgs args, InvokeOptions? opts = null)
        public static Output<MatchkeysResult> Invoke(MatchkeysInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<MatchkeysResult> matchkeys(MatchkeysArgs args, InvokeOptions options)
    public static Output<MatchkeysResult> matchkeys(MatchkeysArgs args, InvokeOptions options)
    
    fn::invoke:
      function: std:matchkeys
      arguments:
        # arguments dictionary

    The following arguments are supported:

    SearchList List<string>
    Values List<string>
    SearchList []string
    Values []string
    searchList List<String>
    values List<String>
    searchList string[]
    values string[]
    search_list Sequence[str]
    values Sequence[str]
    searchList List<String>
    values List<String>

    matchkeys Result

    The following output properties are available:

    Result List<string>
    Result []string
    result List<String>
    result string[]
    result Sequence[str]
    result List<String>

    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