1. Packages
  2. Datadog Provider
  3. API Docs
  4. SecurityMonitoringCriticalAsset
Datadog v4.64.0 published on Thursday, Jan 29, 2026 by Pulumi
datadog logo
Datadog v4.64.0 published on Thursday, Jan 29, 2026 by Pulumi

    Provides a Datadog Security Monitoring Critical Asset resource. It can be used to create and manage critical assets which modify the severity of a signal.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as datadog from "@pulumi/datadog";
    
    const myCriticalAsset = new datadog.SecurityMonitoringCriticalAsset("my_critical_asset", {
        enabled: true,
        query: "source:runtime-security-agent",
        ruleQuery: "type:(log_detection OR signal_correlation OR workload_security OR application_security) ruleId:007-d1a-1f3",
        severity: "increase",
        tags: [
            "env:production",
            "team:security",
        ],
    });
    
    import pulumi
    import pulumi_datadog as datadog
    
    my_critical_asset = datadog.SecurityMonitoringCriticalAsset("my_critical_asset",
        enabled=True,
        query="source:runtime-security-agent",
        rule_query="type:(log_detection OR signal_correlation OR workload_security OR application_security) ruleId:007-d1a-1f3",
        severity="increase",
        tags=[
            "env:production",
            "team:security",
        ])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-datadog/sdk/v4/go/datadog"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := datadog.NewSecurityMonitoringCriticalAsset(ctx, "my_critical_asset", &datadog.SecurityMonitoringCriticalAssetArgs{
    			Enabled:   pulumi.Bool(true),
    			Query:     pulumi.String("source:runtime-security-agent"),
    			RuleQuery: pulumi.String("type:(log_detection OR signal_correlation OR workload_security OR application_security) ruleId:007-d1a-1f3"),
    			Severity:  pulumi.String("increase"),
    			Tags: pulumi.StringArray{
    				pulumi.String("env:production"),
    				pulumi.String("team:security"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Datadog = Pulumi.Datadog;
    
    return await Deployment.RunAsync(() => 
    {
        var myCriticalAsset = new Datadog.SecurityMonitoringCriticalAsset("my_critical_asset", new()
        {
            Enabled = true,
            Query = "source:runtime-security-agent",
            RuleQuery = "type:(log_detection OR signal_correlation OR workload_security OR application_security) ruleId:007-d1a-1f3",
            Severity = "increase",
            Tags = new[]
            {
                "env:production",
                "team:security",
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.datadog.SecurityMonitoringCriticalAsset;
    import com.pulumi.datadog.SecurityMonitoringCriticalAssetArgs;
    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 myCriticalAsset = new SecurityMonitoringCriticalAsset("myCriticalAsset", SecurityMonitoringCriticalAssetArgs.builder()
                .enabled(true)
                .query("source:runtime-security-agent")
                .ruleQuery("type:(log_detection OR signal_correlation OR workload_security OR application_security) ruleId:007-d1a-1f3")
                .severity("increase")
                .tags(            
                    "env:production",
                    "team:security")
                .build());
    
        }
    }
    
    resources:
      myCriticalAsset:
        type: datadog:SecurityMonitoringCriticalAsset
        name: my_critical_asset
        properties:
          enabled: true
          query: source:runtime-security-agent
          ruleQuery: type:(log_detection OR signal_correlation OR workload_security OR application_security) ruleId:007-d1a-1f3
          severity: increase
          tags:
            - env:production
            - team:security
    

    Create SecurityMonitoringCriticalAsset Resource

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

    Constructor syntax

    new SecurityMonitoringCriticalAsset(name: string, args: SecurityMonitoringCriticalAssetArgs, opts?: CustomResourceOptions);
    @overload
    def SecurityMonitoringCriticalAsset(resource_name: str,
                                        args: SecurityMonitoringCriticalAssetArgs,
                                        opts: Optional[ResourceOptions] = None)
    
    @overload
    def SecurityMonitoringCriticalAsset(resource_name: str,
                                        opts: Optional[ResourceOptions] = None,
                                        query: Optional[str] = None,
                                        rule_query: Optional[str] = None,
                                        severity: Optional[str] = None,
                                        enabled: Optional[bool] = None,
                                        tags: Optional[Sequence[str]] = None)
    func NewSecurityMonitoringCriticalAsset(ctx *Context, name string, args SecurityMonitoringCriticalAssetArgs, opts ...ResourceOption) (*SecurityMonitoringCriticalAsset, error)
    public SecurityMonitoringCriticalAsset(string name, SecurityMonitoringCriticalAssetArgs args, CustomResourceOptions? opts = null)
    public SecurityMonitoringCriticalAsset(String name, SecurityMonitoringCriticalAssetArgs args)
    public SecurityMonitoringCriticalAsset(String name, SecurityMonitoringCriticalAssetArgs args, CustomResourceOptions options)
    
    type: datadog:SecurityMonitoringCriticalAsset
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args SecurityMonitoringCriticalAssetArgs
    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 SecurityMonitoringCriticalAssetArgs
    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 SecurityMonitoringCriticalAssetArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args SecurityMonitoringCriticalAssetArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args SecurityMonitoringCriticalAssetArgs
    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 securityMonitoringCriticalAssetResource = new Datadog.SecurityMonitoringCriticalAsset("securityMonitoringCriticalAssetResource", new()
    {
        Query = "string",
        RuleQuery = "string",
        Severity = "string",
        Enabled = false,
        Tags = new[]
        {
            "string",
        },
    });
    
    example, err := datadog.NewSecurityMonitoringCriticalAsset(ctx, "securityMonitoringCriticalAssetResource", &datadog.SecurityMonitoringCriticalAssetArgs{
    	Query:     pulumi.String("string"),
    	RuleQuery: pulumi.String("string"),
    	Severity:  pulumi.String("string"),
    	Enabled:   pulumi.Bool(false),
    	Tags: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    })
    
    var securityMonitoringCriticalAssetResource = new SecurityMonitoringCriticalAsset("securityMonitoringCriticalAssetResource", SecurityMonitoringCriticalAssetArgs.builder()
        .query("string")
        .ruleQuery("string")
        .severity("string")
        .enabled(false)
        .tags("string")
        .build());
    
    security_monitoring_critical_asset_resource = datadog.SecurityMonitoringCriticalAsset("securityMonitoringCriticalAssetResource",
        query="string",
        rule_query="string",
        severity="string",
        enabled=False,
        tags=["string"])
    
    const securityMonitoringCriticalAssetResource = new datadog.SecurityMonitoringCriticalAsset("securityMonitoringCriticalAssetResource", {
        query: "string",
        ruleQuery: "string",
        severity: "string",
        enabled: false,
        tags: ["string"],
    });
    
    type: datadog:SecurityMonitoringCriticalAsset
    properties:
        enabled: false
        query: string
        ruleQuery: string
        severity: string
        tags:
            - string
    

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

    Query string
    The query used to match a critical asset and the associated signals. Uses the same syntax as the search bar in the Security Signals Explorer.
    RuleQuery string
    The rule query to filter which detection rules this critical asset applies to. Uses the same syntax as the search bar for detection rules.
    Severity string
    The severity change applied to signals matching this critical asset. Valid values are critical, high, medium, low, info, increase, decrease.
    Enabled bool
    Whether the critical asset is enabled. Defaults to true.
    Tags List<string>
    A list of tags associated with the critical asset.
    Query string
    The query used to match a critical asset and the associated signals. Uses the same syntax as the search bar in the Security Signals Explorer.
    RuleQuery string
    The rule query to filter which detection rules this critical asset applies to. Uses the same syntax as the search bar for detection rules.
    Severity string
    The severity change applied to signals matching this critical asset. Valid values are critical, high, medium, low, info, increase, decrease.
    Enabled bool
    Whether the critical asset is enabled. Defaults to true.
    Tags []string
    A list of tags associated with the critical asset.
    query String
    The query used to match a critical asset and the associated signals. Uses the same syntax as the search bar in the Security Signals Explorer.
    ruleQuery String
    The rule query to filter which detection rules this critical asset applies to. Uses the same syntax as the search bar for detection rules.
    severity String
    The severity change applied to signals matching this critical asset. Valid values are critical, high, medium, low, info, increase, decrease.
    enabled Boolean
    Whether the critical asset is enabled. Defaults to true.
    tags List<String>
    A list of tags associated with the critical asset.
    query string
    The query used to match a critical asset and the associated signals. Uses the same syntax as the search bar in the Security Signals Explorer.
    ruleQuery string
    The rule query to filter which detection rules this critical asset applies to. Uses the same syntax as the search bar for detection rules.
    severity string
    The severity change applied to signals matching this critical asset. Valid values are critical, high, medium, low, info, increase, decrease.
    enabled boolean
    Whether the critical asset is enabled. Defaults to true.
    tags string[]
    A list of tags associated with the critical asset.
    query str
    The query used to match a critical asset and the associated signals. Uses the same syntax as the search bar in the Security Signals Explorer.
    rule_query str
    The rule query to filter which detection rules this critical asset applies to. Uses the same syntax as the search bar for detection rules.
    severity str
    The severity change applied to signals matching this critical asset. Valid values are critical, high, medium, low, info, increase, decrease.
    enabled bool
    Whether the critical asset is enabled. Defaults to true.
    tags Sequence[str]
    A list of tags associated with the critical asset.
    query String
    The query used to match a critical asset and the associated signals. Uses the same syntax as the search bar in the Security Signals Explorer.
    ruleQuery String
    The rule query to filter which detection rules this critical asset applies to. Uses the same syntax as the search bar for detection rules.
    severity String
    The severity change applied to signals matching this critical asset. Valid values are critical, high, medium, low, info, increase, decrease.
    enabled Boolean
    Whether the critical asset is enabled. Defaults to true.
    tags List<String>
    A list of tags associated with the critical asset.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the SecurityMonitoringCriticalAsset 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 str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing SecurityMonitoringCriticalAsset Resource

    Get an existing SecurityMonitoringCriticalAsset 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?: SecurityMonitoringCriticalAssetState, opts?: CustomResourceOptions): SecurityMonitoringCriticalAsset
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            enabled: Optional[bool] = None,
            query: Optional[str] = None,
            rule_query: Optional[str] = None,
            severity: Optional[str] = None,
            tags: Optional[Sequence[str]] = None) -> SecurityMonitoringCriticalAsset
    func GetSecurityMonitoringCriticalAsset(ctx *Context, name string, id IDInput, state *SecurityMonitoringCriticalAssetState, opts ...ResourceOption) (*SecurityMonitoringCriticalAsset, error)
    public static SecurityMonitoringCriticalAsset Get(string name, Input<string> id, SecurityMonitoringCriticalAssetState? state, CustomResourceOptions? opts = null)
    public static SecurityMonitoringCriticalAsset get(String name, Output<String> id, SecurityMonitoringCriticalAssetState state, CustomResourceOptions options)
    resources:  _:    type: datadog:SecurityMonitoringCriticalAsset    get:      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:
    Enabled bool
    Whether the critical asset is enabled. Defaults to true.
    Query string
    The query used to match a critical asset and the associated signals. Uses the same syntax as the search bar in the Security Signals Explorer.
    RuleQuery string
    The rule query to filter which detection rules this critical asset applies to. Uses the same syntax as the search bar for detection rules.
    Severity string
    The severity change applied to signals matching this critical asset. Valid values are critical, high, medium, low, info, increase, decrease.
    Tags List<string>
    A list of tags associated with the critical asset.
    Enabled bool
    Whether the critical asset is enabled. Defaults to true.
    Query string
    The query used to match a critical asset and the associated signals. Uses the same syntax as the search bar in the Security Signals Explorer.
    RuleQuery string
    The rule query to filter which detection rules this critical asset applies to. Uses the same syntax as the search bar for detection rules.
    Severity string
    The severity change applied to signals matching this critical asset. Valid values are critical, high, medium, low, info, increase, decrease.
    Tags []string
    A list of tags associated with the critical asset.
    enabled Boolean
    Whether the critical asset is enabled. Defaults to true.
    query String
    The query used to match a critical asset and the associated signals. Uses the same syntax as the search bar in the Security Signals Explorer.
    ruleQuery String
    The rule query to filter which detection rules this critical asset applies to. Uses the same syntax as the search bar for detection rules.
    severity String
    The severity change applied to signals matching this critical asset. Valid values are critical, high, medium, low, info, increase, decrease.
    tags List<String>
    A list of tags associated with the critical asset.
    enabled boolean
    Whether the critical asset is enabled. Defaults to true.
    query string
    The query used to match a critical asset and the associated signals. Uses the same syntax as the search bar in the Security Signals Explorer.
    ruleQuery string
    The rule query to filter which detection rules this critical asset applies to. Uses the same syntax as the search bar for detection rules.
    severity string
    The severity change applied to signals matching this critical asset. Valid values are critical, high, medium, low, info, increase, decrease.
    tags string[]
    A list of tags associated with the critical asset.
    enabled bool
    Whether the critical asset is enabled. Defaults to true.
    query str
    The query used to match a critical asset and the associated signals. Uses the same syntax as the search bar in the Security Signals Explorer.
    rule_query str
    The rule query to filter which detection rules this critical asset applies to. Uses the same syntax as the search bar for detection rules.
    severity str
    The severity change applied to signals matching this critical asset. Valid values are critical, high, medium, low, info, increase, decrease.
    tags Sequence[str]
    A list of tags associated with the critical asset.
    enabled Boolean
    Whether the critical asset is enabled. Defaults to true.
    query String
    The query used to match a critical asset and the associated signals. Uses the same syntax as the search bar in the Security Signals Explorer.
    ruleQuery String
    The rule query to filter which detection rules this critical asset applies to. Uses the same syntax as the search bar for detection rules.
    severity String
    The severity change applied to signals matching this critical asset. Valid values are critical, high, medium, low, info, increase, decrease.
    tags List<String>
    A list of tags associated with the critical asset.

    Import

    The pulumi import command can be used, for example:

    $ pulumi import datadog:index/securityMonitoringCriticalAsset:SecurityMonitoringCriticalAsset my_critical_asset "1dab677c-5eb4-4ac8-b1d3-444bf0117e19"
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    Datadog pulumi/pulumi-datadog
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the datadog Terraform Provider.
    datadog logo
    Datadog v4.64.0 published on Thursday, Jan 29, 2026 by Pulumi
      Meet Neo: Your AI Platform Teammate