1. Packages
  2. Packages
  3. Datadog Provider
  4. API Docs
  5. SecurityFindingsTicketCreationRulesOrder
Viewing docs for Datadog v5.8.0
published on Wednesday, Jul 8, 2026 by Pulumi
datadog logo
Viewing docs for Datadog v5.8.0
published on Wednesday, Jul 8, 2026 by Pulumi

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

    Create SecurityFindingsTicketCreationRulesOrder Resource

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

    Constructor syntax

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

    Parameters

    name string
    The unique name of the resource.
    args SecurityFindingsTicketCreationRulesOrderArgs
    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 SecurityFindingsTicketCreationRulesOrderArgs
    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 SecurityFindingsTicketCreationRulesOrderArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args SecurityFindingsTicketCreationRulesOrderArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args SecurityFindingsTicketCreationRulesOrderArgs
    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 securityFindingsTicketCreationRulesOrderResource = new Datadog.SecurityFindingsTicketCreationRulesOrder("securityFindingsTicketCreationRulesOrderResource", new()
    {
        Name = "string",
        RuleIds = new[]
        {
            "string",
        },
    });
    
    example, err := datadog.NewSecurityFindingsTicketCreationRulesOrder(ctx, "securityFindingsTicketCreationRulesOrderResource", &datadog.SecurityFindingsTicketCreationRulesOrderArgs{
    	Name: pulumi.String("string"),
    	RuleIds: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    })
    
    resource "datadog_securityfindingsticketcreationrulesorder" "securityFindingsTicketCreationRulesOrderResource" {
      name     = "string"
      rule_ids = ["string"]
    }
    
    var securityFindingsTicketCreationRulesOrderResource = new SecurityFindingsTicketCreationRulesOrder("securityFindingsTicketCreationRulesOrderResource", SecurityFindingsTicketCreationRulesOrderArgs.builder()
        .name("string")
        .ruleIds("string")
        .build());
    
    security_findings_ticket_creation_rules_order_resource = datadog.SecurityFindingsTicketCreationRulesOrder("securityFindingsTicketCreationRulesOrderResource",
        name="string",
        rule_ids=["string"])
    
    const securityFindingsTicketCreationRulesOrderResource = new datadog.SecurityFindingsTicketCreationRulesOrder("securityFindingsTicketCreationRulesOrderResource", {
        name: "string",
        ruleIds: ["string"],
    });
    
    type: datadog:SecurityFindingsTicketCreationRulesOrder
    properties:
        name: string
        ruleIds:
            - string
    

    SecurityFindingsTicketCreationRulesOrder 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 SecurityFindingsTicketCreationRulesOrder 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 ticket creation rule IDs. The order of IDs in this attribute defines the evaluation order of the ticket creation 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 ticket creation rule IDs. The order of IDs in this attribute defines the evaluation order of the ticket creation 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 ticket creation rule IDs. The order of IDs in this attribute defines the evaluation order of the ticket creation 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 ticket creation rule IDs. The order of IDs in this attribute defines the evaluation order of the ticket creation 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 ticket creation rule IDs. The order of IDs in this attribute defines the evaluation order of the ticket creation 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 ticket creation rule IDs. The order of IDs in this attribute defines the evaluation order of the ticket creation 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 ticket creation rule IDs. The order of IDs in this attribute defines the evaluation order of the ticket creation rules.

    Outputs

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

    Get an existing SecurityFindingsTicketCreationRulesOrder 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?: SecurityFindingsTicketCreationRulesOrderState, opts?: CustomResourceOptions): SecurityFindingsTicketCreationRulesOrder
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            name: Optional[str] = None,
            rule_ids: Optional[Sequence[str]] = None) -> SecurityFindingsTicketCreationRulesOrder
    func GetSecurityFindingsTicketCreationRulesOrder(ctx *Context, name string, id IDInput, state *SecurityFindingsTicketCreationRulesOrderState, opts ...ResourceOption) (*SecurityFindingsTicketCreationRulesOrder, error)
    public static SecurityFindingsTicketCreationRulesOrder Get(string name, Input<string> id, SecurityFindingsTicketCreationRulesOrderState? state, CustomResourceOptions? opts = null)
    public static SecurityFindingsTicketCreationRulesOrder get(String name, Output<String> id, SecurityFindingsTicketCreationRulesOrderState state, CustomResourceOptions options)
    resources:  _:    type: datadog:SecurityFindingsTicketCreationRulesOrder    get:      id: ${id}
    import {
      to = datadog_securityfindingsticketcreationrulesorder.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 ticket creation rule IDs. The order of IDs in this attribute defines the evaluation order of the ticket creation 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 ticket creation rule IDs. The order of IDs in this attribute defines the evaluation order of the ticket creation 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 ticket creation rule IDs. The order of IDs in this attribute defines the evaluation order of the ticket creation 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 ticket creation rule IDs. The order of IDs in this attribute defines the evaluation order of the ticket creation 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 ticket creation rule IDs. The order of IDs in this attribute defines the evaluation order of the ticket creation 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 ticket creation rule IDs. The order of IDs in this attribute defines the evaluation order of the ticket creation 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 ticket creation rule IDs. The order of IDs in this attribute defines the evaluation order of the ticket creation rules.

    Import

    The pulumi import command can be used, for example:

    $ pulumi import datadog:index/securityFindingsTicketCreationRulesOrder:SecurityFindingsTicketCreationRulesOrder order "security_findings_ticket_creation_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.8.0
    published on Wednesday, Jul 8, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial