1. Registry
  2. Packages
  3. Datadog Provider
  4. API Docs
  5. RumExclusionFilter
Viewing docs for Datadog v5.11.0
published on Tuesday, Sep 15, 2026 by Pulumi
datadog logo
Viewing docs for Datadog v5.11.0
published on Tuesday, Sep 15, 2026 by Pulumi

    Provides a Datadog RumExclusionFilter resource. This can be used to create and manage Datadog rum_exclusion_filter.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as datadog from "@pulumi/datadog";
    
    // Create new rum_exclusion_filter resource
    const testingRumExclusionFilter = new datadog.RumExclusionFilter("testing_rum_exclusion_filter", {
        applicationId: "<APPLICATION_ID>",
        name: "testing.rum.exclusion_filter",
        eventType: "error",
        query: "@error.message:*extension*",
        enabled: true,
    });
    
    import pulumi
    import pulumi_datadog as datadog
    
    # Create new rum_exclusion_filter resource
    testing_rum_exclusion_filter = datadog.RumExclusionFilter("testing_rum_exclusion_filter",
        application_id="<APPLICATION_ID>",
        name="testing.rum.exclusion_filter",
        event_type="error",
        query="@error.message:*extension*",
        enabled=True)
    
    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 {
    		// Create new rum_exclusion_filter resource
    		_, err := datadog.NewRumExclusionFilter(ctx, "testing_rum_exclusion_filter", &datadog.RumExclusionFilterArgs{
    			ApplicationId: pulumi.String("<APPLICATION_ID>"),
    			Name:          pulumi.String("testing.rum.exclusion_filter"),
    			EventType:     pulumi.String("error"),
    			Query:         pulumi.String("@error.message:*extension*"),
    			Enabled:       pulumi.Bool(true),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Datadog = Pulumi.Datadog;
    
    return await Deployment.RunAsync(() => 
    {
        // Create new rum_exclusion_filter resource
        var testingRumExclusionFilter = new Datadog.RumExclusionFilter("testing_rum_exclusion_filter", new()
        {
            ApplicationId = "<APPLICATION_ID>",
            Name = "testing.rum.exclusion_filter",
            EventType = "error",
            Query = "@error.message:*extension*",
            Enabled = true,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.datadog.RumExclusionFilter;
    import com.pulumi.datadog.RumExclusionFilterArgs;
    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) {
            // Create new rum_exclusion_filter resource
            var testingRumExclusionFilter = new RumExclusionFilter("testingRumExclusionFilter", RumExclusionFilterArgs.builder()
                .applicationId("<APPLICATION_ID>")
                .name("testing.rum.exclusion_filter")
                .eventType("error")
                .query("@error.message:*extension*")
                .enabled(true)
                .build());
    
        }
    }
    
    resources:
      # Create new rum_exclusion_filter resource
      testingRumExclusionFilter:
        type: datadog:RumExclusionFilter
        name: testing_rum_exclusion_filter
        properties:
          applicationId: <APPLICATION_ID>
          name: testing.rum.exclusion_filter
          eventType: error
          query: '@error.message:*extension*'
          enabled: true
    
    pulumi {
      required_providers {
        datadog = {
          source = "pulumi/datadog"
        }
      }
    }
    
    # Create new rum_exclusion_filter resource
    resource "datadog_rumexclusionfilter" "testing_rum_exclusion_filter" {
      application_id = "<APPLICATION_ID>"
      name           = "testing.rum.exclusion_filter"
      event_type     = "error"
      query          = "@error.message:*extension*"
      enabled        = true
    }
    

    Create RumExclusionFilter Resource

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

    Constructor syntax

    new RumExclusionFilter(name: string, args: RumExclusionFilterArgs, opts?: CustomResourceOptions);
    @overload
    def RumExclusionFilter(resource_name: str,
                           args: RumExclusionFilterArgs,
                           opts: Optional[ResourceOptions] = None)
    
    @overload
    def RumExclusionFilter(resource_name: str,
                           opts: Optional[ResourceOptions] = None,
                           application_id: Optional[str] = None,
                           event_type: Optional[str] = None,
                           name: Optional[str] = None,
                           enabled: Optional[bool] = None,
                           query: Optional[str] = None)
    func NewRumExclusionFilter(ctx *Context, name string, args RumExclusionFilterArgs, opts ...ResourceOption) (*RumExclusionFilter, error)
    public RumExclusionFilter(string name, RumExclusionFilterArgs args, CustomResourceOptions? opts = null)
    public RumExclusionFilter(String name, RumExclusionFilterArgs args)
    public RumExclusionFilter(String name, RumExclusionFilterArgs args, CustomResourceOptions options)
    
    type: datadog:RumExclusionFilter
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "datadog_rum_exclusion_filter" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args RumExclusionFilterArgs
    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 RumExclusionFilterArgs
    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 RumExclusionFilterArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args RumExclusionFilterArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args RumExclusionFilterArgs
    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 rumExclusionFilterResource = new Datadog.RumExclusionFilter("rumExclusionFilterResource", new()
    {
        ApplicationId = "string",
        EventType = "string",
        Name = "string",
        Enabled = false,
        Query = "string",
    });
    
    example, err := datadog.NewRumExclusionFilter(ctx, "rumExclusionFilterResource", &datadog.RumExclusionFilterArgs{
    	ApplicationId: pulumi.String("string"),
    	EventType:     pulumi.String("string"),
    	Name:          pulumi.String("string"),
    	Enabled:       pulumi.Bool(false),
    	Query:         pulumi.String("string"),
    })
    
    resource "datadog_rum_exclusion_filter" "rumExclusionFilterResource" {
      lifecycle {
        create_before_destroy = true
      }
      application_id = "string"
      event_type     = "string"
      name           = "string"
      enabled        = false
      query          = "string"
    }
    
    var rumExclusionFilterResource = new RumExclusionFilter("rumExclusionFilterResource", RumExclusionFilterArgs.builder()
        .applicationId("string")
        .eventType("string")
        .name("string")
        .enabled(false)
        .query("string")
        .build());
    
    rum_exclusion_filter_resource = datadog.RumExclusionFilter("rumExclusionFilterResource",
        application_id="string",
        event_type="string",
        name="string",
        enabled=False,
        query="string")
    
    const rumExclusionFilterResource = new datadog.RumExclusionFilter("rumExclusionFilterResource", {
        applicationId: "string",
        eventType: "string",
        name: "string",
        enabled: false,
        query: "string",
    });
    
    type: datadog:RumExclusionFilter
    properties:
        applicationId: string
        enabled: false
        eventType: string
        name: string
        query: string
    

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

    ApplicationId string
    RUM application ID.
    EventType string
    The type of RUM events to filter on.
    Name string
    The name of the exclusion filter.
    Enabled bool
    Whether the exclusion filter is active. Defaults to true.
    Query string
    Additional query used to further restrict which RUM events are excluded. Defaults to "".
    ApplicationId string
    RUM application ID.
    EventType string
    The type of RUM events to filter on.
    Name string
    The name of the exclusion filter.
    Enabled bool
    Whether the exclusion filter is active. Defaults to true.
    Query string
    Additional query used to further restrict which RUM events are excluded. Defaults to "".
    application_id string
    RUM application ID.
    event_type string
    The type of RUM events to filter on.
    name string
    The name of the exclusion filter.
    enabled bool
    Whether the exclusion filter is active. Defaults to true.
    query string
    Additional query used to further restrict which RUM events are excluded. Defaults to "".
    applicationId String
    RUM application ID.
    eventType String
    The type of RUM events to filter on.
    name String
    The name of the exclusion filter.
    enabled Boolean
    Whether the exclusion filter is active. Defaults to true.
    query String
    Additional query used to further restrict which RUM events are excluded. Defaults to "".
    applicationId string
    RUM application ID.
    eventType string
    The type of RUM events to filter on.
    name string
    The name of the exclusion filter.
    enabled boolean
    Whether the exclusion filter is active. Defaults to true.
    query string
    Additional query used to further restrict which RUM events are excluded. Defaults to "".
    application_id str
    RUM application ID.
    event_type str
    The type of RUM events to filter on.
    name str
    The name of the exclusion filter.
    enabled bool
    Whether the exclusion filter is active. Defaults to true.
    query str
    Additional query used to further restrict which RUM events are excluded. Defaults to "".
    applicationId String
    RUM application ID.
    eventType String
    The type of RUM events to filter on.
    name String
    The name of the exclusion filter.
    enabled Boolean
    Whether the exclusion filter is active. Defaults to true.
    query String
    Additional query used to further restrict which RUM events are excluded. Defaults to "".

    Outputs

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

    Get an existing RumExclusionFilter 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?: RumExclusionFilterState, opts?: CustomResourceOptions): RumExclusionFilter
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            application_id: Optional[str] = None,
            enabled: Optional[bool] = None,
            event_type: Optional[str] = None,
            name: Optional[str] = None,
            query: Optional[str] = None) -> RumExclusionFilter
    func GetRumExclusionFilter(ctx *Context, name string, id IDInput, state *RumExclusionFilterState, opts ...ResourceOption) (*RumExclusionFilter, error)
    public static RumExclusionFilter Get(string name, Input<string> id, RumExclusionFilterState? state, CustomResourceOptions? opts = null)
    public static RumExclusionFilter get(String name, Output<String> id, RumExclusionFilterState state, CustomResourceOptions options)
    resources:  _:    type: datadog:RumExclusionFilter    get:      id: ${id}
    import {
      to = datadog_rum_exclusion_filter.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:
    ApplicationId string
    RUM application ID.
    Enabled bool
    Whether the exclusion filter is active. Defaults to true.
    EventType string
    The type of RUM events to filter on.
    Name string
    The name of the exclusion filter.
    Query string
    Additional query used to further restrict which RUM events are excluded. Defaults to "".
    ApplicationId string
    RUM application ID.
    Enabled bool
    Whether the exclusion filter is active. Defaults to true.
    EventType string
    The type of RUM events to filter on.
    Name string
    The name of the exclusion filter.
    Query string
    Additional query used to further restrict which RUM events are excluded. Defaults to "".
    application_id string
    RUM application ID.
    enabled bool
    Whether the exclusion filter is active. Defaults to true.
    event_type string
    The type of RUM events to filter on.
    name string
    The name of the exclusion filter.
    query string
    Additional query used to further restrict which RUM events are excluded. Defaults to "".
    applicationId String
    RUM application ID.
    enabled Boolean
    Whether the exclusion filter is active. Defaults to true.
    eventType String
    The type of RUM events to filter on.
    name String
    The name of the exclusion filter.
    query String
    Additional query used to further restrict which RUM events are excluded. Defaults to "".
    applicationId string
    RUM application ID.
    enabled boolean
    Whether the exclusion filter is active. Defaults to true.
    eventType string
    The type of RUM events to filter on.
    name string
    The name of the exclusion filter.
    query string
    Additional query used to further restrict which RUM events are excluded. Defaults to "".
    application_id str
    RUM application ID.
    enabled bool
    Whether the exclusion filter is active. Defaults to true.
    event_type str
    The type of RUM events to filter on.
    name str
    The name of the exclusion filter.
    query str
    Additional query used to further restrict which RUM events are excluded. Defaults to "".
    applicationId String
    RUM application ID.
    enabled Boolean
    Whether the exclusion filter is active. Defaults to true.
    eventType String
    The type of RUM events to filter on.
    name String
    The name of the exclusion filter.
    query String
    Additional query used to further restrict which RUM events are excluded. Defaults to "".

    Import

    The pulumi import command can be used, for example:

    $ pulumi import datadog:index/rumExclusionFilter:RumExclusionFilter testing_rum_exclusion_filter "<application_id>:<exclusion_filter_id>"
    

    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.11.0
    published on Tuesday, Sep 15, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial