datadog_csm_threats_agent_rule (Resource)

Provides a Datadog CSM Threats Agent Rule API resource.

Example Usage

resource "datadog_csm_threats_agent_rule" "my_agent_rule" {
  name        = "my_agent_rule"
  enabled     = true
  description = "im a rule"
  expression  = "open.file.name == \"etc/shadow/password\""
}

Schema

Required

Optional

Read-Only

Import

Import is supported using the following syntax:

# CSM Agent Rules can be imported using ID. For example:
terraform import datadog_csm_threats_agent_rule.my_agent_rule m0o-hto-lkb