Terraform provider
sazabi_notification_delivery_rule
Terraform resource for a project notification delivery rule.
Manages a project notification delivery rule: which notification types are delivered to which shared destinations, optionally filtered by component and severity. Updates perform an atomic full replace. The project is immutable.
Example
resource "sazabi_notification_delivery_rule" "slack_issues" {
project_id = sazabi_project.example.id
notification_types = ["issue_triggered", "issue_resolved"]
destinations {
channel = "slack_channel"
destination_key = "C0123ABCDEF"
}
condition = {
severities = ["high", "critical"]
}
}Arguments
| Attribute | Type | Behavior | Description |
|---|---|---|---|
project_id | string | Required | Owning project. Immutable. |
notification_types | list(string) | Required | One or more of issue_triggered, issue_resolved, issue_ignored, automation_run_failed. |
destinations | list(block) | Required | One or more destinations. Each has channel (slack_channel, teams_channel, incident_io, pagerduty, rootly, or webhook) and destination_key. |
condition | object | Optional, Computed | Optional severities list (low, medium, high, critical). |
component_ids | set(string) | Optional | Restrict to specific components. Omit to match all. |
include_descendants | bool | Optional, Computed | Include descendant components. Defaults to false. |
id | string | Computed | Rule ID. |
Import
terraform import sazabi_notification_delivery_rule.example "<project_id>/<rule_id>"