Class: AWSCDK::Lex::CfnBot::SlotDefaultValueProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Lex::CfnBot::SlotDefaultValueProperty
- Defined in:
- lex/cfn_bot.rb
Overview
Specifies the default value to use when a user doesn't provide a value for a slot.
Instance Attribute Summary collapse
-
#default_value ⇒ String
readonly
The default value to use when a user doesn't provide a value for a slot.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(default_value:) ⇒ SlotDefaultValueProperty
constructor
A new instance of SlotDefaultValueProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(default_value:) ⇒ SlotDefaultValueProperty
Returns a new instance of SlotDefaultValueProperty.
5338 5339 5340 5341 |
# File 'lex/cfn_bot.rb', line 5338 def initialize(default_value:) @default_value = default_value Jsii::Type.check_type(@default_value, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "defaultValue") end |
Instance Attribute Details
#default_value ⇒ String (readonly)
The default value to use when a user doesn't provide a value for a slot.
5347 5348 5349 |
# File 'lex/cfn_bot.rb', line 5347 def default_value @default_value end |
Class Method Details
.jsii_properties ⇒ Object
5349 5350 5351 5352 5353 |
# File 'lex/cfn_bot.rb', line 5349 def self.jsii_properties { :default_value => "defaultValue", } end |
Instance Method Details
#to_jsii ⇒ Object
5355 5356 5357 5358 5359 5360 5361 |
# File 'lex/cfn_bot.rb', line 5355 def to_jsii result = {} result.merge!({ "defaultValue" => @default_value, }) result.compact end |