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 dictionaryThe following arguments are supported:
- Search
List List<string> - Values List<string>
- Search
List []string - Values []string
- search
List List<String> - values List<String>
- search
List string[] - values string[]
- search_
list Sequence[str] - values Sequence[str]
- search
List 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
