Skip to content

SlotTypeRegexConfiguration

Source code in docs_src/capo_lex_model_building_service/types/slot_type_regex_configuration.py
class SlotTypeRegexConfiguration(TypedDict, closed=True):
    pattern: "capo_lex_model_building_service.types.regex_pattern.RegexPattern"
    r"""<p>A regular expression used to validate the value of a slot. </p> <p>Use a standard regular expression. Amazon Lex supports the following characters in the regular expression:</p> <ul> <li> <p>A-Z, a-z</p> </li> <li> <p>0-9</p> </li> <li> <p>Unicode characters ("\ u<Unicode>")</p> </li> </ul> <p>Represent Unicode characters with four digits, for example "\u0041" or "\u005A".</p> <p>The following regular expression operators are not supported:</p> <ul> <li> <p>Infinite repeaters: *, +, or {x,} with no upper bound.</p> </li> <li> <p>Wild card (.)</p> </li> </ul>"""

pattern instance-attribute

pattern: RegexPattern

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