Interface CfnLoggingConfiguration.IFieldToMatchProperty
The parts of the request that you want to keep out of the logs.
Namespace: Amazon.CDK.AWS.WAFv2
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface CfnLoggingConfiguration.IFieldToMatchProperty
Syntax (vb)
Public Interface CfnLoggingConfiguration.IFieldToMatchProperty
Remarks
This is used in the logging configuration RedactedFields specification.
Example JSON for a QueryString field to match:
"FieldToMatch": { "QueryString": {} }
Example JSON for a Method field to match specification:
"FieldToMatch": { "Method": { "Name": "DELETE" } }
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.WAFv2;
var jsonBody;
var method;
var queryString;
var singleHeader;
var uriPath;
var fieldToMatchProperty = new FieldToMatchProperty {
JsonBody = jsonBody,
Method = method,
QueryString = queryString,
SingleHeader = singleHeader,
UriPath = uriPath
};
Synopsis
Properties
| JsonBody | The parts of the request that you want to keep out of the logs. |
| Method | Redact the indicated HTTP method. |
| QueryString | Redact the query string. |
| SingleHeader | Redact a single header. |
| UriPath | Redact the request URI path. |
Properties
JsonBody
The parts of the request that you want to keep out of the logs.
object? JsonBody { get; }
Property Value
Remarks
Method
Redact the indicated HTTP method.
object? Method { get; }
Property Value
Remarks
The method indicates the type of operation that the request is asking the origin to perform.
QueryString
Redact the query string.
object? QueryString { get; }
Property Value
Remarks
This is the part of a URL that appears after a ? character, if any.
SingleHeader
Redact a single header.
object? SingleHeader { get; }
Property Value
Remarks
Provide the name of the header to inspect, for example, User-Agent or Referer . This setting isn't case sensitive.
Example JSON: "SingleHeader": { "Name": "haystack" }
UriPath
Redact the request URI path.
object? UriPath { get; }
Property Value
Remarks
This is the part of the web request that identifies a resource, for example, /images/daily-ad.jpg .