Interface CfnWebACL.IUriFragmentProperty
Inspect fragments of the request URI.
Namespace: Amazon.CDK.AWS.WAFv2
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface CfnWebACL.IUriFragmentProperty
Syntax (vb)
Public Interface CfnWebACL.IUriFragmentProperty
Remarks
You can specify the parts of the URI fragment to inspect and you can narrow the set of URI fragments to inspect by including or excluding specific keys.
This is used to indicate the web request component to inspect, in the FieldToMatch specification.
Example JSON: "UriFragment": { "MatchPattern": { "All": {} }, "MatchScope": "KEY", "OversizeHandling": "MATCH" }
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 uriFragmentProperty = new UriFragmentProperty {
FallbackBehavior = "fallbackBehavior"
};
Synopsis
Properties
| FallbackBehavior | What AWS WAF should do if it fails to completely parse the JSON body. The options are the following:. |
Properties
FallbackBehavior
What AWS WAF should do if it fails to completely parse the JSON body. The options are the following:.
string? FallbackBehavior { get; }
Property Value
Remarks
If you don't provide this setting, AWS WAF parses and evaluates the content only up to the first parsing failure that it encounters.
Example JSON: { "UriFragment": { "FallbackBehavior": "MATCH"} }
AWS WAF parsing doesn't fully validate the input JSON string, so parsing can succeed even for invalid JSON. When parsing succeeds, AWS WAF doesn't apply the fallback behavior. For more information, see <a href="https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-fields-list.html#waf-rule-statement-request-component-json-body">JSON body</a> in the <em>AWS WAF Developer Guide</em> .