Class: AWSCDK::Lex::CfnBot::SpecificationsProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
lex/cfn_bot.rb

Overview

Subslot specifications.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(value_elicitation_setting:, slot_type_id: nil, slot_type_name: nil) ⇒ SpecificationsProperty

Returns a new instance of SpecificationsProperty.

Parameters:



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_idString? (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_nameString? (readonly)



6102
6103
6104
# File 'lex/cfn_bot.rb', line 6102

def slot_type_name
  @slot_type_name
end

#value_elicitation_settingAWSCDK::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_propertiesObject



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_jsiiObject



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