datadog_apm_retention_filter_order (Resource)

Provides a Datadog APM Retention Filters API resource, which is used to manage Datadog APM retention filters order.

Example Usage

# Create APM retention filter
resource "datadog_apm_retention_filter" "foo" {
  name = "Sample order"
  rate = "1.0"
  filter {
    query = "*"
  }
  filter_type = "spans-sampling-processor"
  enabled     = false
}

# Create APM reention filter order
resource "datadog_apm_retention_filter_order" "bar" {
  filter_ids = [datadog_apm_retention_filter.foo.id]
}

Schema

Required

Read-Only

Import

Import is supported using the following syntax:

# Import existing APM retention filter order
# Note: Value of <foo> can be anything as this id is not stored by the resource
terraform import datadog_apm_retention_filter_order.bar <foo>