1. Packages
  2. Packages
  3. Datadog Provider
  4. API Docs
  5. SecurityFindingsMuteRulesOrder
Viewing docs for Datadog v5.9.0
published on Saturday, Jul 25, 2026 by Pulumi
datadog logo
Viewing docs for Datadog v5.9.0
published on Saturday, Jul 25, 2026 by Pulumi

    Provides a resource that manages the evaluation order of mute rules for the security findings in an organization. The ruleIds list must contain every mute rule ID; mute rules created outside Terraform appear as drift. Note: the mute 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 mute rules for the organization.
    // rule_ids must list every mute rule ID; rules created outside Terraform appear as drift.
    const order = new datadog.SecurityFindingsMuteRulesOrder("order", {
        name: "security_findings_mute_rules_order",
        ruleIds: [acceptedRisksDev.id],
    });
    
    import pulumi
    import pulumi_datadog as datadog
    
    # Manage the evaluation order of all mute rules for the organization.
    # rule_ids must list every mute rule ID; rules created outside Terraform appear as drift.
    order = datadog.SecurityFindingsMuteRulesOrder("order",
        name="security_findings_mute_rules_order",
        rule_ids=[accepted_risks_dev["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 mute rules for the organization.
    		// rule_ids must list every mute rule ID; rules created outside Terraform appear as drift.
    		_, err := datadog.NewSecurityFindingsMuteRulesOrder(ctx, "order", &datadog.SecurityFindingsMuteRulesOrderArgs{
    			Name: pulumi.String("security_findings_mute_rules_order"),
    			RuleIds: pulumi.StringArray{
    				acceptedRisksDev.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 mute rules for the organization.
        // rule_ids must list every mute rule ID; rules created outside Terraform appear as drift.
        var order = new Datadog.SecurityFindingsMuteRulesOrder("order", new()
        {
            Name = "security_findings_mute_rules_order",
            RuleIds = new[]
            {
                acceptedRisksDev.Id,
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.datadog.SecurityFindingsMuteRulesOrder;
    import com.pulumi.datadog.SecurityFindingsMuteRulesOrderArgs;
    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 mute rules for the organization.
            // rule_ids must list every mute rule ID; rules created outside Terraform appear as drift.
            var order = new SecurityFindingsMuteRulesOrder("order", SecurityFindingsMuteRulesOrderArgs.builder()
                .name("security_findings_mute_rules_order")
                .ruleIds(acceptedRisksDev.id())
                .build());
    
        }
    }
    
    resources:
      # Manage the evaluation order of all mute rules for the organization.
      # rule_ids must list every mute rule ID; rules created outside Terraform appear as drift.
      order:
        type: datadog:SecurityFindingsMuteRulesOrder
        properties:
          name: security_findings_mute_rules_order
          ruleIds:
            - ${acceptedRisksDev.id}
    
    pulumi {
      required_providers {
        datadog = {
          source = "pulumi/datadog"
        }
      }
    }
    
    # Manage the evaluation order of all mute rules for the organization.
    # rule_ids must list every mute rule ID; rules created outside Terraform appear as drift.
    resource "datadog_securityfindingsmuterulesorder" "order" {
      name     = "security_findings_mute_rules_order"
      rule_ids = [acceptedRisksDev.id]
    }
    

    Create SecurityFindingsMuteRulesOrder Resource

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

    Constructor syntax

    new SecurityFindingsMuteRulesOrder(name: string, args: SecurityFindingsMuteRulesOrderArgs, opts?: CustomResourceOptions);
    @overload
    def SecurityFindingsMuteRulesOrder(resource_name: str,
                                       args: SecurityFindingsMuteRulesOrderArgs,
                                       opts: Optional[ResourceOptions] = None)
    
    @overload
    def SecurityFindingsMuteRulesOrder(resource_name: str,
                                       opts: Optional[ResourceOptions] = None,
                                       name: Optional[str] = None,
                                       rule_ids: Optional[Sequence[str]] = None)
    func NewSecurityFindingsMuteRulesOrder(ctx *Context, name string, args SecurityFindingsMuteRulesOrderArgs, opts ...ResourceOption) (*SecurityFindingsMuteRulesOrder, error)
    public SecurityFindingsMuteRulesOrder(string name, SecurityFindingsMuteRulesOrderArgs args, CustomResourceOptions? opts = null)
    public SecurityFindingsMuteRulesOrder(String name, SecurityFindingsMuteRulesOrderArgs args)
    public SecurityFindingsMuteRulesOrder(String name, SecurityFindingsMuteRulesOrderArgs args, CustomResourceOptions options)
    
    type: datadog:SecurityFindingsMuteRulesOrder
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "datadog_security_findings_mute_rules_order" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args SecurityFindingsMuteRulesOrderArgs
    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 SecurityFindingsMuteRulesOrderArgs
    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 SecurityFindingsMuteRulesOrderArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args SecurityFindingsMuteRulesOrderArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args SecurityFindingsMuteRulesOrderArgs
    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 securityFindingsMuteRulesOrderResource = new Datadog.SecurityFindingsMuteRulesOrder("securityFindingsMuteRulesOrderResource", new()
    {
        Name = "string",
        RuleIds = new[]
        {
            "string",
        },
    });
    
    example, err := datadog.NewSecurityFindingsMuteRulesOrder(ctx, "securityFindingsMuteRulesOrderResource", &datadog.SecurityFindingsMuteRulesOrderArgs{
    	Name: pulumi.String("string"),
    	RuleIds: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    })
    
    resource "datadog_security_findings_mute_rules_order" "securityFindingsMuteRulesOrderResource" {
      lifecycle {
        create_before_destroy = true
      }
      name     = "string"
      rule_ids = ["string"]
    }
    
    var securityFindingsMuteRulesOrderResource = new SecurityFindingsMuteRulesOrder("securityFindingsMuteRulesOrderResource", SecurityFindingsMuteRulesOrderArgs.builder()
        .name("string")
        .ruleIds("string")
        .build());
    
    security_findings_mute_rules_order_resource = datadog.SecurityFindingsMuteRulesOrder("securityFindingsMuteRulesOrderResource",
        name="string",
        rule_ids=["string"])
    
    const securityFindingsMuteRulesOrderResource = new datadog.SecurityFindingsMuteRulesOrder("securityFindingsMuteRulesOrderResource", {
        name: "string",
        ruleIds: ["string"],
    });
    
    type: datadog:SecurityFindingsMuteRulesOrder
    properties:
        name: string
        ruleIds:
            - string
    

    SecurityFindingsMuteRulesOrder 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 SecurityFindingsMuteRulesOrder 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.
    RuleIds List<string>
    The ordered list of all mute rule IDs. The order of IDs in this attribute defines the evaluation order of the mute rules.
    Name string
    A unique identifier for the order resource. This field has no server-side equivalent; Datadog recommends matching the resource name.
    RuleIds []string
    The ordered list of all mute rule IDs. The order of IDs in this attribute defines the evaluation order of the mute 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 mute rule IDs. The order of IDs in this attribute defines the evaluation order of the mute rules.
    name String
    A unique identifier for the order resource. This field has no server-side equivalent; Datadog recommends matching the resource name.
    ruleIds List<String>
    The ordered list of all mute rule IDs. The order of IDs in this attribute defines the evaluation order of the mute rules.
    name string
    A unique identifier for the order resource. This field has no server-side equivalent; Datadog recommends matching the resource name.
    ruleIds string[]
    The ordered list of all mute rule IDs. The order of IDs in this attribute defines the evaluation order of the mute 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 mute rule IDs. The order of IDs in this attribute defines the evaluation order of the mute rules.
    name String
    A unique identifier for the order resource. This field has no server-side equivalent; Datadog recommends matching the resource name.
    ruleIds List<String>
    The ordered list of all mute rule IDs. The order of IDs in this attribute defines the evaluation order of the mute rules.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the SecurityFindingsMuteRulesOrder 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 SecurityFindingsMuteRulesOrder Resource

    Get an existing SecurityFindingsMuteRulesOrder 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?: SecurityFindingsMuteRulesOrderState, opts?: CustomResourceOptions): SecurityFindingsMuteRulesOrder
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            name: Optional[str] = None,
            rule_ids: Optional[Sequence[str]] = None) -> SecurityFindingsMuteRulesOrder
    func GetSecurityFindingsMuteRulesOrder(ctx *Context, name string, id IDInput, state *SecurityFindingsMuteRulesOrderState, opts ...ResourceOption) (*SecurityFindingsMuteRulesOrder, error)
    public static SecurityFindingsMuteRulesOrder Get(string name, Input<string> id, SecurityFindingsMuteRulesOrderState? state, CustomResourceOptions? opts = null)
    public static SecurityFindingsMuteRulesOrder get(String name, Output<String> id, SecurityFindingsMuteRulesOrderState state, CustomResourceOptions options)
    resources:  _:    type: datadog:SecurityFindingsMuteRulesOrder    get:      id: ${id}
    import {
      to = datadog_security_findings_mute_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.
    The following state arguments are supported:
    Name string
    A unique identifier for the order resource. This field has no server-side equivalent; Datadog recommends matching the resource name.
    RuleIds List<string>
    The ordered list of all mute rule IDs. The order of IDs in this attribute defines the evaluation order of the mute rules.
    Name string
    A unique identifier for the order resource. This field has no server-side equivalent; Datadog recommends matching the resource name.
    RuleIds []string
    The ordered list of all mute rule IDs. The order of IDs in this attribute defines the evaluation order of the mute 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 mute rule IDs. The order of IDs in this attribute defines the evaluation order of the mute rules.
    name String
    A unique identifier for the order resource. This field has no server-side equivalent; Datadog recommends matching the resource name.
    ruleIds List<String>
    The ordered list of all mute rule IDs. The order of IDs in this attribute defines the evaluation order of the mute rules.
    name string
    A unique identifier for the order resource. This field has no server-side equivalent; Datadog recommends matching the resource name.
    ruleIds string[]
    The ordered list of all mute rule IDs. The order of IDs in this attribute defines the evaluation order of the mute 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 mute rule IDs. The order of IDs in this attribute defines the evaluation order of the mute rules.
    name String
    A unique identifier for the order resource. This field has no server-side equivalent; Datadog recommends matching the resource name.
    ruleIds List<String>
    The ordered list of all mute rule IDs. The order of IDs in this attribute defines the evaluation order of the mute rules.

    Import

    The pulumi import command can be used, for example:

    $ pulumi import datadog:index/securityFindingsMuteRulesOrder:SecurityFindingsMuteRulesOrder order "security_findings_mute_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 datadog Terraform Provider.
    datadog logo
    Viewing docs for Datadog v5.9.0
    published on Saturday, Jul 25, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial