Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for target_ip attribute to nested filter block in cloudflare_notification_policy #3263

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .changelog/3263.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:enhancement
resource/cloudflare_notification_policy: add 'target_ip' atrribute to 'filter' nested block
```
1 change: 1 addition & 0 deletions docs/resources/notification_policy.md
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ Optional:
- `slo` (Set of String) A numerical limit. Example: `99.9`.
- `status` (Set of String) Status to alert on.
- `target_hostname` (Set of String) Target host to alert on for dos.
- `target_ip` (Set of String) Target ip to alert on for dos in CIDR notation.
- `target_zone_name` (Set of String) Target domain to alert on.
- `tunnel_id` (Set of String) Tunnel IDs to alert on.
- `where` (Set of String) Filter for alert.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -386,6 +386,14 @@ func notificationPolicyFilterSchema() *schema.Schema {
Optional: true,
Description: "Target host to alert on for dos.",
},
"target_ip": {
Type: schema.TypeSet,
Elem: &schema.Schema{
Type: schema.TypeString,
},
Optional: true,
Description: "Target ip to alert on for dos in CIDR notation.",
},
"packets_per_second": {
Type: schema.TypeSet,
Elem: &schema.Schema{
Expand Down
Loading