Skip to content
v2.278.0

FieldToMatchProperty Struct ​

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

Example ​

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.CfnOrganizationTelemetryRule.FieldToMatchProperty = {
  method: 'method',
  queryString: 'queryString',
  singleHeader: {
    name: 'name',
  },
  uriPath: 'uriPath',
};
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.CfnOrganizationTelemetryRule.FieldToMatchProperty(
    method="method",
    query_string="queryString",
    single_header=observabilityadmin.CfnOrganizationTelemetryRule.SingleHeaderProperty(
        name="name"
    ),
    uri_path="uriPath"
)
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();
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"
};
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 ​

methodoptionalstringmethodoptionalstrmethodoptionalStringMethodoptionalstringMethodoptional*string #
Redacts the HTTP method from WAF logs.
queryStringoptionalstringquery_stringoptionalstrqueryStringoptionalStringQueryStringoptionalstringQueryStringoptional*string #
Redacts the entire query string from WAF logs.
singleHeaderoptionalIResolvable | CfnOrganizationTelemetryRule.SingleHeaderPropertysingle_headeroptionaltyping.Union[IResolvable, SingleHeaderProperty]singleHeaderoptionalIResolvableSingleHeaderoptionalIResolvableSingleHeaderoptionalinterface{} #
Redacts a specific header field by name from WAF logs.
uriPathoptionalstringuri_pathoptionalstruriPathoptionalStringUriPathoptionalstringUriPathoptional*string #
Redacts the URI path from WAF logs.