---
layout: "fastly"
page_title: "Fastly: ngwaf_redaction"
sidebar_current: "docs-fastly-resource-ngwaf-redaction"
description: |-
  Provides a Fastly Next-Gen WAF Redaction for a Workspace
---

# fastly_ngwaf_redaction

Provides a Fastly Next-Gen WAF Redaction, which can automatically redact known patterns of sensitive information.

## Example Usage

Basic usage:

```terraform
resource "fastly_ngwaf_redaction" "demo_redaction" {
  field                        = "some field"
  type                         = "request_header"
  workspace_id                 = fastly_ngwaf_workspace.demo.id
}
```

## Import

Fastly Next-Gen WAF Redactions can be imported using their ID and the ID of the workspace they belong to.

```sh
$ terraform import fastly_ngwaf_redaction.example <workspace_id>/<redaction_id>
```

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

### Required

- `field` (String) The name of the field that should be redacted.
- `type` (String) The type of field that is being redacted. Accepted values are `request_parameter`, `request_header`, and `response_header`.
- `workspace_id` (String) The ID of the workspace.

### Read-Only

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