---
layout: "fastly"
page_title: "Fastly: ngwaf_workspace_signal"
sidebar_current: "docs-fastly-resource-ngwaf-workspace-signal"
description: |-
  Provides a Fastly Next-Gen WAF Workspace Signal
---

# fastly_ngwaf_workspace_signal

Provides a Fastly Next-Gen WAF Workspace Signal, scoped to a specific NGWAF workspace.  
These signals define conditions and actions that trigger WAF enforcement at the workspace level.

## Example Usage

Basic usage:

```terraform
resource "fastly_ngwaf_workspace" "example" {
  name                            = "example"
  description                     = "Test NGWAF Workspace"
  mode                            = "block"
  ip_anonymization                = "hashed"
  client_ip_headers               = ["X-Forwarded-For", "X-Real-IP"]
  default_blocking_response_code = 429

  attack_signal_thresholds {}
}

resource "fastly_ngwaf_workspace_signal" "example" {
  workspace_id     = fastly_ngwaf_workspace.example.id
  description      = "example"
  name             = "Test Name"
}
```

## Import

Fastly Next-Gen WAF workspace signals can be imported using the format `<workspaceID>/<signalID>`, e.g.:

```sh
$ terraform import fastly_ngwaf_workspace_signal.demo <workspaceID>/<signalID>
```

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

### Required

- `name` (String) The name of the signal. Special characters and periods are not accepted.
- `workspace_id` (String) The ID of the workspace.

### Optional

- `description` (String) The description of the signal.

### Read-Only

- `id` (String) The ID of this resource.
- `reference_id` (String) The generated reference ID of the signal.
