---
layout: "fastly"
page_title: "Fastly: ngwaf_thresholds"
sidebar_current: "docs-fastly-resource-ngwaf_thresholds"
description: |-
  Provides a Fastly Next-Gen WAF Threshold
---

# fastly_ngwaf_thresholds

Provides a Fastly Next-Gen WAF Threshold.  Operations related to managing workspace thresholds.

## Example Usage

Basic usage:

```terraform
resource "fastly_ngwaf_thresholds" "demo" {
    action       = "block"
    dont_notify  = false
    duration     = 86400
    enabled      = true
    interval     = 3600
    limit        = 10
    name         = "%s"
    signal       = "SQLI"
    workspace_id = fastly_ngwaf_workspace.example.id
  }
```

## Import

Fastly Next-Gen WAF Thresholds can be imported using their workspace and Threshold ID, e.g.

```sh
$ terraform import fastly_ngwaf_threshold.example <workspace_id>/<threshold_id>
```

<!-- schema generated by tfplugindocs -->
## Schema

### Required

- `action` (String) Action to take when threshold is exceeded.
- `dont_notify` (Boolean) Whether to silence notifications when action is taken.
- `enabled` (Boolean) Whether this threshold is active.
- `interval` (Number) Threshold interval in seconds. Accepted values are `60`, `600`, and `3600`.
- `limit` (Number) Threshold limit. Minimum 1 and maximum 10,000.
- `name` (String) The name of the threshold.
- `signal` (String) The name of the signal this threshold is acting on.
- `workspace_id` (String) The ID of the workspace.

### Optional

- `duration` (Number) Duration the action is in place, in seconds. Minimum 1 and maximum 31,556,900.

### Read-Only

- `id` (String) The ID of this resource.
