# FieldToMatchProperty

Specifies a field in the request to redact from WAF logs, such as headers, query parameters, or body content.

- Source: Generated at build time
- Type last changed: v2.233.0 · 18 Dec 2025

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_observabilityadmin as observabilityadmin } from 'aws-cdk-lib';
const fieldToMatchProperty: observabilityadmin.CfnTelemetryRule.FieldToMatchProperty = {
  method: 'method',
  queryString: 'queryString',
  singleHeader: {
    name: 'name',
  },
  uriPath: 'uriPath',
};
```

Python:

```python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_observabilityadmin as observabilityadmin

field_to_match_property = observabilityadmin.CfnTelemetryRule.FieldToMatchProperty(
    method="method",
    query_string="queryString",
    single_header=observabilityadmin.CfnTelemetryRule.SingleHeaderProperty(
        name="name"
    ),
    uri_path="uriPath"
)
```

Java:

```java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.observabilityadmin.*;

FieldToMatchProperty fieldToMatchProperty = FieldToMatchProperty.builder()
        .method("method")
        .queryString("queryString")
        .singleHeader(SingleHeaderProperty.builder()
                .name("name")
                .build())
        .uriPath("uriPath")
        .build();
```

C# / .NET:

```csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.ObservabilityAdmin;

var fieldToMatchProperty = new FieldToMatchProperty {
    Method = "method",
    QueryString = "queryString",
    SingleHeader = new SingleHeaderProperty {
        Name = "name"
    },
    UriPath = "uriPath"
};
```

Golang:

```go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

fieldToMatchProperty := &FieldToMatchProperty{
	Method: jsii.String("method"),
	QueryString: jsii.String("queryString"),
	SingleHeader: &SingleHeaderProperty{
		Name: jsii.String("name"),
	},
	UriPath: jsii.String("uriPath"),
}
```

## Properties

- `method`: string — Redacts the HTTP method from WAF logs.

- `queryString`: string — Redacts the entire query string from WAF logs.

- `singleHeader`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnTelemetryRule.SingleHeaderProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_observabilityadmin.CfnTelemetryRule.SingleHeaderProperty.html) — Redacts a specific header field by name from WAF logs.

- `uriPath`: string — Redacts the URI path from WAF logs.
