Class: AWSCDK::Lex::CfnBot::QnAIntentConfigurationProperty

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

Overview

Details about the the configuration of the built-in Amazon.QnAIntent .

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(bedrock_model_configuration:, data_source_configuration:) ⇒ QnAIntentConfigurationProperty

Returns a new instance of QnAIntentConfigurationProperty.

Parameters:



4691
4692
4693
4694
4695
4696
# File 'lex/cfn_bot.rb', line 4691

def initialize(bedrock_model_configuration:, data_source_configuration:)
  @bedrock_model_configuration = bedrock_model_configuration.is_a?(Hash) ? ::AWSCDK::Lex::CfnBot::BedrockModelSpecificationProperty.new(**bedrock_model_configuration.transform_keys(&:to_sym)) : bedrock_model_configuration
  Jsii::Type.check_type(@bedrock_model_configuration, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19sZXguQ2ZuQm90LkJlZHJvY2tNb2RlbFNwZWNpZmljYXRpb25Qcm9wZXJ0eSJ9XX19")), "bedrockModelConfiguration")
  @data_source_configuration = data_source_configuration.is_a?(Hash) ? ::AWSCDK::Lex::CfnBot::DataSourceConfigurationProperty.new(**data_source_configuration.transform_keys(&:to_sym)) : data_source_configuration
  Jsii::Type.check_type(@data_source_configuration, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19sZXguQ2ZuQm90LkRhdGFTb3VyY2VDb25maWd1cmF0aW9uUHJvcGVydHkifV19fQ==")), "dataSourceConfiguration")
end

Instance Attribute Details

#data_source_configurationAWSCDK::IResolvable, AWSCDK::Lex::CfnBot::DataSourceConfigurationProperty (readonly)

Contains details about the configuration of the data source used for the AMAZON.QnAIntent .



4705
4706
4707
# File 'lex/cfn_bot.rb', line 4705

def data_source_configuration
  @data_source_configuration
end

Class Method Details

.jsii_propertiesObject



4707
4708
4709
4710
4711
4712
# File 'lex/cfn_bot.rb', line 4707

def self.jsii_properties
  {
    :bedrock_model_configuration => "bedrockModelConfiguration",
    :data_source_configuration => "dataSourceConfiguration",
  }
end

Instance Method Details

#to_jsiiObject



4714
4715
4716
4717
4718
4719
4720
4721
# File 'lex/cfn_bot.rb', line 4714

def to_jsii
  result = {}
  result.merge!({
    "bedrockModelConfiguration" => @bedrock_model_configuration,
    "dataSourceConfiguration" => @data_source_configuration,
  })
  result.compact
end