Class: AWSCDK::Lex::CfnBot::SlotValueOverrideMapProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Lex::CfnBot::SlotValueOverrideMapProperty
- Defined in:
- lex/cfn_bot.rb
Overview
Maps a slot name to the SlotValueOverride object.
Instance Attribute Summary collapse
-
#slot_name ⇒ String?
readonly
The name of the slot.
-
#slot_value_override ⇒ AWSCDK::IResolvable, ...
readonly
The SlotValueOverride object to which the slot name will be mapped.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(slot_name: nil, slot_value_override: nil) ⇒ SlotValueOverrideMapProperty
constructor
A new instance of SlotValueOverrideMapProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(slot_name: nil, slot_value_override: nil) ⇒ SlotValueOverrideMapProperty
Returns a new instance of SlotValueOverrideMapProperty.
5837 5838 5839 5840 5841 5842 |
# File 'lex/cfn_bot.rb', line 5837 def initialize(slot_name: nil, slot_value_override: nil) @slot_name = slot_name Jsii::Type.check_type(@slot_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "slotName") unless @slot_name.nil? @slot_value_override = slot_value_override.is_a?(Hash) ? ::AWSCDK::Lex::CfnBot::SlotValueOverrideProperty.new(**slot_value_override.transform_keys(&:to_sym)) : slot_value_override Jsii::Type.check_type(@slot_value_override, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19sZXguQ2ZuQm90LlNsb3RWYWx1ZU92ZXJyaWRlUHJvcGVydHkifV19fQ==")), "slotValueOverride") unless @slot_value_override.nil? end |
Instance Attribute Details
#slot_name ⇒ String? (readonly)
The name of the slot.
5848 5849 5850 |
# File 'lex/cfn_bot.rb', line 5848 def slot_name @slot_name end |
#slot_value_override ⇒ AWSCDK::IResolvable, ... (readonly)
The SlotValueOverride object to which the slot name will be mapped.
5853 5854 5855 |
# File 'lex/cfn_bot.rb', line 5853 def slot_value_override @slot_value_override end |
Class Method Details
.jsii_properties ⇒ Object
5855 5856 5857 5858 5859 5860 |
# File 'lex/cfn_bot.rb', line 5855 def self.jsii_properties { :slot_name => "slotName", :slot_value_override => "slotValueOverride", } end |
Instance Method Details
#to_jsii ⇒ Object
5862 5863 5864 5865 5866 5867 5868 5869 |
# File 'lex/cfn_bot.rb', line 5862 def to_jsii result = {} result.merge!({ "slotName" => @slot_name, "slotValueOverride" => @slot_value_override, }) result.compact end |