Class CfnWebACL.JsonMatchPatternProperty
The patterns to look for in the JSON body.
Inheritance
Implements
Namespace: Amazon.CDK.AWS.WAFv2
Assembly: Amazon.CDK.AWS.WAFv2.dll
Syntax (csharp)
public class JsonMatchPatternProperty : Object, CfnWebACL.IJsonMatchPatternProperty
Syntax (vb)
Public Class JsonMatchPatternProperty
Inherits Object
Implements CfnWebACL.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
Constructors
JsonMatchPatternProperty() |
Properties
All | Match all of the elements. See also |
IncludedPaths | Match only the specified include paths. See also |
Constructors
JsonMatchPatternProperty()
public JsonMatchPatternProperty()
Properties
All
Match all of the elements. See also MatchScope
in the JsonBody
FieldToMatch
specification.
public object All { get; set; }
Property Value
System.Object
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.
public string[] IncludedPaths { get; set; }
Property Value
System.String[]
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.