published on Thursday, May 14, 2026 by elastic
published on Thursday, May 14, 2026 by elastic
Manages Elastic prebuilt detection rules. This resource installs and updates Elastic prebuilt rules and timelines. See https://www.elastic.co/guide/en/security/current/prebuilt-rules.html
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as elasticstack from "@pulumi/elasticstack";
const example = new elasticstack.KibanaInstallPrebuiltRules("example", {spaceId: "default"});
import pulumi
import pulumi_elasticstack as elasticstack
example = elasticstack.KibanaInstallPrebuiltRules("example", space_id="default")
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 {
_, err := elasticstack.NewKibanaInstallPrebuiltRules(ctx, "example", &elasticstack.KibanaInstallPrebuiltRulesArgs{
SpaceId: pulumi.String("default"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Elasticstack = Pulumi.Elasticstack;
return await Deployment.RunAsync(() =>
{
var example = new Elasticstack.KibanaInstallPrebuiltRules("example", new()
{
SpaceId = "default",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.elasticstack.KibanaInstallPrebuiltRules;
import com.pulumi.elasticstack.KibanaInstallPrebuiltRulesArgs;
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) {
var example = new KibanaInstallPrebuiltRules("example", KibanaInstallPrebuiltRulesArgs.builder()
.spaceId("default")
.build());
}
}
resources:
example:
type: elasticstack:KibanaInstallPrebuiltRules
properties:
spaceId: default
Example coming soon!
Create KibanaInstallPrebuiltRules Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new KibanaInstallPrebuiltRules(name: string, args?: KibanaInstallPrebuiltRulesArgs, opts?: CustomResourceOptions);@overload
def KibanaInstallPrebuiltRules(resource_name: str,
args: Optional[KibanaInstallPrebuiltRulesArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def KibanaInstallPrebuiltRules(resource_name: str,
opts: Optional[ResourceOptions] = None,
kibana_connections: Optional[Sequence[KibanaInstallPrebuiltRulesKibanaConnectionArgs]] = None,
space_id: Optional[str] = None)func NewKibanaInstallPrebuiltRules(ctx *Context, name string, args *KibanaInstallPrebuiltRulesArgs, opts ...ResourceOption) (*KibanaInstallPrebuiltRules, error)public KibanaInstallPrebuiltRules(string name, KibanaInstallPrebuiltRulesArgs? args = null, CustomResourceOptions? opts = null)
public KibanaInstallPrebuiltRules(String name, KibanaInstallPrebuiltRulesArgs args)
public KibanaInstallPrebuiltRules(String name, KibanaInstallPrebuiltRulesArgs args, CustomResourceOptions options)
type: elasticstack:KibanaInstallPrebuiltRules
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "elasticstack_kibanainstallprebuiltrules" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args KibanaInstallPrebuiltRulesArgs
- 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 KibanaInstallPrebuiltRulesArgs
- 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 KibanaInstallPrebuiltRulesArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args KibanaInstallPrebuiltRulesArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args KibanaInstallPrebuiltRulesArgs
- 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 kibanaInstallPrebuiltRulesResource = new Elasticstack.KibanaInstallPrebuiltRules("kibanaInstallPrebuiltRulesResource", new()
{
KibanaConnections = new[]
{
new Elasticstack.Inputs.KibanaInstallPrebuiltRulesKibanaConnectionArgs
{
ApiKey = "string",
BearerToken = "string",
CaCerts = new[]
{
"string",
},
Endpoints = new[]
{
"string",
},
Insecure = false,
Password = "string",
Username = "string",
},
},
SpaceId = "string",
});
example, err := elasticstack.NewKibanaInstallPrebuiltRules(ctx, "kibanaInstallPrebuiltRulesResource", &elasticstack.KibanaInstallPrebuiltRulesArgs{
KibanaConnections: elasticstack.KibanaInstallPrebuiltRulesKibanaConnectionArray{
&elasticstack.KibanaInstallPrebuiltRulesKibanaConnectionArgs{
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_kibanainstallprebuiltrules" "kibanaInstallPrebuiltRulesResource" {
kibana_connections {
api_key = "string"
bearer_token = "string"
ca_certs = ["string"]
endpoints = ["string"]
insecure = false
password = "string"
username = "string"
}
space_id = "string"
}
var kibanaInstallPrebuiltRulesResource = new KibanaInstallPrebuiltRules("kibanaInstallPrebuiltRulesResource", KibanaInstallPrebuiltRulesArgs.builder()
.kibanaConnections(KibanaInstallPrebuiltRulesKibanaConnectionArgs.builder()
.apiKey("string")
.bearerToken("string")
.caCerts("string")
.endpoints("string")
.insecure(false)
.password("string")
.username("string")
.build())
.spaceId("string")
.build());
kibana_install_prebuilt_rules_resource = elasticstack.KibanaInstallPrebuiltRules("kibanaInstallPrebuiltRulesResource",
kibana_connections=[{
"api_key": "string",
"bearer_token": "string",
"ca_certs": ["string"],
"endpoints": ["string"],
"insecure": False,
"password": "string",
"username": "string",
}],
space_id="string")
const kibanaInstallPrebuiltRulesResource = new elasticstack.KibanaInstallPrebuiltRules("kibanaInstallPrebuiltRulesResource", {
kibanaConnections: [{
apiKey: "string",
bearerToken: "string",
caCerts: ["string"],
endpoints: ["string"],
insecure: false,
password: "string",
username: "string",
}],
spaceId: "string",
});
type: elasticstack:KibanaInstallPrebuiltRules
properties:
kibanaConnections:
- apiKey: string
bearerToken: string
caCerts:
- string
endpoints:
- string
insecure: false
password: string
username: string
spaceId: string
KibanaInstallPrebuiltRules 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 KibanaInstallPrebuiltRules resource accepts the following input properties:
- Kibana
Connections List<KibanaInstall Prebuilt Rules Kibana Connection> - Kibana connection configuration block.
- Space
Id string - An identifier for the space. If space_id is not provided, the default space is used.
- Kibana
Connections []KibanaInstall Prebuilt Rules Kibana Connection Args - Kibana connection configuration block.
- Space
Id 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.
- kibana
Connections List<KibanaInstall Prebuilt Rules Kibana Connection> - Kibana connection configuration block.
- space
Id String - An identifier for the space. If space_id is not provided, the default space is used.
- kibana
Connections KibanaInstall Prebuilt Rules Kibana Connection[] - Kibana connection configuration block.
- space
Id string - An identifier for the space. If space_id is not provided, the default space is used.
- kibana_
connections Sequence[KibanaInstall Prebuilt Rules Kibana Connection Args] - Kibana connection configuration block.
- space_
id str - An identifier for the space. If space_id is not provided, the default space is used.
- kibana
Connections List<Property Map> - Kibana connection configuration block.
- space
Id 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 KibanaInstallPrebuiltRules resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Rules
Installed double - Number of prebuilt rules that are installed.
- Rules
Not doubleInstalled - Number of prebuilt rules that are not installed.
- Rules
Not doubleUpdated - Number of prebuilt rules that have updates available.
- Timelines
Installed double - Number of prebuilt timelines that are installed.
- Timelines
Not doubleInstalled - Number of prebuilt timelines that are not installed.
- Timelines
Not doubleUpdated - Number of prebuilt timelines that have updates available.
- Id string
- The provider-assigned unique ID for this managed resource.
- Rules
Installed float64 - Number of prebuilt rules that are installed.
- Rules
Not float64Installed - Number of prebuilt rules that are not installed.
- Rules
Not float64Updated - Number of prebuilt rules that have updates available.
- Timelines
Installed float64 - Number of prebuilt timelines that are installed.
- Timelines
Not float64Installed - Number of prebuilt timelines that are not installed.
- Timelines
Not float64Updated - Number of prebuilt timelines that have updates available.
- id string
- The provider-assigned unique ID for this managed resource.
- rules_
installed number - Number of prebuilt rules that are installed.
- rules_
not_ numberinstalled - Number of prebuilt rules that are not installed.
- rules_
not_ numberupdated - Number of prebuilt rules that have updates available.
- timelines_
installed number - Number of prebuilt timelines that are installed.
- timelines_
not_ numberinstalled - Number of prebuilt timelines that are not installed.
- timelines_
not_ numberupdated - Number of prebuilt timelines that have updates available.
- id String
- The provider-assigned unique ID for this managed resource.
- rules
Installed Double - Number of prebuilt rules that are installed.
- rules
Not DoubleInstalled - Number of prebuilt rules that are not installed.
- rules
Not DoubleUpdated - Number of prebuilt rules that have updates available.
- timelines
Installed Double - Number of prebuilt timelines that are installed.
- timelines
Not DoubleInstalled - Number of prebuilt timelines that are not installed.
- timelines
Not DoubleUpdated - Number of prebuilt timelines that have updates available.
- id string
- The provider-assigned unique ID for this managed resource.
- rules
Installed number - Number of prebuilt rules that are installed.
- rules
Not numberInstalled - Number of prebuilt rules that are not installed.
- rules
Not numberUpdated - Number of prebuilt rules that have updates available.
- timelines
Installed number - Number of prebuilt timelines that are installed.
- timelines
Not numberInstalled - Number of prebuilt timelines that are not installed.
- timelines
Not numberUpdated - Number of prebuilt timelines that have updates available.
- id str
- The provider-assigned unique ID for this managed resource.
- rules_
installed float - Number of prebuilt rules that are installed.
- rules_
not_ floatinstalled - Number of prebuilt rules that are not installed.
- rules_
not_ floatupdated - Number of prebuilt rules that have updates available.
- timelines_
installed float - Number of prebuilt timelines that are installed.
- timelines_
not_ floatinstalled - Number of prebuilt timelines that are not installed.
- timelines_
not_ floatupdated - Number of prebuilt timelines that have updates available.
- id String
- The provider-assigned unique ID for this managed resource.
- rules
Installed Number - Number of prebuilt rules that are installed.
- rules
Not NumberInstalled - Number of prebuilt rules that are not installed.
- rules
Not NumberUpdated - Number of prebuilt rules that have updates available.
- timelines
Installed Number - Number of prebuilt timelines that are installed.
- timelines
Not NumberInstalled - Number of prebuilt timelines that are not installed.
- timelines
Not NumberUpdated - Number of prebuilt timelines that have updates available.
Look up Existing KibanaInstallPrebuiltRules Resource
Get an existing KibanaInstallPrebuiltRules 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?: KibanaInstallPrebuiltRulesState, opts?: CustomResourceOptions): KibanaInstallPrebuiltRules@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
kibana_connections: Optional[Sequence[KibanaInstallPrebuiltRulesKibanaConnectionArgs]] = None,
rules_installed: Optional[float] = None,
rules_not_installed: Optional[float] = None,
rules_not_updated: Optional[float] = None,
space_id: Optional[str] = None,
timelines_installed: Optional[float] = None,
timelines_not_installed: Optional[float] = None,
timelines_not_updated: Optional[float] = None) -> KibanaInstallPrebuiltRulesfunc GetKibanaInstallPrebuiltRules(ctx *Context, name string, id IDInput, state *KibanaInstallPrebuiltRulesState, opts ...ResourceOption) (*KibanaInstallPrebuiltRules, error)public static KibanaInstallPrebuiltRules Get(string name, Input<string> id, KibanaInstallPrebuiltRulesState? state, CustomResourceOptions? opts = null)public static KibanaInstallPrebuiltRules get(String name, Output<String> id, KibanaInstallPrebuiltRulesState state, CustomResourceOptions options)resources: _: type: elasticstack:KibanaInstallPrebuiltRules get: id: ${id}import {
to = elasticstack_kibanainstallprebuiltrules.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.
- Kibana
Connections List<KibanaInstall Prebuilt Rules Kibana Connection> - Kibana connection configuration block.
- Rules
Installed double - Number of prebuilt rules that are installed.
- Rules
Not doubleInstalled - Number of prebuilt rules that are not installed.
- Rules
Not doubleUpdated - Number of prebuilt rules that have updates available.
- Space
Id string - An identifier for the space. If space_id is not provided, the default space is used.
- Timelines
Installed double - Number of prebuilt timelines that are installed.
- Timelines
Not doubleInstalled - Number of prebuilt timelines that are not installed.
- Timelines
Not doubleUpdated - Number of prebuilt timelines that have updates available.
- Kibana
Connections []KibanaInstall Prebuilt Rules Kibana Connection Args - Kibana connection configuration block.
- Rules
Installed float64 - Number of prebuilt rules that are installed.
- Rules
Not float64Installed - Number of prebuilt rules that are not installed.
- Rules
Not float64Updated - Number of prebuilt rules that have updates available.
- Space
Id string - An identifier for the space. If space_id is not provided, the default space is used.
- Timelines
Installed float64 - Number of prebuilt timelines that are installed.
- Timelines
Not float64Installed - Number of prebuilt timelines that are not installed.
- Timelines
Not float64Updated - Number of prebuilt timelines that have updates available.
- kibana_
connections list(object) - Kibana connection configuration block.
- rules_
installed number - Number of prebuilt rules that are installed.
- rules_
not_ numberinstalled - Number of prebuilt rules that are not installed.
- rules_
not_ numberupdated - Number of prebuilt rules that have updates available.
- space_
id string - An identifier for the space. If space_id is not provided, the default space is used.
- timelines_
installed number - Number of prebuilt timelines that are installed.
- timelines_
not_ numberinstalled - Number of prebuilt timelines that are not installed.
- timelines_
not_ numberupdated - Number of prebuilt timelines that have updates available.
- kibana
Connections List<KibanaInstall Prebuilt Rules Kibana Connection> - Kibana connection configuration block.
- rules
Installed Double - Number of prebuilt rules that are installed.
- rules
Not DoubleInstalled - Number of prebuilt rules that are not installed.
- rules
Not DoubleUpdated - Number of prebuilt rules that have updates available.
- space
Id String - An identifier for the space. If space_id is not provided, the default space is used.
- timelines
Installed Double - Number of prebuilt timelines that are installed.
- timelines
Not DoubleInstalled - Number of prebuilt timelines that are not installed.
- timelines
Not DoubleUpdated - Number of prebuilt timelines that have updates available.
- kibana
Connections KibanaInstall Prebuilt Rules Kibana Connection[] - Kibana connection configuration block.
- rules
Installed number - Number of prebuilt rules that are installed.
- rules
Not numberInstalled - Number of prebuilt rules that are not installed.
- rules
Not numberUpdated - Number of prebuilt rules that have updates available.
- space
Id string - An identifier for the space. If space_id is not provided, the default space is used.
- timelines
Installed number - Number of prebuilt timelines that are installed.
- timelines
Not numberInstalled - Number of prebuilt timelines that are not installed.
- timelines
Not numberUpdated - Number of prebuilt timelines that have updates available.
- kibana_
connections Sequence[KibanaInstall Prebuilt Rules Kibana Connection Args] - Kibana connection configuration block.
- rules_
installed float - Number of prebuilt rules that are installed.
- rules_
not_ floatinstalled - Number of prebuilt rules that are not installed.
- rules_
not_ floatupdated - Number of prebuilt rules that have updates available.
- space_
id str - An identifier for the space. If space_id is not provided, the default space is used.
- timelines_
installed float - Number of prebuilt timelines that are installed.
- timelines_
not_ floatinstalled - Number of prebuilt timelines that are not installed.
- timelines_
not_ floatupdated - Number of prebuilt timelines that have updates available.
- kibana
Connections List<Property Map> - Kibana connection configuration block.
- rules
Installed Number - Number of prebuilt rules that are installed.
- rules
Not NumberInstalled - Number of prebuilt rules that are not installed.
- rules
Not NumberUpdated - Number of prebuilt rules that have updates available.
- space
Id String - An identifier for the space. If space_id is not provided, the default space is used.
- timelines
Installed Number - Number of prebuilt timelines that are installed.
- timelines
Not NumberInstalled - Number of prebuilt timelines that are not installed.
- timelines
Not NumberUpdated - Number of prebuilt timelines that have updates available.
Supporting Types
KibanaInstallPrebuiltRulesKibanaConnection, KibanaInstallPrebuiltRulesKibanaConnectionArgs
- 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.
- Api
Key string - API Key to use for authentication to Kibana
- Bearer
Token string - Bearer Token to use for authentication to Kibana
- Ca
Certs []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.
- 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 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 string - API Key to use for authentication to Kibana
- bearer
Token string - Bearer Token to use for authentication to Kibana
- ca
Certs 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.
- 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 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
elasticstackTerraform Provider.
published on Thursday, May 14, 2026 by elastic
