# SlotValueRegexFilterProperty

Provides a regular expression used to validate the value of a slot.

- Source: Generated at build time
- Type last changed: v2.93.0 · 23 Aug 2023

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_lex as lex } from 'aws-cdk-lib';
const slotValueRegexFilterProperty: lex.CfnBot.SlotValueRegexFilterProperty = {
  pattern: 'pattern',
};
```

Python:

```python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_lex as lex

slot_value_regex_filter_property = lex.CfnBot.SlotValueRegexFilterProperty(
    pattern="pattern"
)
```

Java:

```java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.lex.*;

SlotValueRegexFilterProperty slotValueRegexFilterProperty = SlotValueRegexFilterProperty.builder()
        .pattern("pattern")
        .build();
```

C# / .NET:

```csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Lex;

var slotValueRegexFilterProperty = new SlotValueRegexFilterProperty {
    Pattern = "pattern"
};
```

Golang:

```go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

slotValueRegexFilterProperty := &SlotValueRegexFilterProperty{
	Pattern: jsii.String("pattern"),
}
```

## Properties

- `pattern`: string (required) — A regular expression used to validate the value of a slot.

  Use a standard regular expression. Amazon Lex supports the following characters in the regular expression:

  - A-Z, a-z
  - 0-9
  - Unicode characters ("\⁠u<Unicode>")

  Represent Unicode characters with four digits, for example "\⁠u0041" or "\⁠u005A".

  The following regular expression operators are not supported:

  - Infinite repeaters: *, +, or {x,} with no upper bound.
  - Wild card (.)
