Provides a Datadog Cloud Workload Security Agent Rule API resource for agent rules.
resource "datadog_cloud_workload_security_agent_rule" "my_agent_rule" {
name = "my_agent_rule"
description = "My agent rule"
enabled = true
expression = "exec.file.name == \"java\""
}
expression
(String) The SECL expression of the Agent rule.name
(String) The name of the Agent rule.description
(String) The description of the Agent rule. Defaults to ""
.enabled
(Boolean) Whether the Agent rule is enabled. Defaults to true
.id
(String) The ID of this resource.Import is supported using the following syntax:
# Cloud Workload Security Agent rules can be imported using ID, e.g.
terraform import datadog_cloud_workload_security_agent_rule.my_agent_rule m0o-hto-lkb