1. Packages
  2. Standard Library
  3. API Docs
  4. map
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 a map consisting of the key/value pairs specified as arguments.

    Using map

    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 map(args: MapArgs, opts?: InvokeOptions): Promise<MapResult>
    function mapOutput(args: MapOutputArgs, opts?: InvokeOptions): Output<MapResult>
    def map(args: Optional[Sequence[Any]] = None,
            opts: Optional[InvokeOptions] = None) -> MapResult
    def map_output(args: Optional[pulumi.Input[Sequence[Any]]] = None,
            opts: Optional[InvokeOptions] = None) -> Output[MapResult]
    func Map(ctx *Context, args *MapArgs, opts ...InvokeOption) (*MapResult, error)
    func MapOutput(ctx *Context, args *MapOutputArgs, opts ...InvokeOption) MapResultOutput

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

    public static class Map 
    {
        public static Task<MapResult> InvokeAsync(MapArgs args, InvokeOptions? opts = null)
        public static Output<MapResult> Invoke(MapInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<MapResult> map(MapArgs args, InvokeOptions options)
    public static Output<MapResult> map(MapArgs args, InvokeOptions options)
    
    fn::invoke:
      function: std:map
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Args List<object>
    Args []interface{}
    args List<Object>
    args any[]
    args Sequence[Any]
    args List<Any>

    map Result

    The following output properties are available:

    Result Dictionary<string, object>
    Result map[string]interface{}
    result Map<String,Object>
    result {[key: string]: any}
    result Mapping[str, Any]
    result Map<Any>

    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