# CfnRegexPatternSetPropsMixin

> This is the latest version of *AWS WAF* , named AWS WAF V2, released in November, 2019.

For information, including how to migrate your AWS WAF resources from the prior release, see the [AWS WAF developer guide](https://docs.aws.amazon.com/waf/latest/developerguide/waf-chapter.html) .

Use an `RegexPatternSet` to have AWS WAF inspect a web request component for a specific set of regular expression patterns.

You use a regex pattern set by providing its Amazon Resource Name (ARN) to the rule statement `RegexPatternSetReferenceStatement` , when you add a rule to a rule group or web ACL.

Extends: [Mixin](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.Mixin.html) › CfnRegexPatternSetPropsMixin
Implements: [IMixin](https://docs.aws.amazon.com/cdk/api/v2/docs/constructs.IMixin.html)

- CloudFormation: [`AWS::WAFv2::RegexPatternSet`](https://docs.aws.amazon.com/AWSCloudFormation/latest/TemplateReference/aws-resource-wafv2-regexpatternset.html)
- Source: Generated at build time
- Type last changed: v2.269.0 · 16 Sep 2026

## Initializer

TypeScript:

```ts
new CfnRegexPatternSetPropsMixin(props: CfnRegexPatternSetMixinProps, options?: CfnPropertyMixinOptions)
```

Python:

```python
CfnRegexPatternSetPropsMixin(props: CfnRegexPatternSetMixinProps, options: typing.Optional[CfnPropertyMixinOptions] = None)
```

Java:

```java
new CfnRegexPatternSetPropsMixin(CfnRegexPatternSetMixinProps props, CfnPropertyMixinOptions options)
```

C# / .NET:

```csharp
new CfnRegexPatternSetPropsMixin(CfnRegexPatternSetMixinProps props, CfnPropertyMixinOptions? options = null)
```

Golang:

```go
NewCfnRegexPatternSetPropsMixin(Props CfnRegexPatternSetMixinProps, Options CfnPropertyMixinOptions)
```

## Methods

- `applyTo(construct: IConstruct): void` — Apply the mixin properties to the construct.

- `isMixin(x: any): boolean` (static) — Checks if `x` is a Mixin.

  **Parameters**

  - `x` — Any object.

  **Returns:** true if `x` is an object created from a class which extends `Mixin`.

- `supports(construct: IConstruct): boolean` — Check if this mixin supports the given construct.
