Class: AWSCDK::Lex::CfnBot::SampleValueProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Lex::CfnBot::SampleValueProperty
- Defined in:
- lex/cfn_bot.rb
Overview
Defines one of the values for a slot type.
Instance Attribute Summary collapse
-
#value ⇒ String
readonly
The value that can be used for a slot type.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(value:) ⇒ SampleValueProperty
constructor
A new instance of SampleValueProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(value:) ⇒ SampleValueProperty
Returns a new instance of SampleValueProperty.
5124 5125 5126 5127 |
# File 'lex/cfn_bot.rb', line 5124 def initialize(value:) @value = value Jsii::Type.check_type(@value, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "value") end |
Instance Attribute Details
#value ⇒ String (readonly)
The value that can be used for a slot type.
5133 5134 5135 |
# File 'lex/cfn_bot.rb', line 5133 def value @value end |
Class Method Details
.jsii_properties ⇒ Object
5135 5136 5137 5138 5139 |
# File 'lex/cfn_bot.rb', line 5135 def self.jsii_properties { :value => "value", } end |
Instance Method Details
#to_jsii ⇒ Object
5141 5142 5143 5144 5145 5146 5147 |
# File 'lex/cfn_bot.rb', line 5141 def to_jsii result = {} result.merge!({ "value" => @value, }) result.compact end |