Interface CfnWebACL.IJsonMatchPatternProperty
The patterns to look for in the JSON body.
Namespace: Amazon.CDK.AWS.WAFv2
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface IJsonMatchPatternProperty
Syntax (vb)
Public Interface IJsonMatchPatternProperty
Remarks
AWS WAF inspects the results of these pattern matches against the rule inspection criteria. This is used with the FieldToMatch
option JsonBody
.
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 all;
var jsonMatchPatternProperty = new JsonMatchPatternProperty {
All = all,
IncludedPaths = new [] { "includedPaths" }
};
Synopsis
Properties
All | Match all of the elements. See also |
Included |
Match only the specified include paths. See also |
Properties
All
Match all of the elements. See also MatchScope
in the JsonBody
FieldToMatch
specification.
virtual object All { get; }
Property Value
System.
Remarks
You must specify either this setting or the IncludedPaths
setting, but not both.
IncludedPaths
Match only the specified include paths. See also MatchScope
in the JsonBody
FieldToMatch
specification.
virtual string[] IncludedPaths { get; }
Property Value
System.
Remarks
Provide the include paths using JSON Pointer syntax. For example, "IncludedPaths": ["/dogs/0/name", "/dogs/1/name"]
. For information about this syntax, see the Internet Engineering Task Force (IETF) documentation JavaScript Object Notation (JSON) Pointer .
You must specify either this setting or the All
setting, but not both.
Don't use this option to include all paths. Instead, use the All
setting.