Class CfnRuleGroup.RegexMatchStatementProperty
A rule statement used to search web request components for a match against a single regular expression.
Inheritance
Implements
Namespace: Amazon.CDK.AWS.WAFv2
Assembly: Amazon.CDK.AWS.WAFv2.dll
Syntax (csharp)
public class RegexMatchStatementProperty : Object, CfnRuleGroup.IRegexMatchStatementProperty
Syntax (vb)
Public Class RegexMatchStatementProperty
Inherits Object
Implements CfnRuleGroup.IRegexMatchStatementProperty
Remarks
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 allQueryArguments;
var method;
var queryString;
var singleHeader;
var singleQueryArgument;
var uriPath;
var regexMatchStatementProperty = new RegexMatchStatementProperty {
FieldToMatch = new FieldToMatchProperty {
AllQueryArguments = allQueryArguments,
Body = new BodyProperty {
OversizeHandling = "oversizeHandling"
},
Cookies = new CookiesProperty {
MatchPattern = new CookieMatchPatternProperty {
All = all,
ExcludedCookies = new [] { "excludedCookies" },
IncludedCookies = new [] { "includedCookies" }
},
MatchScope = "matchScope",
OversizeHandling = "oversizeHandling"
},
Headers = new HeadersProperty {
MatchPattern = new HeaderMatchPatternProperty {
All = all,
ExcludedHeaders = new [] { "excludedHeaders" },
IncludedHeaders = new [] { "includedHeaders" }
},
MatchScope = "matchScope",
OversizeHandling = "oversizeHandling"
},
JsonBody = new JsonBodyProperty {
MatchPattern = new JsonMatchPatternProperty {
All = all,
IncludedPaths = new [] { "includedPaths" }
},
MatchScope = "matchScope",
// the properties below are optional
InvalidFallbackBehavior = "invalidFallbackBehavior",
OversizeHandling = "oversizeHandling"
},
Method = method,
QueryString = queryString,
SingleHeader = singleHeader,
SingleQueryArgument = singleQueryArgument,
UriPath = uriPath
},
RegexString = "regexString",
TextTransformations = new [] { new TextTransformationProperty {
Priority = 123,
Type = "type"
} }
};
Synopsis
Constructors
RegexMatchStatementProperty() |
Properties
FieldToMatch | The part of the web request that you want AWS WAF to inspect. |
RegexString | The string representing the regular expression. |
TextTransformations | Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. |
Constructors
RegexMatchStatementProperty()
public RegexMatchStatementProperty()
Properties
FieldToMatch
The part of the web request that you want AWS WAF to inspect.
public object FieldToMatch { get; set; }
Property Value
System.Object
Remarks
RegexString
The string representing the regular expression.
public string RegexString { get; set; }
Property Value
System.String
Remarks
TextTransformations
Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection.
public object TextTransformations { get; set; }
Property Value
System.Object
Remarks
If you specify one or more transformations in a rule statement, AWS WAF performs all transformations on the content of the request component identified by FieldToMatch
, starting from the lowest priority setting, before inspecting the content for a match.