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
Takes a map of lists of strings and swaps the keys and values to return a new map of lists of strings.
Using transpose
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 transpose(args: TransposeArgs, opts?: InvokeOptions): Promise<TransposeResult>
function transposeOutput(args: TransposeOutputArgs, opts?: InvokeOptions): Output<TransposeResult>def transpose(input: Optional[Mapping[str, Sequence[str]]] = None,
opts: Optional[InvokeOptions] = None) -> TransposeResult
def transpose_output(input: Optional[pulumi.Input[Mapping[str, pulumi.Input[Sequence[pulumi.Input[str]]]]]] = None,
opts: Optional[InvokeOptions] = None) -> Output[TransposeResult]func Transpose(ctx *Context, args *TransposeArgs, opts ...InvokeOption) (*TransposeResult, error)
func TransposeOutput(ctx *Context, args *TransposeOutputArgs, opts ...InvokeOption) TransposeResultOutput> Note: This function is named Transpose in the Go SDK.
public static class Transpose
{
public static Task<TransposeResult> InvokeAsync(TransposeArgs args, InvokeOptions? opts = null)
public static Output<TransposeResult> Invoke(TransposeInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<TransposeResult> transpose(TransposeArgs args, InvokeOptions options)
public static Output<TransposeResult> transpose(TransposeArgs args, InvokeOptions options)
fn::invoke:
function: std:transpose
arguments:
# arguments dictionaryThe following arguments are supported:
- Input
Dictionary<string, Immutable
Array<string>>
- Input map[string][]string
- input Map<String,List<String>>
- input {[key: string]: string[]}
- input Mapping[str, Sequence[str]]
- input Map<List<String>>
transpose Result
The following output properties are available:
- Result
Dictionary<string, Immutable
Array<string>>
- Result map[string][]string
- result Map<String,List<String>>
- result {[key: string]: string[]}
- result Mapping[str, Sequence[str]]
- result Map<List<String>>
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
