You are viewing documentation for version 2 of the AWS SDK for Ruby. Version 3 documentation can be found here.

Class: Aws::LexModelBuildingService::Types::SlotTypeRegexConfiguration

Inherits:
Struct
  • Object
show all
Defined in:
(unknown)

Overview

Note:

When passing SlotTypeRegexConfiguration as input to an Aws::Client method, you can use a vanilla Hash:

{
  pattern: "RegexPattern", # required
}

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

Returned by:

Instance Attribute Summary collapse

Instance Attribute Details

#patternString

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

Returns:

  • (String)

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