Interface CfnLoggingConfiguration.FieldToMatchProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnLoggingConfiguration.FieldToMatchProperty.Jsii$Proxy
- Enclosing class:
- CfnLoggingConfiguration
@Stability(Stable)
public static interface CfnLoggingConfiguration.FieldToMatchProperty
extends software.amazon.jsii.JsiiSerializable
The parts of the request that you want to keep out of the logs.
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" } }
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import software.amazon.awscdk.services.wafv2.*; Object jsonBody; Object method; Object queryString; Object singleHeader; Object uriPath; FieldToMatchProperty fieldToMatchProperty = FieldToMatchProperty.builder() .jsonBody(jsonBody) .method(method) .queryString(queryString) .singleHeader(singleHeader) .uriPath(uriPath) .build();
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forCfnLoggingConfiguration.FieldToMatchProperty
static final class
An implementation forCfnLoggingConfiguration.FieldToMatchProperty
-
Method Summary
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getJsonBody
Redact the request body JSON. -
getMethod
Redact the indicated HTTP method.The method indicates the type of operation that the request is asking the origin to perform.
-
getQueryString
Redact the query string.This is the part of a URL that appears after a
?
character, if any. -
getSingleHeader
Redact a single header.Provide the name of the header to inspect, for example,
User-Agent
orReferer
. This setting isn't case sensitive.Example JSON:
"SingleHeader": { "Name": "haystack" }
-
getUriPath
Redact the request URI path.This is the part of the web request that identifies a resource, for example,
/images/daily-ad.jpg
. -
builder
-