Interface CfnLoggingConfiguration.JsonBodyProperty

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
CfnLoggingConfiguration.JsonBodyProperty.Jsii$Proxy
Enclosing class:
CfnLoggingConfiguration

@Stability(Stable) public static interface CfnLoggingConfiguration.JsonBodyProperty extends software.amazon.jsii.JsiiSerializable
Inspect the body of the web request as JSON. The body immediately follows the request headers.

This is used to indicate the web request component to inspect, in the FieldToMatch specification.

Use the specifications in this object to indicate which parts of the JSON body to inspect using the rule's inspection criteria. AWS WAF inspects only the parts of the JSON that result from the matches that you indicate.

Example JSON: "JsonBody": { "MatchPattern": { "All": {} }, "MatchScope": "ALL" }

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 all;
 JsonBodyProperty jsonBodyProperty = JsonBodyProperty.builder()
         .matchPattern(MatchPatternProperty.builder()
                 .all(all)
                 .includedPaths(List.of("includedPaths"))
                 .build())
         .matchScope("matchScope")
         // the properties below are optional
         .invalidFallbackBehavior("invalidFallbackBehavior")
         .build();
 

See Also: