> ## Documentation Index
> Fetch the complete documentation index at: https://docs.sazabi.com/llms.txt
> Use this file to discover all available pages before exploring further.

# 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

```hcl theme={"system"}
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`, `issue_updated`, `issue_ongoing`. `issue_ongoing` takes Slack, Microsoft Teams and webhook destinations only. |
| `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. Exclusive with `team_ids`. |
| `team_ids` | set(string) | Optional | Restrict to components owned by these teams. Omit to match all. Exclusive with `component_ids`. |
| `id` | string | Computed | Rule ID. |

## Import

```bash theme={"system"}
terraform import sazabi_notification_delivery_rule.example "<project_id>/<rule_id>"
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.