Show / Hide Table of Contents

Class CfnRuleGroupPropsMixin.RegexPatternSetReferenceStatementProperty

A rule statement used to search web request components for matches with regular expressions.

Inheritance
object
CfnRuleGroupPropsMixin.RegexPatternSetReferenceStatementProperty
Implements
CfnRuleGroupPropsMixin.IRegexPatternSetReferenceStatementProperty
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: Amazon.CDK.Mixins.Preview.AWS.WAFv2.Mixins
Assembly: Amazon.CDK.Mixins.Preview.dll
Syntax (csharp)
public class CfnRuleGroupPropsMixin.RegexPatternSetReferenceStatementProperty : CfnRuleGroupPropsMixin.IRegexPatternSetReferenceStatementProperty
Syntax (vb)
Public Class CfnRuleGroupPropsMixin.RegexPatternSetReferenceStatementProperty Implements CfnRuleGroupPropsMixin.IRegexPatternSetReferenceStatementProperty
Remarks

To use this, create a RegexPatternSet that specifies the expressions that you want to detect, then use the ARN of that set in this statement. A web request matches the pattern set rule statement if the request component matches any of the patterns in the set.

Each regex pattern set rule statement references a regex pattern set. You create and maintain the set independent of your rules. This allows you to use the single set in multiple rules. When you update the referenced set, AWS WAF automatically updates all rules that reference it.

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-regexpatternsetreferencestatement.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.Mixins.Preview.AWS.WAFv2.Mixins;

             var all;
             var allQueryArguments;
             var method;
             var queryString;
             var singleHeader;
             var singleQueryArgument;
             var uriPath;

             var regexPatternSetReferenceStatementProperty = new RegexPatternSetReferenceStatementProperty {
                 Arn = "arn",
                 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"
                     },
                     Ja3Fingerprint = new JA3FingerprintProperty {
                         FallbackBehavior = "fallbackBehavior"
                     },
                     Ja4Fingerprint = new JA4FingerprintProperty {
                         FallbackBehavior = "fallbackBehavior"
                     },
                     JsonBody = new JsonBodyProperty {
                         InvalidFallbackBehavior = "invalidFallbackBehavior",
                         MatchPattern = new JsonMatchPatternProperty {
                             All = all,
                             IncludedPaths = new [] { "includedPaths" }
                         },
                         MatchScope = "matchScope",
                         OversizeHandling = "oversizeHandling"
                     },
                     Method = method,
                     QueryString = queryString,
                     SingleHeader = singleHeader,
                     SingleQueryArgument = singleQueryArgument,
                     UriFragment = new UriFragmentProperty {
                         FallbackBehavior = "fallbackBehavior"
                     },
                     UriPath = uriPath
                 },
                 TextTransformations = new [] { new TextTransformationProperty {
                     Priority = 123,
                     Type = "type"
                 } }
             };

Synopsis

Constructors

RegexPatternSetReferenceStatementProperty()

A rule statement used to search web request components for matches with regular expressions.

Properties

Arn

The Amazon Resource Name (ARN) of the RegexPatternSet that this statement references.

FieldToMatch

The part of the web request that you want AWS WAF to inspect.

TextTransformations

Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection.

Constructors

RegexPatternSetReferenceStatementProperty()

A rule statement used to search web request components for matches with regular expressions.

public RegexPatternSetReferenceStatementProperty()
Remarks

To use this, create a RegexPatternSet that specifies the expressions that you want to detect, then use the ARN of that set in this statement. A web request matches the pattern set rule statement if the request component matches any of the patterns in the set.

Each regex pattern set rule statement references a regex pattern set. You create and maintain the set independent of your rules. This allows you to use the single set in multiple rules. When you update the referenced set, AWS WAF automatically updates all rules that reference it.

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-regexpatternsetreferencestatement.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.Mixins.Preview.AWS.WAFv2.Mixins;

             var all;
             var allQueryArguments;
             var method;
             var queryString;
             var singleHeader;
             var singleQueryArgument;
             var uriPath;

             var regexPatternSetReferenceStatementProperty = new RegexPatternSetReferenceStatementProperty {
                 Arn = "arn",
                 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"
                     },
                     Ja3Fingerprint = new JA3FingerprintProperty {
                         FallbackBehavior = "fallbackBehavior"
                     },
                     Ja4Fingerprint = new JA4FingerprintProperty {
                         FallbackBehavior = "fallbackBehavior"
                     },
                     JsonBody = new JsonBodyProperty {
                         InvalidFallbackBehavior = "invalidFallbackBehavior",
                         MatchPattern = new JsonMatchPatternProperty {
                             All = all,
                             IncludedPaths = new [] { "includedPaths" }
                         },
                         MatchScope = "matchScope",
                         OversizeHandling = "oversizeHandling"
                     },
                     Method = method,
                     QueryString = queryString,
                     SingleHeader = singleHeader,
                     SingleQueryArgument = singleQueryArgument,
                     UriFragment = new UriFragmentProperty {
                         FallbackBehavior = "fallbackBehavior"
                     },
                     UriPath = uriPath
                 },
                 TextTransformations = new [] { new TextTransformationProperty {
                     Priority = 123,
                     Type = "type"
                 } }
             };

Properties

Arn

The Amazon Resource Name (ARN) of the RegexPatternSet that this statement references.

public string? Arn { get; set; }
Property Value

string

Remarks

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-regexpatternsetreferencestatement.html#cfn-wafv2-rulegroup-regexpatternsetreferencestatement-arn

FieldToMatch

The part of the web request that you want AWS WAF to inspect.

public object? FieldToMatch { get; set; }
Property Value

object

Remarks

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-regexpatternsetreferencestatement.html#cfn-wafv2-rulegroup-regexpatternsetreferencestatement-fieldtomatch

Type union: either IResolvable or CfnRuleGroupPropsMixin.IFieldToMatchProperty

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

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.

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-regexpatternsetreferencestatement.html#cfn-wafv2-rulegroup-regexpatternsetreferencestatement-texttransformations

Type union: either IResolvable or (either IResolvable or CfnRuleGroupPropsMixin.ITextTransformationProperty)[]

Implements

CfnRuleGroupPropsMixin.IRegexPatternSetReferenceStatementProperty
Back to top Generated by DocFX