Show / Hide Table of Contents

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 CfnWebACL.IJsonMatchPatternProperty
Syntax (vb)
Public Interface 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 .

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-jsonmatchpattern.html

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 MatchScope in the JsonBody FieldToMatch specification.

IncludedPaths

Match only the specified include paths. See also MatchScope in the JsonBody FieldToMatch specification.

Properties

All

Match all of the elements. See also MatchScope in the JsonBody FieldToMatch specification.

object? All { get; }
Property Value

object

Remarks

You must specify either this setting or the IncludedPaths setting, but not both.

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-jsonmatchpattern.html#cfn-wafv2-webacl-jsonmatchpattern-all

IncludedPaths

Match only the specified include paths. See also MatchScope in the JsonBody FieldToMatch specification.

string[]? IncludedPaths { get; }
Property Value

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 <code>All</code> setting.

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-jsonmatchpattern.html#cfn-wafv2-webacl-jsonmatchpattern-includedpaths

Back to top Generated by DocFX