1. Packages
  2. Packages
  3. Elasticstack Provider
  4. API Docs
  5. ApmSourceMap
Viewing docs for elasticstack 0.15.0
published on Thursday, May 14, 2026 by elastic
Viewing docs for elasticstack 0.15.0
published on Thursday, May 14, 2026 by elastic

    Uploads and manages an APM source map artifact. Source maps allow APM to un-minify JavaScript stack traces.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as elasticstack from "@pulumi/elasticstack";
    
    // Example 1: Upload a source map using inline JSON content.
    // sourcemap.json is write-only and never read back from the API.
    const exampleJson = new elasticstack.ApmSourceMap("example_json", {
        serviceName: "my-frontend",
        serviceVersion: "1.0.0",
        bundleFilepath: "/static/js/main.chunk.js",
        sourcemap: {
            json: JSON.stringify({
                version: 3,
                file: "main.chunk.js",
                sources: ["src/index.js"],
                mappings: "AAAA",
            }),
        },
    });
    // Example 2: Upload a source map using base64-encoded binary content,
    // scoped to a non-default Kibana space.
    // sourcemap.binary is write-only and never read back from the API.
    const exampleSpace = new elasticstack.ApmSourceMap("example_space", {
        serviceName: "my-frontend",
        serviceVersion: "2.0.0",
        bundleFilepath: "/static/js/main.chunk.js",
        sourcemap: {
            binary: "eyJ2ZXJzaW9uIjozLCJmaWxlIjoibWFpbi5jaHVuay5qcyIsInNvdXJjZXMiOlsic3JjL2luZGV4LmpzIl0sIm1hcHBpbmdzIjoiQUFBQSJ9",
        },
        spaceId: "my-space",
    });
    // Example 3: Upload a source map from a local file.
    // sourcemap.file.checksum is computed automatically from the file contents.
    const exampleFile = new elasticstack.ApmSourceMap("example_file", {
        serviceName: "my-frontend",
        serviceVersion: "3.0.0",
        bundleFilepath: "/static/js/main.chunk.js",
        sourcemap: {
            file: {
                path: "/path/to/main.chunk.js.map",
            },
        },
    });
    
    import pulumi
    import json
    import pulumi_elasticstack as elasticstack
    
    # Example 1: Upload a source map using inline JSON content.
    # sourcemap.json is write-only and never read back from the API.
    example_json = elasticstack.ApmSourceMap("example_json",
        service_name="my-frontend",
        service_version="1.0.0",
        bundle_filepath="/static/js/main.chunk.js",
        sourcemap={
            "json": json.dumps({
                "version": 3,
                "file": "main.chunk.js",
                "sources": ["src/index.js"],
                "mappings": "AAAA",
            }),
        })
    # Example 2: Upload a source map using base64-encoded binary content,
    # scoped to a non-default Kibana space.
    # sourcemap.binary is write-only and never read back from the API.
    example_space = elasticstack.ApmSourceMap("example_space",
        service_name="my-frontend",
        service_version="2.0.0",
        bundle_filepath="/static/js/main.chunk.js",
        sourcemap={
            "binary": "eyJ2ZXJzaW9uIjozLCJmaWxlIjoibWFpbi5jaHVuay5qcyIsInNvdXJjZXMiOlsic3JjL2luZGV4LmpzIl0sIm1hcHBpbmdzIjoiQUFBQSJ9",
        },
        space_id="my-space")
    # Example 3: Upload a source map from a local file.
    # sourcemap.file.checksum is computed automatically from the file contents.
    example_file = elasticstack.ApmSourceMap("example_file",
        service_name="my-frontend",
        service_version="3.0.0",
        bundle_filepath="/static/js/main.chunk.js",
        sourcemap={
            "file": {
                "path": "/path/to/main.chunk.js.map",
            },
        })
    
    package main
    
    import (
    	"encoding/json"
    
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/elasticstack/elasticstack"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		tmpJSON0, err := json.Marshal(map[string]interface{}{
    			"version": 3,
    			"file":    "main.chunk.js",
    			"sources": []string{
    				"src/index.js",
    			},
    			"mappings": "AAAA",
    		})
    		if err != nil {
    			return err
    		}
    		json0 := string(tmpJSON0)
    		// Example 1: Upload a source map using inline JSON content.
    		// sourcemap.json is write-only and never read back from the API.
    		_, err = elasticstack.NewApmSourceMap(ctx, "example_json", &elasticstack.ApmSourceMapArgs{
    			ServiceName:    pulumi.String("my-frontend"),
    			ServiceVersion: pulumi.String("1.0.0"),
    			BundleFilepath: pulumi.String("/static/js/main.chunk.js"),
    			Sourcemap: &elasticstack.ApmSourceMapSourcemapArgs{
    				Json: pulumi.String(json0),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		// Example 2: Upload a source map using base64-encoded binary content,
    		// scoped to a non-default Kibana space.
    		// sourcemap.binary is write-only and never read back from the API.
    		_, err = elasticstack.NewApmSourceMap(ctx, "example_space", &elasticstack.ApmSourceMapArgs{
    			ServiceName:    pulumi.String("my-frontend"),
    			ServiceVersion: pulumi.String("2.0.0"),
    			BundleFilepath: pulumi.String("/static/js/main.chunk.js"),
    			Sourcemap: &elasticstack.ApmSourceMapSourcemapArgs{
    				Binary: pulumi.String("eyJ2ZXJzaW9uIjozLCJmaWxlIjoibWFpbi5jaHVuay5qcyIsInNvdXJjZXMiOlsic3JjL2luZGV4LmpzIl0sIm1hcHBpbmdzIjoiQUFBQSJ9"),
    			},
    			SpaceId: pulumi.String("my-space"),
    		})
    		if err != nil {
    			return err
    		}
    		// Example 3: Upload a source map from a local file.
    		// sourcemap.file.checksum is computed automatically from the file contents.
    		_, err = elasticstack.NewApmSourceMap(ctx, "example_file", &elasticstack.ApmSourceMapArgs{
    			ServiceName:    pulumi.String("my-frontend"),
    			ServiceVersion: pulumi.String("3.0.0"),
    			BundleFilepath: pulumi.String("/static/js/main.chunk.js"),
    			Sourcemap: &elasticstack.ApmSourceMapSourcemapArgs{
    				File: &elasticstack.ApmSourceMapSourcemapFileArgs{
    					Path: pulumi.String("/path/to/main.chunk.js.map"),
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using System.Text.Json;
    using Pulumi;
    using Elasticstack = Pulumi.Elasticstack;
    
    return await Deployment.RunAsync(() => 
    {
        // Example 1: Upload a source map using inline JSON content.
        // sourcemap.json is write-only and never read back from the API.
        var exampleJson = new Elasticstack.ApmSourceMap("example_json", new()
        {
            ServiceName = "my-frontend",
            ServiceVersion = "1.0.0",
            BundleFilepath = "/static/js/main.chunk.js",
            Sourcemap = new Elasticstack.Inputs.ApmSourceMapSourcemapArgs
            {
                Json = JsonSerializer.Serialize(new Dictionary<string, object?>
                {
                    ["version"] = 3,
                    ["file"] = "main.chunk.js",
                    ["sources"] = new[]
                    {
                        "src/index.js",
                    },
                    ["mappings"] = "AAAA",
                }),
            },
        });
    
        // Example 2: Upload a source map using base64-encoded binary content,
        // scoped to a non-default Kibana space.
        // sourcemap.binary is write-only and never read back from the API.
        var exampleSpace = new Elasticstack.ApmSourceMap("example_space", new()
        {
            ServiceName = "my-frontend",
            ServiceVersion = "2.0.0",
            BundleFilepath = "/static/js/main.chunk.js",
            Sourcemap = new Elasticstack.Inputs.ApmSourceMapSourcemapArgs
            {
                Binary = "eyJ2ZXJzaW9uIjozLCJmaWxlIjoibWFpbi5jaHVuay5qcyIsInNvdXJjZXMiOlsic3JjL2luZGV4LmpzIl0sIm1hcHBpbmdzIjoiQUFBQSJ9",
            },
            SpaceId = "my-space",
        });
    
        // Example 3: Upload a source map from a local file.
        // sourcemap.file.checksum is computed automatically from the file contents.
        var exampleFile = new Elasticstack.ApmSourceMap("example_file", new()
        {
            ServiceName = "my-frontend",
            ServiceVersion = "3.0.0",
            BundleFilepath = "/static/js/main.chunk.js",
            Sourcemap = new Elasticstack.Inputs.ApmSourceMapSourcemapArgs
            {
                File = new Elasticstack.Inputs.ApmSourceMapSourcemapFileArgs
                {
                    Path = "/path/to/main.chunk.js.map",
                },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.elasticstack.ApmSourceMap;
    import com.pulumi.elasticstack.ApmSourceMapArgs;
    import com.pulumi.elasticstack.inputs.ApmSourceMapSourcemapArgs;
    import com.pulumi.elasticstack.inputs.ApmSourceMapSourcemapFileArgs;
    import static com.pulumi.codegen.internal.Serialization.*;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            // Example 1: Upload a source map using inline JSON content.
            // sourcemap.json is write-only and never read back from the API.
            var exampleJson = new ApmSourceMap("exampleJson", ApmSourceMapArgs.builder()
                .serviceName("my-frontend")
                .serviceVersion("1.0.0")
                .bundleFilepath("/static/js/main.chunk.js")
                .sourcemap(ApmSourceMapSourcemapArgs.builder()
                    .json(serializeJson(
                        jsonObject(
                            jsonProperty("version", 3),
                            jsonProperty("file", "main.chunk.js"),
                            jsonProperty("sources", jsonArray("src/index.js")),
                            jsonProperty("mappings", "AAAA")
                        )))
                    .build())
                .build());
    
            // Example 2: Upload a source map using base64-encoded binary content,
            // scoped to a non-default Kibana space.
            // sourcemap.binary is write-only and never read back from the API.
            var exampleSpace = new ApmSourceMap("exampleSpace", ApmSourceMapArgs.builder()
                .serviceName("my-frontend")
                .serviceVersion("2.0.0")
                .bundleFilepath("/static/js/main.chunk.js")
                .sourcemap(ApmSourceMapSourcemapArgs.builder()
                    .binary("eyJ2ZXJzaW9uIjozLCJmaWxlIjoibWFpbi5jaHVuay5qcyIsInNvdXJjZXMiOlsic3JjL2luZGV4LmpzIl0sIm1hcHBpbmdzIjoiQUFBQSJ9")
                    .build())
                .spaceId("my-space")
                .build());
    
            // Example 3: Upload a source map from a local file.
            // sourcemap.file.checksum is computed automatically from the file contents.
            var exampleFile = new ApmSourceMap("exampleFile", ApmSourceMapArgs.builder()
                .serviceName("my-frontend")
                .serviceVersion("3.0.0")
                .bundleFilepath("/static/js/main.chunk.js")
                .sourcemap(ApmSourceMapSourcemapArgs.builder()
                    .file(ApmSourceMapSourcemapFileArgs.builder()
                        .path("/path/to/main.chunk.js.map")
                        .build())
                    .build())
                .build());
    
        }
    }
    
    resources:
      # Example 1: Upload a source map using inline JSON content.
      # sourcemap.json is write-only and never read back from the API.
      exampleJson:
        type: elasticstack:ApmSourceMap
        name: example_json
        properties:
          serviceName: my-frontend
          serviceVersion: 1.0.0
          bundleFilepath: /static/js/main.chunk.js
          sourcemap:
            json:
              fn::toJSON:
                version: 3
                file: main.chunk.js
                sources:
                  - src/index.js
                mappings: AAAA
      # Example 2: Upload a source map using base64-encoded binary content,
      # scoped to a non-default Kibana space.
      # sourcemap.binary is write-only and never read back from the API.
      exampleSpace:
        type: elasticstack:ApmSourceMap
        name: example_space
        properties:
          serviceName: my-frontend
          serviceVersion: 2.0.0
          bundleFilepath: /static/js/main.chunk.js
          sourcemap:
            binary: eyJ2ZXJzaW9uIjozLCJmaWxlIjoibWFpbi5jaHVuay5qcyIsInNvdXJjZXMiOlsic3JjL2luZGV4LmpzIl0sIm1hcHBpbmdzIjoiQUFBQSJ9
          spaceId: my-space
      # Example 3: Upload a source map from a local file.
      # sourcemap.file.checksum is computed automatically from the file contents.
      exampleFile:
        type: elasticstack:ApmSourceMap
        name: example_file
        properties:
          serviceName: my-frontend
          serviceVersion: 3.0.0
          bundleFilepath: /static/js/main.chunk.js
          sourcemap:
            file:
              path: /path/to/main.chunk.js.map
    
    Example coming soon!
    

    Create ApmSourceMap Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new ApmSourceMap(name: string, args: ApmSourceMapArgs, opts?: CustomResourceOptions);
    @overload
    def ApmSourceMap(resource_name: str,
                     args: ApmSourceMapArgs,
                     opts: Optional[ResourceOptions] = None)
    
    @overload
    def ApmSourceMap(resource_name: str,
                     opts: Optional[ResourceOptions] = None,
                     bundle_filepath: Optional[str] = None,
                     service_name: Optional[str] = None,
                     service_version: Optional[str] = None,
                     sourcemap: Optional[ApmSourceMapSourcemapArgs] = None,
                     kibana_connections: Optional[Sequence[ApmSourceMapKibanaConnectionArgs]] = None,
                     space_id: Optional[str] = None)
    func NewApmSourceMap(ctx *Context, name string, args ApmSourceMapArgs, opts ...ResourceOption) (*ApmSourceMap, error)
    public ApmSourceMap(string name, ApmSourceMapArgs args, CustomResourceOptions? opts = null)
    public ApmSourceMap(String name, ApmSourceMapArgs args)
    public ApmSourceMap(String name, ApmSourceMapArgs args, CustomResourceOptions options)
    
    type: elasticstack:ApmSourceMap
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "elasticstack_apmsourcemap" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args ApmSourceMapArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args ApmSourceMapArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args ApmSourceMapArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ApmSourceMapArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ApmSourceMapArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var apmSourceMapResource = new Elasticstack.ApmSourceMap("apmSourceMapResource", new()
    {
        BundleFilepath = "string",
        ServiceName = "string",
        ServiceVersion = "string",
        Sourcemap = new Elasticstack.Inputs.ApmSourceMapSourcemapArgs
        {
            Binary = "string",
            File = new Elasticstack.Inputs.ApmSourceMapSourcemapFileArgs
            {
                Path = "string",
                Checksum = "string",
            },
            Json = "string",
        },
        KibanaConnections = new[]
        {
            new Elasticstack.Inputs.ApmSourceMapKibanaConnectionArgs
            {
                ApiKey = "string",
                BearerToken = "string",
                CaCerts = new[]
                {
                    "string",
                },
                Endpoints = new[]
                {
                    "string",
                },
                Insecure = false,
                Password = "string",
                Username = "string",
            },
        },
        SpaceId = "string",
    });
    
    example, err := elasticstack.NewApmSourceMap(ctx, "apmSourceMapResource", &elasticstack.ApmSourceMapArgs{
    	BundleFilepath: pulumi.String("string"),
    	ServiceName:    pulumi.String("string"),
    	ServiceVersion: pulumi.String("string"),
    	Sourcemap: &elasticstack.ApmSourceMapSourcemapArgs{
    		Binary: pulumi.String("string"),
    		File: &elasticstack.ApmSourceMapSourcemapFileArgs{
    			Path:     pulumi.String("string"),
    			Checksum: pulumi.String("string"),
    		},
    		Json: pulumi.String("string"),
    	},
    	KibanaConnections: elasticstack.ApmSourceMapKibanaConnectionArray{
    		&elasticstack.ApmSourceMapKibanaConnectionArgs{
    			ApiKey:      pulumi.String("string"),
    			BearerToken: pulumi.String("string"),
    			CaCerts: pulumi.StringArray{
    				pulumi.String("string"),
    			},
    			Endpoints: pulumi.StringArray{
    				pulumi.String("string"),
    			},
    			Insecure: pulumi.Bool(false),
    			Password: pulumi.String("string"),
    			Username: pulumi.String("string"),
    		},
    	},
    	SpaceId: pulumi.String("string"),
    })
    
    resource "elasticstack_apmsourcemap" "apmSourceMapResource" {
      bundle_filepath = "string"
      service_name    = "string"
      service_version = "string"
      sourcemap = {
        binary = "string"
        file = {
          path     = "string"
          checksum = "string"
        }
        json = "string"
      }
      kibana_connections {
        api_key      = "string"
        bearer_token = "string"
        ca_certs     = ["string"]
        endpoints    = ["string"]
        insecure     = false
        password     = "string"
        username     = "string"
      }
      space_id = "string"
    }
    
    var apmSourceMapResource = new ApmSourceMap("apmSourceMapResource", ApmSourceMapArgs.builder()
        .bundleFilepath("string")
        .serviceName("string")
        .serviceVersion("string")
        .sourcemap(ApmSourceMapSourcemapArgs.builder()
            .binary("string")
            .file(ApmSourceMapSourcemapFileArgs.builder()
                .path("string")
                .checksum("string")
                .build())
            .json("string")
            .build())
        .kibanaConnections(ApmSourceMapKibanaConnectionArgs.builder()
            .apiKey("string")
            .bearerToken("string")
            .caCerts("string")
            .endpoints("string")
            .insecure(false)
            .password("string")
            .username("string")
            .build())
        .spaceId("string")
        .build());
    
    apm_source_map_resource = elasticstack.ApmSourceMap("apmSourceMapResource",
        bundle_filepath="string",
        service_name="string",
        service_version="string",
        sourcemap={
            "binary": "string",
            "file": {
                "path": "string",
                "checksum": "string",
            },
            "json": "string",
        },
        kibana_connections=[{
            "api_key": "string",
            "bearer_token": "string",
            "ca_certs": ["string"],
            "endpoints": ["string"],
            "insecure": False,
            "password": "string",
            "username": "string",
        }],
        space_id="string")
    
    const apmSourceMapResource = new elasticstack.ApmSourceMap("apmSourceMapResource", {
        bundleFilepath: "string",
        serviceName: "string",
        serviceVersion: "string",
        sourcemap: {
            binary: "string",
            file: {
                path: "string",
                checksum: "string",
            },
            json: "string",
        },
        kibanaConnections: [{
            apiKey: "string",
            bearerToken: "string",
            caCerts: ["string"],
            endpoints: ["string"],
            insecure: false,
            password: "string",
            username: "string",
        }],
        spaceId: "string",
    });
    
    type: elasticstack:ApmSourceMap
    properties:
        bundleFilepath: string
        kibanaConnections:
            - apiKey: string
              bearerToken: string
              caCerts:
                - string
              endpoints:
                - string
              insecure: false
              password: string
              username: string
        serviceName: string
        serviceVersion: string
        sourcemap:
            binary: string
            file:
                checksum: string
                path: string
            json: string
        spaceId: string
    

    ApmSourceMap Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The ApmSourceMap resource accepts the following input properties:

    BundleFilepath string
    The absolute path of the final bundle as used in the web application (e.g. /static/js/main.chunk.js). Must match the path used during the build.
    ServiceName string
    The name of the APM service that the source map applies to. Must match the service.name field in APM events.
    ServiceVersion string
    The version of the APM service that the source map applies to. Must match the service.version field in APM events.
    Sourcemap ApmSourceMapSourcemap
    The source map content. Exactly one of json, binary, or file.path must be set.
    KibanaConnections List<ApmSourceMapKibanaConnection>
    Kibana connection configuration block.
    SpaceId string
    The Kibana space ID in which to manage the source map. Omit or set to "default" for the default space. When set, all API operations are prefixed with /s/{space_id}.
    BundleFilepath string
    The absolute path of the final bundle as used in the web application (e.g. /static/js/main.chunk.js). Must match the path used during the build.
    ServiceName string
    The name of the APM service that the source map applies to. Must match the service.name field in APM events.
    ServiceVersion string
    The version of the APM service that the source map applies to. Must match the service.version field in APM events.
    Sourcemap ApmSourceMapSourcemapArgs
    The source map content. Exactly one of json, binary, or file.path must be set.
    KibanaConnections []ApmSourceMapKibanaConnectionArgs
    Kibana connection configuration block.
    SpaceId string
    The Kibana space ID in which to manage the source map. Omit or set to "default" for the default space. When set, all API operations are prefixed with /s/{space_id}.
    bundle_filepath string
    The absolute path of the final bundle as used in the web application (e.g. /static/js/main.chunk.js). Must match the path used during the build.
    service_name string
    The name of the APM service that the source map applies to. Must match the service.name field in APM events.
    service_version string
    The version of the APM service that the source map applies to. Must match the service.version field in APM events.
    sourcemap object
    The source map content. Exactly one of json, binary, or file.path must be set.
    kibana_connections list(object)
    Kibana connection configuration block.
    space_id string
    The Kibana space ID in which to manage the source map. Omit or set to "default" for the default space. When set, all API operations are prefixed with /s/{space_id}.
    bundleFilepath String
    The absolute path of the final bundle as used in the web application (e.g. /static/js/main.chunk.js). Must match the path used during the build.
    serviceName String
    The name of the APM service that the source map applies to. Must match the service.name field in APM events.
    serviceVersion String
    The version of the APM service that the source map applies to. Must match the service.version field in APM events.
    sourcemap ApmSourceMapSourcemap
    The source map content. Exactly one of json, binary, or file.path must be set.
    kibanaConnections List<ApmSourceMapKibanaConnection>
    Kibana connection configuration block.
    spaceId String
    The Kibana space ID in which to manage the source map. Omit or set to "default" for the default space. When set, all API operations are prefixed with /s/{space_id}.
    bundleFilepath string
    The absolute path of the final bundle as used in the web application (e.g. /static/js/main.chunk.js). Must match the path used during the build.
    serviceName string
    The name of the APM service that the source map applies to. Must match the service.name field in APM events.
    serviceVersion string
    The version of the APM service that the source map applies to. Must match the service.version field in APM events.
    sourcemap ApmSourceMapSourcemap
    The source map content. Exactly one of json, binary, or file.path must be set.
    kibanaConnections ApmSourceMapKibanaConnection[]
    Kibana connection configuration block.
    spaceId string
    The Kibana space ID in which to manage the source map. Omit or set to "default" for the default space. When set, all API operations are prefixed with /s/{space_id}.
    bundle_filepath str
    The absolute path of the final bundle as used in the web application (e.g. /static/js/main.chunk.js). Must match the path used during the build.
    service_name str
    The name of the APM service that the source map applies to. Must match the service.name field in APM events.
    service_version str
    The version of the APM service that the source map applies to. Must match the service.version field in APM events.
    sourcemap ApmSourceMapSourcemapArgs
    The source map content. Exactly one of json, binary, or file.path must be set.
    kibana_connections Sequence[ApmSourceMapKibanaConnectionArgs]
    Kibana connection configuration block.
    space_id str
    The Kibana space ID in which to manage the source map. Omit or set to "default" for the default space. When set, all API operations are prefixed with /s/{space_id}.
    bundleFilepath String
    The absolute path of the final bundle as used in the web application (e.g. /static/js/main.chunk.js). Must match the path used during the build.
    serviceName String
    The name of the APM service that the source map applies to. Must match the service.name field in APM events.
    serviceVersion String
    The version of the APM service that the source map applies to. Must match the service.version field in APM events.
    sourcemap Property Map
    The source map content. Exactly one of json, binary, or file.path must be set.
    kibanaConnections List<Property Map>
    Kibana connection configuration block.
    spaceId String
    The Kibana space ID in which to manage the source map. Omit or set to "default" for the default space. When set, all API operations are prefixed with /s/{space_id}.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the ApmSourceMap resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing ApmSourceMap Resource

    Get an existing ApmSourceMap resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: ApmSourceMapState, opts?: CustomResourceOptions): ApmSourceMap
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            bundle_filepath: Optional[str] = None,
            kibana_connections: Optional[Sequence[ApmSourceMapKibanaConnectionArgs]] = None,
            service_name: Optional[str] = None,
            service_version: Optional[str] = None,
            sourcemap: Optional[ApmSourceMapSourcemapArgs] = None,
            space_id: Optional[str] = None) -> ApmSourceMap
    func GetApmSourceMap(ctx *Context, name string, id IDInput, state *ApmSourceMapState, opts ...ResourceOption) (*ApmSourceMap, error)
    public static ApmSourceMap Get(string name, Input<string> id, ApmSourceMapState? state, CustomResourceOptions? opts = null)
    public static ApmSourceMap get(String name, Output<String> id, ApmSourceMapState state, CustomResourceOptions options)
    resources:  _:    type: elasticstack:ApmSourceMap    get:      id: ${id}
    import {
      to = elasticstack_apmsourcemap.example
      id = "${id}"
    }
    
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    BundleFilepath string
    The absolute path of the final bundle as used in the web application (e.g. /static/js/main.chunk.js). Must match the path used during the build.
    KibanaConnections List<ApmSourceMapKibanaConnection>
    Kibana connection configuration block.
    ServiceName string
    The name of the APM service that the source map applies to. Must match the service.name field in APM events.
    ServiceVersion string
    The version of the APM service that the source map applies to. Must match the service.version field in APM events.
    Sourcemap ApmSourceMapSourcemap
    The source map content. Exactly one of json, binary, or file.path must be set.
    SpaceId string
    The Kibana space ID in which to manage the source map. Omit or set to "default" for the default space. When set, all API operations are prefixed with /s/{space_id}.
    BundleFilepath string
    The absolute path of the final bundle as used in the web application (e.g. /static/js/main.chunk.js). Must match the path used during the build.
    KibanaConnections []ApmSourceMapKibanaConnectionArgs
    Kibana connection configuration block.
    ServiceName string
    The name of the APM service that the source map applies to. Must match the service.name field in APM events.
    ServiceVersion string
    The version of the APM service that the source map applies to. Must match the service.version field in APM events.
    Sourcemap ApmSourceMapSourcemapArgs
    The source map content. Exactly one of json, binary, or file.path must be set.
    SpaceId string
    The Kibana space ID in which to manage the source map. Omit or set to "default" for the default space. When set, all API operations are prefixed with /s/{space_id}.
    bundle_filepath string
    The absolute path of the final bundle as used in the web application (e.g. /static/js/main.chunk.js). Must match the path used during the build.
    kibana_connections list(object)
    Kibana connection configuration block.
    service_name string
    The name of the APM service that the source map applies to. Must match the service.name field in APM events.
    service_version string
    The version of the APM service that the source map applies to. Must match the service.version field in APM events.
    sourcemap object
    The source map content. Exactly one of json, binary, or file.path must be set.
    space_id string
    The Kibana space ID in which to manage the source map. Omit or set to "default" for the default space. When set, all API operations are prefixed with /s/{space_id}.
    bundleFilepath String
    The absolute path of the final bundle as used in the web application (e.g. /static/js/main.chunk.js). Must match the path used during the build.
    kibanaConnections List<ApmSourceMapKibanaConnection>
    Kibana connection configuration block.
    serviceName String
    The name of the APM service that the source map applies to. Must match the service.name field in APM events.
    serviceVersion String
    The version of the APM service that the source map applies to. Must match the service.version field in APM events.
    sourcemap ApmSourceMapSourcemap
    The source map content. Exactly one of json, binary, or file.path must be set.
    spaceId String
    The Kibana space ID in which to manage the source map. Omit or set to "default" for the default space. When set, all API operations are prefixed with /s/{space_id}.
    bundleFilepath string
    The absolute path of the final bundle as used in the web application (e.g. /static/js/main.chunk.js). Must match the path used during the build.
    kibanaConnections ApmSourceMapKibanaConnection[]
    Kibana connection configuration block.
    serviceName string
    The name of the APM service that the source map applies to. Must match the service.name field in APM events.
    serviceVersion string
    The version of the APM service that the source map applies to. Must match the service.version field in APM events.
    sourcemap ApmSourceMapSourcemap
    The source map content. Exactly one of json, binary, or file.path must be set.
    spaceId string
    The Kibana space ID in which to manage the source map. Omit or set to "default" for the default space. When set, all API operations are prefixed with /s/{space_id}.
    bundle_filepath str
    The absolute path of the final bundle as used in the web application (e.g. /static/js/main.chunk.js). Must match the path used during the build.
    kibana_connections Sequence[ApmSourceMapKibanaConnectionArgs]
    Kibana connection configuration block.
    service_name str
    The name of the APM service that the source map applies to. Must match the service.name field in APM events.
    service_version str
    The version of the APM service that the source map applies to. Must match the service.version field in APM events.
    sourcemap ApmSourceMapSourcemapArgs
    The source map content. Exactly one of json, binary, or file.path must be set.
    space_id str
    The Kibana space ID in which to manage the source map. Omit or set to "default" for the default space. When set, all API operations are prefixed with /s/{space_id}.
    bundleFilepath String
    The absolute path of the final bundle as used in the web application (e.g. /static/js/main.chunk.js). Must match the path used during the build.
    kibanaConnections List<Property Map>
    Kibana connection configuration block.
    serviceName String
    The name of the APM service that the source map applies to. Must match the service.name field in APM events.
    serviceVersion String
    The version of the APM service that the source map applies to. Must match the service.version field in APM events.
    sourcemap Property Map
    The source map content. Exactly one of json, binary, or file.path must be set.
    spaceId String
    The Kibana space ID in which to manage the source map. Omit or set to "default" for the default space. When set, all API operations are prefixed with /s/{space_id}.

    Supporting Types

    ApmSourceMapKibanaConnection, ApmSourceMapKibanaConnectionArgs

    ApiKey string
    API Key to use for authentication to Kibana
    BearerToken string
    Bearer Token to use for authentication to Kibana
    CaCerts List<string>
    A list of paths to CA certificates to validate the certificate presented by the Kibana server.
    Endpoints List<string>
    Insecure bool
    Disable TLS certificate validation
    Password string
    Password to use for API authentication to Kibana.
    Username string
    Username to use for API authentication to Kibana.
    ApiKey string
    API Key to use for authentication to Kibana
    BearerToken string
    Bearer Token to use for authentication to Kibana
    CaCerts []string
    A list of paths to CA certificates to validate the certificate presented by the Kibana server.
    Endpoints []string
    Insecure bool
    Disable TLS certificate validation
    Password string
    Password to use for API authentication to Kibana.
    Username string
    Username to use for API authentication to Kibana.
    api_key string
    API Key to use for authentication to Kibana
    bearer_token string
    Bearer Token to use for authentication to Kibana
    ca_certs list(string)
    A list of paths to CA certificates to validate the certificate presented by the Kibana server.
    endpoints list(string)
    insecure bool
    Disable TLS certificate validation
    password string
    Password to use for API authentication to Kibana.
    username string
    Username to use for API authentication to Kibana.
    apiKey String
    API Key to use for authentication to Kibana
    bearerToken String
    Bearer Token to use for authentication to Kibana
    caCerts List<String>
    A list of paths to CA certificates to validate the certificate presented by the Kibana server.
    endpoints List<String>
    insecure Boolean
    Disable TLS certificate validation
    password String
    Password to use for API authentication to Kibana.
    username String
    Username to use for API authentication to Kibana.
    apiKey string
    API Key to use for authentication to Kibana
    bearerToken string
    Bearer Token to use for authentication to Kibana
    caCerts string[]
    A list of paths to CA certificates to validate the certificate presented by the Kibana server.
    endpoints string[]
    insecure boolean
    Disable TLS certificate validation
    password string
    Password to use for API authentication to Kibana.
    username string
    Username to use for API authentication to Kibana.
    api_key str
    API Key to use for authentication to Kibana
    bearer_token str
    Bearer Token to use for authentication to Kibana
    ca_certs Sequence[str]
    A list of paths to CA certificates to validate the certificate presented by the Kibana server.
    endpoints Sequence[str]
    insecure bool
    Disable TLS certificate validation
    password str
    Password to use for API authentication to Kibana.
    username str
    Username to use for API authentication to Kibana.
    apiKey String
    API Key to use for authentication to Kibana
    bearerToken String
    Bearer Token to use for authentication to Kibana
    caCerts List<String>
    A list of paths to CA certificates to validate the certificate presented by the Kibana server.
    endpoints List<String>
    insecure Boolean
    Disable TLS certificate validation
    password String
    Password to use for API authentication to Kibana.
    username String
    Username to use for API authentication to Kibana.

    ApmSourceMapSourcemap, ApmSourceMapSourcemapArgs

    Binary string
    The source map content as a base64-encoded string (standard encoding). Exactly one of json, binary, or file.path must be set. The value is write-only and is not read back from the API.
    File ApmSourceMapSourcemapFile
    Upload a source map from a local file path.
    Json string
    The source map content as a JSON string. Exactly one of json, binary, or file.path must be set. The value is write-only and is not read back from the API.
    Binary string
    The source map content as a base64-encoded string (standard encoding). Exactly one of json, binary, or file.path must be set. The value is write-only and is not read back from the API.
    File ApmSourceMapSourcemapFile
    Upload a source map from a local file path.
    Json string
    The source map content as a JSON string. Exactly one of json, binary, or file.path must be set. The value is write-only and is not read back from the API.
    binary string
    The source map content as a base64-encoded string (standard encoding). Exactly one of json, binary, or file.path must be set. The value is write-only and is not read back from the API.
    file object
    Upload a source map from a local file path.
    json string
    The source map content as a JSON string. Exactly one of json, binary, or file.path must be set. The value is write-only and is not read back from the API.
    binary String
    The source map content as a base64-encoded string (standard encoding). Exactly one of json, binary, or file.path must be set. The value is write-only and is not read back from the API.
    file ApmSourceMapSourcemapFile
    Upload a source map from a local file path.
    json String
    The source map content as a JSON string. Exactly one of json, binary, or file.path must be set. The value is write-only and is not read back from the API.
    binary string
    The source map content as a base64-encoded string (standard encoding). Exactly one of json, binary, or file.path must be set. The value is write-only and is not read back from the API.
    file ApmSourceMapSourcemapFile
    Upload a source map from a local file path.
    json string
    The source map content as a JSON string. Exactly one of json, binary, or file.path must be set. The value is write-only and is not read back from the API.
    binary str
    The source map content as a base64-encoded string (standard encoding). Exactly one of json, binary, or file.path must be set. The value is write-only and is not read back from the API.
    file ApmSourceMapSourcemapFile
    Upload a source map from a local file path.
    json str
    The source map content as a JSON string. Exactly one of json, binary, or file.path must be set. The value is write-only and is not read back from the API.
    binary String
    The source map content as a base64-encoded string (standard encoding). Exactly one of json, binary, or file.path must be set. The value is write-only and is not read back from the API.
    file Property Map
    Upload a source map from a local file path.
    json String
    The source map content as a JSON string. Exactly one of json, binary, or file.path must be set. The value is write-only and is not read back from the API.

    ApmSourceMapSourcemapFile, ApmSourceMapSourcemapFileArgs

    Path string
    Absolute or relative path to the source map file on the local filesystem.
    Checksum string
    SHA256 hex digest of the uploaded sourcemap.
    Path string
    Absolute or relative path to the source map file on the local filesystem.
    Checksum string
    SHA256 hex digest of the uploaded sourcemap.
    path string
    Absolute or relative path to the source map file on the local filesystem.
    checksum string
    SHA256 hex digest of the uploaded sourcemap.
    path String
    Absolute or relative path to the source map file on the local filesystem.
    checksum String
    SHA256 hex digest of the uploaded sourcemap.
    path string
    Absolute or relative path to the source map file on the local filesystem.
    checksum string
    SHA256 hex digest of the uploaded sourcemap.
    path str
    Absolute or relative path to the source map file on the local filesystem.
    checksum str
    SHA256 hex digest of the uploaded sourcemap.
    path String
    Absolute or relative path to the source map file on the local filesystem.
    checksum String
    SHA256 hex digest of the uploaded sourcemap.

    Package Details

    Repository
    elasticstack elastic/terraform-provider-elasticstack
    License
    Notes
    This Pulumi package is based on the elasticstack Terraform Provider.
    Viewing docs for elasticstack 0.15.0
    published on Thursday, May 14, 2026 by elastic
      Try Pulumi Cloud free. Your team will thank you.