Interface CfnBot.SlotValueRegexFilterProperty

All Superinterfaces:
All Known Implementing Classes:
Enclosing class:

@Stability(Stable) public static interface CfnBot.SlotValueRegexFilterProperty extends
Provides a regular expression used to validate the value of a slot.


 // The code below shows an example of how to instantiate this type.
 // The values are placeholders you should change.
 SlotValueRegexFilterProperty slotValueRegexFilterProperty = SlotValueRegexFilterProperty.builder()
  • Method Details

    • getPattern

      @Stability(Stable) @NotNull String getPattern()
      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 (.)
    • builder

      @Stability(Stable) static CfnBot.SlotValueRegexFilterProperty.Builder builder()
      a CfnBot.SlotValueRegexFilterProperty.Builder of CfnBot.SlotValueRegexFilterProperty