aws-cdk-lib.aws_lex.CfnBot.SlotValueRegexFilterProperty

interface SlotValueRegexFilterProperty

LanguageType name
.NETAmazon.CDK.AWS.Lex.CfnBot.SlotValueRegexFilterProperty
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awslex#CfnBot_SlotValueRegexFilterProperty
Javasoftware.amazon.awscdk.services.lex.CfnBot.SlotValueRegexFilterProperty
Pythonaws_cdk.aws_lex.CfnBot.SlotValueRegexFilterProperty
TypeScript aws-cdk-lib » aws_lex » CfnBot » 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 { aws_lex as lex } from 'aws-cdk-lib';
const slotValueRegexFilterProperty: lex.CfnBot.SlotValueRegexFilterProperty = {
  pattern: 'pattern',
};

Properties

NameTypeDescription
patternstringA regular expression used to validate the value of a slot.

pattern

Type: string

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")

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 (.)