import * as pulumi from "@pulumi/pulumi"; /** * Provides a Datadog Tag Indexing Rule Order resource. Manages the evaluation order of tag indexing rules for an org. Only one instance of this resource should exist per org; the `name` field is a user-chosen identifier with no server-side equivalent. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as datadog from "@pulumi/datadog"; * * const broad = new datadog.TagIndexingRule("broad", { * name: "Broad rule applied first", * metricNameMatches: ["*"], * tags: [ * "env", * "service", * ], * excludeTagsMode: false, * }); * const specific = new datadog.TagIndexingRule("specific", { * name: "Specific override for web metrics", * metricNameMatches: ["web.*"], * tags: [ * "env", * "service", * "version", * "host", * ], * excludeTagsMode: false, * }); * // Enforce evaluation order: broad rule first, then specific override. * // rule_ids must list EVERY active tag indexing rule in the org (this resource owns the whole-org * // order). Any rule omitted here will be rejected by the API. * const example = new datadog.TagIndexingRuleOrder("example", { * name: "main", * ruleIds: [ * broad.id, * specific.id, * ], * }); * ``` */ export declare class TagIndexingRuleOrder extends pulumi.CustomResource { /** * Get an existing TagIndexingRuleOrder resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input, state?: TagIndexingRuleOrderState, opts?: pulumi.CustomResourceOptions): TagIndexingRuleOrder; /** * Check whether an existing TagIndexingRuleOrder resource with the given ID exists. * * @param id The _unique_ provider ID of the resource to check. * @param state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static exists(id: pulumi.Input, state?: TagIndexingRuleOrderState, opts?: pulumi.CustomResourceOptions): pulumi.Output; /** * Returns true if the given object is an instance of TagIndexingRuleOrder. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is TagIndexingRuleOrder; /** * A unique name for the order resource. Recommended to match the resource name. No corresponding field exists in the API. */ readonly name: pulumi.Output; /** * Ordered list of EVERY active tag indexing rule UUID in the org. The server assigns each rule a ruleOrder (1, 2, 3, ...) by its position in this list. This resource claims full ownership of the org's evaluation order: rules created outside Terraform (e.g. via the UI) appear as drift on the next plan and must be added here. The list must be the COMPLETE set of active rules and contain each UUID exactly once — omitting an existing rule or repeating a UUID is rejected by the API with a 400; listing a UUID that does not exist returns 404. */ readonly ruleIds: pulumi.Output; /** * Create a TagIndexingRuleOrder resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name: string, args: TagIndexingRuleOrderArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering TagIndexingRuleOrder resources. */ export interface TagIndexingRuleOrderState { /** * A unique name for the order resource. Recommended to match the resource name. No corresponding field exists in the API. */ name?: pulumi.Input; /** * Ordered list of EVERY active tag indexing rule UUID in the org. The server assigns each rule a ruleOrder (1, 2, 3, ...) by its position in this list. This resource claims full ownership of the org's evaluation order: rules created outside Terraform (e.g. via the UI) appear as drift on the next plan and must be added here. The list must be the COMPLETE set of active rules and contain each UUID exactly once — omitting an existing rule or repeating a UUID is rejected by the API with a 400; listing a UUID that does not exist returns 404. */ ruleIds?: pulumi.Input[] | undefined>; } /** * The set of arguments for constructing a TagIndexingRuleOrder resource. */ export interface TagIndexingRuleOrderArgs { /** * A unique name for the order resource. Recommended to match the resource name. No corresponding field exists in the API. */ name: pulumi.Input; /** * Ordered list of EVERY active tag indexing rule UUID in the org. The server assigns each rule a ruleOrder (1, 2, 3, ...) by its position in this list. This resource claims full ownership of the org's evaluation order: rules created outside Terraform (e.g. via the UI) appear as drift on the next plan and must be added here. The list must be the COMPLETE set of active rules and contain each UUID exactly once — omitting an existing rule or repeating a UUID is rejected by the API with a 400; listing a UUID that does not exist returns 404. */ ruleIds: pulumi.Input[]>; } //# sourceMappingURL=tagIndexingRuleOrder.d.ts.map