Class: AWSCDK::Lex::CfnBot::SpecificationsProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Lex::CfnBot::SpecificationsProperty
- Defined in:
- lex/cfn_bot.rb
Overview
Subslot specifications.
Instance Attribute Summary collapse
-
#slot_type_id ⇒ String?
readonly
The unique identifier assigned to the slot type.
- #slot_type_name ⇒ String? readonly
-
#value_elicitation_setting ⇒ AWSCDK::IResolvable, AWSCDK::Lex::CfnBot::SubSlotValueElicitationSettingProperty
readonly
Specifies the elicitation setting details for constituent sub slots of a composite slot.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(value_elicitation_setting:, slot_type_id: nil, slot_type_name: nil) ⇒ SpecificationsProperty
constructor
A new instance of SpecificationsProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(value_elicitation_setting:, slot_type_id: nil, slot_type_name: nil) ⇒ SpecificationsProperty
Returns a new instance of SpecificationsProperty.
6081 6082 6083 6084 6085 6086 6087 6088 |
# File 'lex/cfn_bot.rb', line 6081 def initialize(value_elicitation_setting:, slot_type_id: nil, slot_type_name: nil) @value_elicitation_setting = value_elicitation_setting.is_a?(Hash) ? ::AWSCDK::Lex::CfnBot::SubSlotValueElicitationSettingProperty.new(**value_elicitation_setting.transform_keys(&:to_sym)) : value_elicitation_setting Jsii::Type.check_type(@value_elicitation_setting, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19sZXguQ2ZuQm90LlN1YlNsb3RWYWx1ZUVsaWNpdGF0aW9uU2V0dGluZ1Byb3BlcnR5In1dfX0=")), "valueElicitationSetting") @slot_type_id = slot_type_id Jsii::Type.check_type(@slot_type_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "slotTypeId") unless @slot_type_id.nil? @slot_type_name = slot_type_name Jsii::Type.check_type(@slot_type_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "slotTypeName") unless @slot_type_name.nil? end |
Instance Attribute Details
#slot_type_id ⇒ String? (readonly)
The unique identifier assigned to the slot type.
6099 6100 6101 |
# File 'lex/cfn_bot.rb', line 6099 def slot_type_id @slot_type_id end |
#slot_type_name ⇒ String? (readonly)
6102 6103 6104 |
# File 'lex/cfn_bot.rb', line 6102 def slot_type_name @slot_type_name end |
#value_elicitation_setting ⇒ AWSCDK::IResolvable, AWSCDK::Lex::CfnBot::SubSlotValueElicitationSettingProperty (readonly)
Specifies the elicitation setting details for constituent sub slots of a composite slot.
6094 6095 6096 |
# File 'lex/cfn_bot.rb', line 6094 def value_elicitation_setting @value_elicitation_setting end |
Class Method Details
.jsii_properties ⇒ Object
6104 6105 6106 6107 6108 6109 6110 |
# File 'lex/cfn_bot.rb', line 6104 def self.jsii_properties { :value_elicitation_setting => "valueElicitationSetting", :slot_type_id => "slotTypeId", :slot_type_name => "slotTypeName", } end |
Instance Method Details
#to_jsii ⇒ Object
6112 6113 6114 6115 6116 6117 6118 6119 6120 |
# File 'lex/cfn_bot.rb', line 6112 def to_jsii result = {} result.merge!({ "valueElicitationSetting" => @value_elicitation_setting, "slotTypeId" => @slot_type_id, "slotTypeName" => @slot_type_name, }) result.compact end |