Class: AWSCDK::Lex::CfnBot::SlotValueRegexFilterProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Lex::CfnBot::SlotValueRegexFilterProperty
- Defined in:
- lex/cfn_bot.rb
Overview
Provides a regular expression used to validate the value of a slot.
Instance Attribute Summary collapse
-
#pattern ⇒ String
readonly
A regular expression used to validate the value of a slot.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(pattern:) ⇒ SlotValueRegexFilterProperty
constructor
A new instance of SlotValueRegexFilterProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(pattern:) ⇒ SlotValueRegexFilterProperty
Returns a new instance of SlotValueRegexFilterProperty.
5971 5972 5973 5974 |
# File 'lex/cfn_bot.rb', line 5971 def initialize(pattern:) @pattern = pattern Jsii::Type.check_type(@pattern, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "pattern") end |
Instance Attribute Details
#pattern ⇒ String (readonly)
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 (.)
5993 5994 5995 |
# File 'lex/cfn_bot.rb', line 5993 def pattern @pattern end |
Class Method Details
.jsii_properties ⇒ Object
5995 5996 5997 5998 5999 |
# File 'lex/cfn_bot.rb', line 5995 def self.jsii_properties { :pattern => "pattern", } end |
Instance Method Details
#to_jsii ⇒ Object
6001 6002 6003 6004 6005 6006 6007 |
# File 'lex/cfn_bot.rb', line 6001 def to_jsii result = {} result.merge!({ "pattern" => @pattern, }) result.compact end |