1. Packages
  2. Packages
  3. Datadog Provider
  4. API Docs
  5. TagIndexingRuleExemption
Viewing docs for Datadog v5.6.0
published on Thursday, Jun 18, 2026 by Pulumi
datadog logo
Viewing docs for Datadog v5.6.0
published on Thursday, Jun 18, 2026 by Pulumi

    Provides a Datadog Tag Indexing Rule Exemption resource. Exempts a metric from all tag indexing rules, preserving its current tag indexing behavior regardless of which rules match it.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as datadog from "@pulumi/datadog";
    
    const example = new datadog.TagIndexingRuleExemption("example", {
        metricName: "system.cpu.user",
        reason: "High-cardinality metric; exempted to reduce index costs",
    });
    
    import pulumi
    import pulumi_datadog as datadog
    
    example = datadog.TagIndexingRuleExemption("example",
        metric_name="system.cpu.user",
        reason="High-cardinality metric; exempted to reduce index costs")
    
    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 {
    		_, err := datadog.NewTagIndexingRuleExemption(ctx, "example", &datadog.TagIndexingRuleExemptionArgs{
    			MetricName: pulumi.String("system.cpu.user"),
    			Reason:     pulumi.String("High-cardinality metric; exempted to reduce index costs"),
    		})
    		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 example = new Datadog.TagIndexingRuleExemption("example", new()
        {
            MetricName = "system.cpu.user",
            Reason = "High-cardinality metric; exempted to reduce index costs",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.datadog.TagIndexingRuleExemption;
    import com.pulumi.datadog.TagIndexingRuleExemptionArgs;
    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) {
            var example = new TagIndexingRuleExemption("example", TagIndexingRuleExemptionArgs.builder()
                .metricName("system.cpu.user")
                .reason("High-cardinality metric; exempted to reduce index costs")
                .build());
    
        }
    }
    
    resources:
      example:
        type: datadog:TagIndexingRuleExemption
        properties:
          metricName: system.cpu.user
          reason: High-cardinality metric; exempted to reduce index costs
    
    pulumi {
      required_providers {
        datadog = {
          source = "pulumi/datadog"
        }
      }
    }
    
    resource "datadog_tagindexingruleexemption" "example" {
      metric_name = "system.cpu.user"
      reason      = "High-cardinality metric; exempted to reduce index costs"
    }
    

    Create TagIndexingRuleExemption Resource

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

    Constructor syntax

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

    Parameters

    name string
    The unique name of the resource.
    args TagIndexingRuleExemptionArgs
    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 TagIndexingRuleExemptionArgs
    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 TagIndexingRuleExemptionArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args TagIndexingRuleExemptionArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args TagIndexingRuleExemptionArgs
    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 tagIndexingRuleExemptionResource = new Datadog.TagIndexingRuleExemption("tagIndexingRuleExemptionResource", new()
    {
        MetricName = "string",
        Reason = "string",
    });
    
    example, err := datadog.NewTagIndexingRuleExemption(ctx, "tagIndexingRuleExemptionResource", &datadog.TagIndexingRuleExemptionArgs{
    	MetricName: pulumi.String("string"),
    	Reason:     pulumi.String("string"),
    })
    
    resource "datadog_tagindexingruleexemption" "tagIndexingRuleExemptionResource" {
      metric_name = "string"
      reason      = "string"
    }
    
    var tagIndexingRuleExemptionResource = new TagIndexingRuleExemption("tagIndexingRuleExemptionResource", TagIndexingRuleExemptionArgs.builder()
        .metricName("string")
        .reason("string")
        .build());
    
    tag_indexing_rule_exemption_resource = datadog.TagIndexingRuleExemption("tagIndexingRuleExemptionResource",
        metric_name="string",
        reason="string")
    
    const tagIndexingRuleExemptionResource = new datadog.TagIndexingRuleExemption("tagIndexingRuleExemptionResource", {
        metricName: "string",
        reason: "string",
    });
    
    type: datadog:TagIndexingRuleExemption
    properties:
        metricName: string
        reason: string
    

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

    MetricName string
    The metric name to exempt. Changing this value forces a new resource to be created.
    Reason string
    The reason the metric is exempt from tag indexing rules. Changing this value forces a new resource to be created.
    MetricName string
    The metric name to exempt. Changing this value forces a new resource to be created.
    Reason string
    The reason the metric is exempt from tag indexing rules. Changing this value forces a new resource to be created.
    metric_name string
    The metric name to exempt. Changing this value forces a new resource to be created.
    reason string
    The reason the metric is exempt from tag indexing rules. Changing this value forces a new resource to be created.
    metricName String
    The metric name to exempt. Changing this value forces a new resource to be created.
    reason String
    The reason the metric is exempt from tag indexing rules. Changing this value forces a new resource to be created.
    metricName string
    The metric name to exempt. Changing this value forces a new resource to be created.
    reason string
    The reason the metric is exempt from tag indexing rules. Changing this value forces a new resource to be created.
    metric_name str
    The metric name to exempt. Changing this value forces a new resource to be created.
    reason str
    The reason the metric is exempt from tag indexing rules. Changing this value forces a new resource to be created.
    metricName String
    The metric name to exempt. Changing this value forces a new resource to be created.
    reason String
    The reason the metric is exempt from tag indexing rules. Changing this value forces a new resource to be created.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the TagIndexingRuleExemption resource produces the following output properties:

    CreatedAt string
    Timestamp when the exemption was created.
    CreatedByHandle string
    Handle of the user who created the exemption.
    Id string
    The provider-assigned unique ID for this managed resource.
    Kind string
    Discriminates between an explicit exemption (exemption) and a pre-existing legacy tag configuration acting as an implicit exclusion (legacyTagConfiguration). A value of legacyTagConfiguration means this resource does not own the exemption state.
    CreatedAt string
    Timestamp when the exemption was created.
    CreatedByHandle string
    Handle of the user who created the exemption.
    Id string
    The provider-assigned unique ID for this managed resource.
    Kind string
    Discriminates between an explicit exemption (exemption) and a pre-existing legacy tag configuration acting as an implicit exclusion (legacyTagConfiguration). A value of legacyTagConfiguration means this resource does not own the exemption state.
    created_at string
    Timestamp when the exemption was created.
    created_by_handle string
    Handle of the user who created the exemption.
    id string
    The provider-assigned unique ID for this managed resource.
    kind string
    Discriminates between an explicit exemption (exemption) and a pre-existing legacy tag configuration acting as an implicit exclusion (legacyTagConfiguration). A value of legacyTagConfiguration means this resource does not own the exemption state.
    createdAt String
    Timestamp when the exemption was created.
    createdByHandle String
    Handle of the user who created the exemption.
    id String
    The provider-assigned unique ID for this managed resource.
    kind String
    Discriminates between an explicit exemption (exemption) and a pre-existing legacy tag configuration acting as an implicit exclusion (legacyTagConfiguration). A value of legacyTagConfiguration means this resource does not own the exemption state.
    createdAt string
    Timestamp when the exemption was created.
    createdByHandle string
    Handle of the user who created the exemption.
    id string
    The provider-assigned unique ID for this managed resource.
    kind string
    Discriminates between an explicit exemption (exemption) and a pre-existing legacy tag configuration acting as an implicit exclusion (legacyTagConfiguration). A value of legacyTagConfiguration means this resource does not own the exemption state.
    created_at str
    Timestamp when the exemption was created.
    created_by_handle str
    Handle of the user who created the exemption.
    id str
    The provider-assigned unique ID for this managed resource.
    kind str
    Discriminates between an explicit exemption (exemption) and a pre-existing legacy tag configuration acting as an implicit exclusion (legacyTagConfiguration). A value of legacyTagConfiguration means this resource does not own the exemption state.
    createdAt String
    Timestamp when the exemption was created.
    createdByHandle String
    Handle of the user who created the exemption.
    id String
    The provider-assigned unique ID for this managed resource.
    kind String
    Discriminates between an explicit exemption (exemption) and a pre-existing legacy tag configuration acting as an implicit exclusion (legacyTagConfiguration). A value of legacyTagConfiguration means this resource does not own the exemption state.

    Look up Existing TagIndexingRuleExemption Resource

    Get an existing TagIndexingRuleExemption 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?: TagIndexingRuleExemptionState, opts?: CustomResourceOptions): TagIndexingRuleExemption
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            created_at: Optional[str] = None,
            created_by_handle: Optional[str] = None,
            kind: Optional[str] = None,
            metric_name: Optional[str] = None,
            reason: Optional[str] = None) -> TagIndexingRuleExemption
    func GetTagIndexingRuleExemption(ctx *Context, name string, id IDInput, state *TagIndexingRuleExemptionState, opts ...ResourceOption) (*TagIndexingRuleExemption, error)
    public static TagIndexingRuleExemption Get(string name, Input<string> id, TagIndexingRuleExemptionState? state, CustomResourceOptions? opts = null)
    public static TagIndexingRuleExemption get(String name, Output<String> id, TagIndexingRuleExemptionState state, CustomResourceOptions options)
    resources:  _:    type: datadog:TagIndexingRuleExemption    get:      id: ${id}
    import {
      to = datadog_tagindexingruleexemption.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:
    CreatedAt string
    Timestamp when the exemption was created.
    CreatedByHandle string
    Handle of the user who created the exemption.
    Kind string
    Discriminates between an explicit exemption (exemption) and a pre-existing legacy tag configuration acting as an implicit exclusion (legacyTagConfiguration). A value of legacyTagConfiguration means this resource does not own the exemption state.
    MetricName string
    The metric name to exempt. Changing this value forces a new resource to be created.
    Reason string
    The reason the metric is exempt from tag indexing rules. Changing this value forces a new resource to be created.
    CreatedAt string
    Timestamp when the exemption was created.
    CreatedByHandle string
    Handle of the user who created the exemption.
    Kind string
    Discriminates between an explicit exemption (exemption) and a pre-existing legacy tag configuration acting as an implicit exclusion (legacyTagConfiguration). A value of legacyTagConfiguration means this resource does not own the exemption state.
    MetricName string
    The metric name to exempt. Changing this value forces a new resource to be created.
    Reason string
    The reason the metric is exempt from tag indexing rules. Changing this value forces a new resource to be created.
    created_at string
    Timestamp when the exemption was created.
    created_by_handle string
    Handle of the user who created the exemption.
    kind string
    Discriminates between an explicit exemption (exemption) and a pre-existing legacy tag configuration acting as an implicit exclusion (legacyTagConfiguration). A value of legacyTagConfiguration means this resource does not own the exemption state.
    metric_name string
    The metric name to exempt. Changing this value forces a new resource to be created.
    reason string
    The reason the metric is exempt from tag indexing rules. Changing this value forces a new resource to be created.
    createdAt String
    Timestamp when the exemption was created.
    createdByHandle String
    Handle of the user who created the exemption.
    kind String
    Discriminates between an explicit exemption (exemption) and a pre-existing legacy tag configuration acting as an implicit exclusion (legacyTagConfiguration). A value of legacyTagConfiguration means this resource does not own the exemption state.
    metricName String
    The metric name to exempt. Changing this value forces a new resource to be created.
    reason String
    The reason the metric is exempt from tag indexing rules. Changing this value forces a new resource to be created.
    createdAt string
    Timestamp when the exemption was created.
    createdByHandle string
    Handle of the user who created the exemption.
    kind string
    Discriminates between an explicit exemption (exemption) and a pre-existing legacy tag configuration acting as an implicit exclusion (legacyTagConfiguration). A value of legacyTagConfiguration means this resource does not own the exemption state.
    metricName string
    The metric name to exempt. Changing this value forces a new resource to be created.
    reason string
    The reason the metric is exempt from tag indexing rules. Changing this value forces a new resource to be created.
    created_at str
    Timestamp when the exemption was created.
    created_by_handle str
    Handle of the user who created the exemption.
    kind str
    Discriminates between an explicit exemption (exemption) and a pre-existing legacy tag configuration acting as an implicit exclusion (legacyTagConfiguration). A value of legacyTagConfiguration means this resource does not own the exemption state.
    metric_name str
    The metric name to exempt. Changing this value forces a new resource to be created.
    reason str
    The reason the metric is exempt from tag indexing rules. Changing this value forces a new resource to be created.
    createdAt String
    Timestamp when the exemption was created.
    createdByHandle String
    Handle of the user who created the exemption.
    kind String
    Discriminates between an explicit exemption (exemption) and a pre-existing legacy tag configuration acting as an implicit exclusion (legacyTagConfiguration). A value of legacyTagConfiguration means this resource does not own the exemption state.
    metricName String
    The metric name to exempt. Changing this value forces a new resource to be created.
    reason String
    The reason the metric is exempt from tag indexing rules. Changing this value forces a new resource to be created.

    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.6.0
    published on Thursday, Jun 18, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial