1. Packages
  2. Packages
  3. Elasticstack Provider
  4. API Docs
  5. KibanaSecurityListDataStreams
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

    Creates .lists and .items data streams in the relevant Kibana space. These data streams are required before you can start using security lists and exceptions that reference value lists.

    Before you can start working with exceptions that use value lists, you must create the .lists and .items data streams for the relevant Kibana space. Once these data streams are created, your role needs privileges to manage rules.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as elasticstack from "@pulumi/elasticstack";
    
    // Create list data streams in the default space
    const _default = new elasticstack.KibanaSecurityListDataStreams("default", {});
    // Create list data streams in a custom space
    const custom = new elasticstack.KibanaSecurityListDataStreams("custom", {spaceId: "my-space"});
    
    import pulumi
    import pulumi_elasticstack as elasticstack
    
    # Create list data streams in the default space
    default = elasticstack.KibanaSecurityListDataStreams("default")
    # Create list data streams in a custom space
    custom = elasticstack.KibanaSecurityListDataStreams("custom", space_id="my-space")
    
    package main
    
    import (
    	"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 {
    		// Create list data streams in the default space
    		_, err := elasticstack.NewKibanaSecurityListDataStreams(ctx, "default", nil)
    		if err != nil {
    			return err
    		}
    		// Create list data streams in a custom space
    		_, err = elasticstack.NewKibanaSecurityListDataStreams(ctx, "custom", &elasticstack.KibanaSecurityListDataStreamsArgs{
    			SpaceId: pulumi.String("my-space"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Elasticstack = Pulumi.Elasticstack;
    
    return await Deployment.RunAsync(() => 
    {
        // Create list data streams in the default space
        var @default = new Elasticstack.KibanaSecurityListDataStreams("default");
    
        // Create list data streams in a custom space
        var custom = new Elasticstack.KibanaSecurityListDataStreams("custom", new()
        {
            SpaceId = "my-space",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.elasticstack.KibanaSecurityListDataStreams;
    import com.pulumi.elasticstack.KibanaSecurityListDataStreamsArgs;
    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) {
            // Create list data streams in the default space
            var default_ = new KibanaSecurityListDataStreams("default");
    
            // Create list data streams in a custom space
            var custom = new KibanaSecurityListDataStreams("custom", KibanaSecurityListDataStreamsArgs.builder()
                .spaceId("my-space")
                .build());
    
        }
    }
    
    resources:
      # Create list data streams in the default space
      default:
        type: elasticstack:KibanaSecurityListDataStreams
      # Create list data streams in a custom space
      custom:
        type: elasticstack:KibanaSecurityListDataStreams
        properties:
          spaceId: my-space
    
    Example coming soon!
    

    Create KibanaSecurityListDataStreams Resource

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

    Constructor syntax

    new KibanaSecurityListDataStreams(name: string, args?: KibanaSecurityListDataStreamsArgs, opts?: CustomResourceOptions);
    @overload
    def KibanaSecurityListDataStreams(resource_name: str,
                                      args: Optional[KibanaSecurityListDataStreamsArgs] = None,
                                      opts: Optional[ResourceOptions] = None)
    
    @overload
    def KibanaSecurityListDataStreams(resource_name: str,
                                      opts: Optional[ResourceOptions] = None,
                                      kibana_connections: Optional[Sequence[KibanaSecurityListDataStreamsKibanaConnectionArgs]] = None,
                                      space_id: Optional[str] = None)
    func NewKibanaSecurityListDataStreams(ctx *Context, name string, args *KibanaSecurityListDataStreamsArgs, opts ...ResourceOption) (*KibanaSecurityListDataStreams, error)
    public KibanaSecurityListDataStreams(string name, KibanaSecurityListDataStreamsArgs? args = null, CustomResourceOptions? opts = null)
    public KibanaSecurityListDataStreams(String name, KibanaSecurityListDataStreamsArgs args)
    public KibanaSecurityListDataStreams(String name, KibanaSecurityListDataStreamsArgs args, CustomResourceOptions options)
    
    type: elasticstack:KibanaSecurityListDataStreams
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "elasticstack_kibanasecuritylistdatastreams" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args KibanaSecurityListDataStreamsArgs
    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 KibanaSecurityListDataStreamsArgs
    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 KibanaSecurityListDataStreamsArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args KibanaSecurityListDataStreamsArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args KibanaSecurityListDataStreamsArgs
    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 kibanaSecurityListDataStreamsResource = new Elasticstack.KibanaSecurityListDataStreams("kibanaSecurityListDataStreamsResource", new()
    {
        KibanaConnections = new[]
        {
            new Elasticstack.Inputs.KibanaSecurityListDataStreamsKibanaConnectionArgs
            {
                ApiKey = "string",
                BearerToken = "string",
                CaCerts = new[]
                {
                    "string",
                },
                Endpoints = new[]
                {
                    "string",
                },
                Insecure = false,
                Password = "string",
                Username = "string",
            },
        },
        SpaceId = "string",
    });
    
    example, err := elasticstack.NewKibanaSecurityListDataStreams(ctx, "kibanaSecurityListDataStreamsResource", &elasticstack.KibanaSecurityListDataStreamsArgs{
    	KibanaConnections: elasticstack.KibanaSecurityListDataStreamsKibanaConnectionArray{
    		&elasticstack.KibanaSecurityListDataStreamsKibanaConnectionArgs{
    			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_kibanasecuritylistdatastreams" "kibanaSecurityListDataStreamsResource" {
      kibana_connections {
        api_key      = "string"
        bearer_token = "string"
        ca_certs     = ["string"]
        endpoints    = ["string"]
        insecure     = false
        password     = "string"
        username     = "string"
      }
      space_id = "string"
    }
    
    var kibanaSecurityListDataStreamsResource = new KibanaSecurityListDataStreams("kibanaSecurityListDataStreamsResource", KibanaSecurityListDataStreamsArgs.builder()
        .kibanaConnections(KibanaSecurityListDataStreamsKibanaConnectionArgs.builder()
            .apiKey("string")
            .bearerToken("string")
            .caCerts("string")
            .endpoints("string")
            .insecure(false)
            .password("string")
            .username("string")
            .build())
        .spaceId("string")
        .build());
    
    kibana_security_list_data_streams_resource = elasticstack.KibanaSecurityListDataStreams("kibanaSecurityListDataStreamsResource",
        kibana_connections=[{
            "api_key": "string",
            "bearer_token": "string",
            "ca_certs": ["string"],
            "endpoints": ["string"],
            "insecure": False,
            "password": "string",
            "username": "string",
        }],
        space_id="string")
    
    const kibanaSecurityListDataStreamsResource = new elasticstack.KibanaSecurityListDataStreams("kibanaSecurityListDataStreamsResource", {
        kibanaConnections: [{
            apiKey: "string",
            bearerToken: "string",
            caCerts: ["string"],
            endpoints: ["string"],
            insecure: false,
            password: "string",
            username: "string",
        }],
        spaceId: "string",
    });
    
    type: elasticstack:KibanaSecurityListDataStreams
    properties:
        kibanaConnections:
            - apiKey: string
              bearerToken: string
              caCerts:
                - string
              endpoints:
                - string
              insecure: false
              password: string
              username: string
        spaceId: string
    

    KibanaSecurityListDataStreams 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 KibanaSecurityListDataStreams resource accepts the following input properties:

    KibanaConnections List<KibanaSecurityListDataStreamsKibanaConnection>
    Kibana connection configuration block.
    SpaceId string
    An identifier for the space. If space_id is not provided, the default space is used.
    KibanaConnections []KibanaSecurityListDataStreamsKibanaConnectionArgs
    Kibana connection configuration block.
    SpaceId string
    An identifier for the space. If space_id is not provided, the default space is used.
    kibana_connections list(object)
    Kibana connection configuration block.
    space_id string
    An identifier for the space. If space_id is not provided, the default space is used.
    kibanaConnections List<KibanaSecurityListDataStreamsKibanaConnection>
    Kibana connection configuration block.
    spaceId String
    An identifier for the space. If space_id is not provided, the default space is used.
    kibanaConnections KibanaSecurityListDataStreamsKibanaConnection[]
    Kibana connection configuration block.
    spaceId string
    An identifier for the space. If space_id is not provided, the default space is used.
    kibana_connections Sequence[KibanaSecurityListDataStreamsKibanaConnectionArgs]
    Kibana connection configuration block.
    space_id str
    An identifier for the space. If space_id is not provided, the default space is used.
    kibanaConnections List<Property Map>
    Kibana connection configuration block.
    spaceId String
    An identifier for the space. If space_id is not provided, the default space is used.

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    ListIndex bool
    Indicates whether the .lists data stream exists.
    ListItemIndex bool
    Indicates whether the .items data stream exists.
    Id string
    The provider-assigned unique ID for this managed resource.
    ListIndex bool
    Indicates whether the .lists data stream exists.
    ListItemIndex bool
    Indicates whether the .items data stream exists.
    id string
    The provider-assigned unique ID for this managed resource.
    list_index bool
    Indicates whether the .lists data stream exists.
    list_item_index bool
    Indicates whether the .items data stream exists.
    id String
    The provider-assigned unique ID for this managed resource.
    listIndex Boolean
    Indicates whether the .lists data stream exists.
    listItemIndex Boolean
    Indicates whether the .items data stream exists.
    id string
    The provider-assigned unique ID for this managed resource.
    listIndex boolean
    Indicates whether the .lists data stream exists.
    listItemIndex boolean
    Indicates whether the .items data stream exists.
    id str
    The provider-assigned unique ID for this managed resource.
    list_index bool
    Indicates whether the .lists data stream exists.
    list_item_index bool
    Indicates whether the .items data stream exists.
    id String
    The provider-assigned unique ID for this managed resource.
    listIndex Boolean
    Indicates whether the .lists data stream exists.
    listItemIndex Boolean
    Indicates whether the .items data stream exists.

    Look up Existing KibanaSecurityListDataStreams Resource

    Get an existing KibanaSecurityListDataStreams 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?: KibanaSecurityListDataStreamsState, opts?: CustomResourceOptions): KibanaSecurityListDataStreams
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            kibana_connections: Optional[Sequence[KibanaSecurityListDataStreamsKibanaConnectionArgs]] = None,
            list_index: Optional[bool] = None,
            list_item_index: Optional[bool] = None,
            space_id: Optional[str] = None) -> KibanaSecurityListDataStreams
    func GetKibanaSecurityListDataStreams(ctx *Context, name string, id IDInput, state *KibanaSecurityListDataStreamsState, opts ...ResourceOption) (*KibanaSecurityListDataStreams, error)
    public static KibanaSecurityListDataStreams Get(string name, Input<string> id, KibanaSecurityListDataStreamsState? state, CustomResourceOptions? opts = null)
    public static KibanaSecurityListDataStreams get(String name, Output<String> id, KibanaSecurityListDataStreamsState state, CustomResourceOptions options)
    resources:  _:    type: elasticstack:KibanaSecurityListDataStreams    get:      id: ${id}
    import {
      to = elasticstack_kibanasecuritylistdatastreams.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:
    KibanaConnections List<KibanaSecurityListDataStreamsKibanaConnection>
    Kibana connection configuration block.
    ListIndex bool
    Indicates whether the .lists data stream exists.
    ListItemIndex bool
    Indicates whether the .items data stream exists.
    SpaceId string
    An identifier for the space. If space_id is not provided, the default space is used.
    KibanaConnections []KibanaSecurityListDataStreamsKibanaConnectionArgs
    Kibana connection configuration block.
    ListIndex bool
    Indicates whether the .lists data stream exists.
    ListItemIndex bool
    Indicates whether the .items data stream exists.
    SpaceId string
    An identifier for the space. If space_id is not provided, the default space is used.
    kibana_connections list(object)
    Kibana connection configuration block.
    list_index bool
    Indicates whether the .lists data stream exists.
    list_item_index bool
    Indicates whether the .items data stream exists.
    space_id string
    An identifier for the space. If space_id is not provided, the default space is used.
    kibanaConnections List<KibanaSecurityListDataStreamsKibanaConnection>
    Kibana connection configuration block.
    listIndex Boolean
    Indicates whether the .lists data stream exists.
    listItemIndex Boolean
    Indicates whether the .items data stream exists.
    spaceId String
    An identifier for the space. If space_id is not provided, the default space is used.
    kibanaConnections KibanaSecurityListDataStreamsKibanaConnection[]
    Kibana connection configuration block.
    listIndex boolean
    Indicates whether the .lists data stream exists.
    listItemIndex boolean
    Indicates whether the .items data stream exists.
    spaceId string
    An identifier for the space. If space_id is not provided, the default space is used.
    kibana_connections Sequence[KibanaSecurityListDataStreamsKibanaConnectionArgs]
    Kibana connection configuration block.
    list_index bool
    Indicates whether the .lists data stream exists.
    list_item_index bool
    Indicates whether the .items data stream exists.
    space_id str
    An identifier for the space. If space_id is not provided, the default space is used.
    kibanaConnections List<Property Map>
    Kibana connection configuration block.
    listIndex Boolean
    Indicates whether the .lists data stream exists.
    listItemIndex Boolean
    Indicates whether the .items data stream exists.
    spaceId String
    An identifier for the space. If space_id is not provided, the default space is used.

    Supporting Types

    KibanaSecurityListDataStreamsKibanaConnection, KibanaSecurityListDataStreamsKibanaConnectionArgs

    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.

    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.