interface SlotValueRegexFilterProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.Mixins.Preview.AWS.Lex.Mixins.CfnBotPropsMixin.SlotValueRegexFilterProperty |
Go | github.com/aws/aws-cdk-go/awscdkmixinspreview/v2/awslex/mixins#CfnBotPropsMixin_SlotValueRegexFilterProperty |
Java | software.amazon.awscdk.mixins.preview.services.lex.mixins.CfnBotPropsMixin.SlotValueRegexFilterProperty |
Python | aws_cdk.mixins_preview.aws_lex.mixins.CfnBotPropsMixin.SlotValueRegexFilterProperty |
TypeScript | @aws-cdk/mixins-preview » aws_lex » mixins » CfnBotPropsMixin » SlotValueRegexFilterProperty |
Provides a regular expression used to validate the value of a slot.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { mixins as lex_mixins } from '@aws-cdk/mixins-preview/aws-lex';
const slotValueRegexFilterProperty: lex_mixins.CfnBotPropsMixin.SlotValueRegexFilterProperty = {
pattern: 'pattern',
};
Properties
| Name | Type | Description |
|---|---|---|
| pattern? | string | A regular expression used to validate the value of a slot. |
pattern?
Type:
string
(optional)
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 (.)

.NET
Go
Java
Python
TypeScript