published on Friday, Sep 25, 2026 by Pulumi
published on Friday, Sep 25, 2026 by Pulumi
Provides a resource that manages the evaluation order of severity modifier rules for the security findings in an organization. The ruleIds list must contain every severity modifier rule ID; severity modifier rules created outside Terraform appear as drift. Note: the severity modifier rule order is a single, organization-wide setting, so only one resource of this type should be declared per organization.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as datadog from "@pulumi/datadog";
// Manage the evaluation order of all severity modifier rules for the organization.
// rule_ids must list every severity modifier rule ID; rules created outside Terraform appear as drift.
const order = new datadog.SecurityFindingsSeverityModifierRulesOrder("order", {
name: "security_findings_severity_modifier_rules_order",
ruleIds: [escalateProdSecrets.id],
});
import pulumi
import pulumi_datadog as datadog
# Manage the evaluation order of all severity modifier rules for the organization.
# rule_ids must list every severity modifier rule ID; rules created outside Terraform appear as drift.
order = datadog.SecurityFindingsSeverityModifierRulesOrder("order",
name="security_findings_severity_modifier_rules_order",
rule_ids=[escalate_prod_secrets["id"]])
package main
import (
"github.com/pulumi/pulumi-datadog/sdk/v5/go/datadog"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
// Manage the evaluation order of all severity modifier rules for the organization.
// rule_ids must list every severity modifier rule ID; rules created outside Terraform appear as drift.
_, err := datadog.NewSecurityFindingsSeverityModifierRulesOrder(ctx, "order", &datadog.SecurityFindingsSeverityModifierRulesOrderArgs{
Name: pulumi.String("security_findings_severity_modifier_rules_order"),
RuleIds: pulumi.StringArray{
escalateProdSecrets.Id,
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Datadog = Pulumi.Datadog;
return await Deployment.RunAsync(() =>
{
// Manage the evaluation order of all severity modifier rules for the organization.
// rule_ids must list every severity modifier rule ID; rules created outside Terraform appear as drift.
var order = new Datadog.SecurityFindingsSeverityModifierRulesOrder("order", new()
{
Name = "security_findings_severity_modifier_rules_order",
RuleIds = new[]
{
escalateProdSecrets.Id,
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.datadog.SecurityFindingsSeverityModifierRulesOrder;
import com.pulumi.datadog.SecurityFindingsSeverityModifierRulesOrderArgs;
import java.util.ArrayList;
import java.util.Arrays;
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) {
// Manage the evaluation order of all severity modifier rules for the organization.
// rule_ids must list every severity modifier rule ID; rules created outside Terraform appear as drift.
var order = new SecurityFindingsSeverityModifierRulesOrder("order", SecurityFindingsSeverityModifierRulesOrderArgs.builder()
.name("security_findings_severity_modifier_rules_order")
.ruleIds(escalateProdSecrets.id())
.build());
}
}
resources:
# Manage the evaluation order of all severity modifier rules for the organization.
# rule_ids must list every severity modifier rule ID; rules created outside Terraform appear as drift.
order:
type: datadog:SecurityFindingsSeverityModifierRulesOrder
properties:
name: security_findings_severity_modifier_rules_order
ruleIds:
- ${escalateProdSecrets.id}
pulumi {
required_providers {
datadog = {
source = "pulumi/datadog"
}
}
}
# Manage the evaluation order of all severity modifier rules for the organization.
# rule_ids must list every severity modifier rule ID; rules created outside Terraform appear as drift.
resource "datadog_securityfindingsseveritymodifierrulesorder" "order" {
name = "security_findings_severity_modifier_rules_order"
rule_ids = [escalateProdSecrets.id]
}
Create SecurityFindingsSeverityModifierRulesOrder Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new SecurityFindingsSeverityModifierRulesOrder(name: string, args: SecurityFindingsSeverityModifierRulesOrderArgs, opts?: CustomResourceOptions);@overload
def SecurityFindingsSeverityModifierRulesOrder(resource_name: str,
args: SecurityFindingsSeverityModifierRulesOrderArgs,
opts: Optional[ResourceOptions] = None)
@overload
def SecurityFindingsSeverityModifierRulesOrder(resource_name: str,
opts: Optional[ResourceOptions] = None,
name: Optional[str] = None,
rule_ids: Optional[Sequence[str]] = None)func NewSecurityFindingsSeverityModifierRulesOrder(ctx *Context, name string, args SecurityFindingsSeverityModifierRulesOrderArgs, opts ...ResourceOption) (*SecurityFindingsSeverityModifierRulesOrder, error)public SecurityFindingsSeverityModifierRulesOrder(string name, SecurityFindingsSeverityModifierRulesOrderArgs args, CustomResourceOptions? opts = null)
public SecurityFindingsSeverityModifierRulesOrder(String name, SecurityFindingsSeverityModifierRulesOrderArgs args)
public SecurityFindingsSeverityModifierRulesOrder(String name, SecurityFindingsSeverityModifierRulesOrderArgs args, CustomResourceOptions options)
type: datadog:SecurityFindingsSeverityModifierRulesOrder
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "datadog_security_findings_severity_modifier_rules_order" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args SecurityFindingsSeverityModifierRulesOrderArgs
- 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 SecurityFindingsSeverityModifierRulesOrderArgs
- 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 SecurityFindingsSeverityModifierRulesOrderArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args SecurityFindingsSeverityModifierRulesOrderArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args SecurityFindingsSeverityModifierRulesOrderArgs
- 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 securityFindingsSeverityModifierRulesOrderResource = new Datadog.SecurityFindingsSeverityModifierRulesOrder("securityFindingsSeverityModifierRulesOrderResource", new()
{
Name = "string",
RuleIds = new[]
{
"string",
},
});
example, err := datadog.NewSecurityFindingsSeverityModifierRulesOrder(ctx, "securityFindingsSeverityModifierRulesOrderResource", &datadog.SecurityFindingsSeverityModifierRulesOrderArgs{
Name: pulumi.String("string"),
RuleIds: pulumi.StringArray{
pulumi.String("string"),
},
})
resource "datadog_security_findings_severity_modifier_rules_order" "securityFindingsSeverityModifierRulesOrderResource" {
lifecycle {
create_before_destroy = true
}
name = "string"
rule_ids = ["string"]
}
var securityFindingsSeverityModifierRulesOrderResource = new SecurityFindingsSeverityModifierRulesOrder("securityFindingsSeverityModifierRulesOrderResource", SecurityFindingsSeverityModifierRulesOrderArgs.builder()
.name("string")
.ruleIds("string")
.build());
security_findings_severity_modifier_rules_order_resource = datadog.SecurityFindingsSeverityModifierRulesOrder("securityFindingsSeverityModifierRulesOrderResource",
name="string",
rule_ids=["string"])
const securityFindingsSeverityModifierRulesOrderResource = new datadog.SecurityFindingsSeverityModifierRulesOrder("securityFindingsSeverityModifierRulesOrderResource", {
name: "string",
ruleIds: ["string"],
});
type: datadog:SecurityFindingsSeverityModifierRulesOrder
properties:
name: string
ruleIds:
- string
SecurityFindingsSeverityModifierRulesOrder 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 SecurityFindingsSeverityModifierRulesOrder resource accepts the following input properties:
- Name string
- A unique identifier for the order resource. This field has no server-side equivalent; Datadog recommends matching the resource name.
- Rule
Ids List<string> - The ordered list of all severity modifier rule IDs. The order of IDs in this attribute defines the evaluation order of the severity modifier rules.
- Name string
- A unique identifier for the order resource. This field has no server-side equivalent; Datadog recommends matching the resource name.
- Rule
Ids []string - The ordered list of all severity modifier rule IDs. The order of IDs in this attribute defines the evaluation order of the severity modifier rules.
- name string
- A unique identifier for the order resource. This field has no server-side equivalent; Datadog recommends matching the resource name.
- rule_
ids list(string) - The ordered list of all severity modifier rule IDs. The order of IDs in this attribute defines the evaluation order of the severity modifier rules.
- name String
- A unique identifier for the order resource. This field has no server-side equivalent; Datadog recommends matching the resource name.
- rule
Ids List<String> - The ordered list of all severity modifier rule IDs. The order of IDs in this attribute defines the evaluation order of the severity modifier rules.
- name string
- A unique identifier for the order resource. This field has no server-side equivalent; Datadog recommends matching the resource name.
- rule
Ids string[] - The ordered list of all severity modifier rule IDs. The order of IDs in this attribute defines the evaluation order of the severity modifier rules.
- name str
- A unique identifier for the order resource. This field has no server-side equivalent; Datadog recommends matching the resource name.
- rule_
ids Sequence[str] - The ordered list of all severity modifier rule IDs. The order of IDs in this attribute defines the evaluation order of the severity modifier rules.
- name String
- A unique identifier for the order resource. This field has no server-side equivalent; Datadog recommends matching the resource name.
- rule
Ids List<String> - The ordered list of all severity modifier rule IDs. The order of IDs in this attribute defines the evaluation order of the severity modifier rules.
Outputs
All input properties are implicitly available as output properties. Additionally, the SecurityFindingsSeverityModifierRulesOrder 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 SecurityFindingsSeverityModifierRulesOrder Resource
Get an existing SecurityFindingsSeverityModifierRulesOrder 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?: SecurityFindingsSeverityModifierRulesOrderState, opts?: CustomResourceOptions): SecurityFindingsSeverityModifierRulesOrder@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
name: Optional[str] = None,
rule_ids: Optional[Sequence[str]] = None) -> SecurityFindingsSeverityModifierRulesOrderfunc GetSecurityFindingsSeverityModifierRulesOrder(ctx *Context, name string, id IDInput, state *SecurityFindingsSeverityModifierRulesOrderState, opts ...ResourceOption) (*SecurityFindingsSeverityModifierRulesOrder, error)public static SecurityFindingsSeverityModifierRulesOrder Get(string name, Input<string> id, SecurityFindingsSeverityModifierRulesOrderState? state, CustomResourceOptions? opts = null)public static SecurityFindingsSeverityModifierRulesOrder get(String name, Output<String> id, SecurityFindingsSeverityModifierRulesOrderState state, CustomResourceOptions options)resources: _: type: datadog:SecurityFindingsSeverityModifierRulesOrder get: id: ${id}import {
to = datadog_security_findings_severity_modifier_rules_order.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.
- Name string
- A unique identifier for the order resource. This field has no server-side equivalent; Datadog recommends matching the resource name.
- Rule
Ids List<string> - The ordered list of all severity modifier rule IDs. The order of IDs in this attribute defines the evaluation order of the severity modifier rules.
- Name string
- A unique identifier for the order resource. This field has no server-side equivalent; Datadog recommends matching the resource name.
- Rule
Ids []string - The ordered list of all severity modifier rule IDs. The order of IDs in this attribute defines the evaluation order of the severity modifier rules.
- name string
- A unique identifier for the order resource. This field has no server-side equivalent; Datadog recommends matching the resource name.
- rule_
ids list(string) - The ordered list of all severity modifier rule IDs. The order of IDs in this attribute defines the evaluation order of the severity modifier rules.
- name String
- A unique identifier for the order resource. This field has no server-side equivalent; Datadog recommends matching the resource name.
- rule
Ids List<String> - The ordered list of all severity modifier rule IDs. The order of IDs in this attribute defines the evaluation order of the severity modifier rules.
- name string
- A unique identifier for the order resource. This field has no server-side equivalent; Datadog recommends matching the resource name.
- rule
Ids string[] - The ordered list of all severity modifier rule IDs. The order of IDs in this attribute defines the evaluation order of the severity modifier rules.
- name str
- A unique identifier for the order resource. This field has no server-side equivalent; Datadog recommends matching the resource name.
- rule_
ids Sequence[str] - The ordered list of all severity modifier rule IDs. The order of IDs in this attribute defines the evaluation order of the severity modifier rules.
- name String
- A unique identifier for the order resource. This field has no server-side equivalent; Datadog recommends matching the resource name.
- rule
Ids List<String> - The ordered list of all severity modifier rule IDs. The order of IDs in this attribute defines the evaluation order of the severity modifier rules.
Import
The pulumi import command can be used, for example:
$ pulumi import datadog:index/securityFindingsSeverityModifierRulesOrder:SecurityFindingsSeverityModifierRulesOrder order "security_findings_severity_modifier_rules_order"
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
datadogTerraform Provider.
published on Friday, Sep 25, 2026 by Pulumi