Class: AWSCDK::Lex::CfnBot::RuntimeSettingsProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Lex::CfnBot::RuntimeSettingsProperty
- Defined in:
- lex/cfn_bot.rb
Overview
Contains specifications about the Amazon Lex runtime generative AI capabilities from Amazon Bedrock that you can turn on for your bot.
Instance Attribute Summary collapse
- #nlu_improvement_specification ⇒ AWSCDK::IResolvable, ... readonly
- #slot_resolution_improvement_specification ⇒ AWSCDK::IResolvable, ... readonly
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(nlu_improvement_specification: nil, slot_resolution_improvement_specification: nil) ⇒ RuntimeSettingsProperty
constructor
A new instance of RuntimeSettingsProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(nlu_improvement_specification: nil, slot_resolution_improvement_specification: nil) ⇒ RuntimeSettingsProperty
Returns a new instance of RuntimeSettingsProperty.
4873 4874 4875 4876 4877 4878 |
# File 'lex/cfn_bot.rb', line 4873 def initialize(nlu_improvement_specification: nil, slot_resolution_improvement_specification: nil) @nlu_improvement_specification = nlu_improvement_specification.is_a?(Hash) ? ::AWSCDK::Lex::CfnBot::NluImprovementSpecificationProperty.new(**nlu_improvement_specification.transform_keys(&:to_sym)) : nlu_improvement_specification Jsii::Type.check_type(@nlu_improvement_specification, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19sZXguQ2ZuQm90Lk5sdUltcHJvdmVtZW50U3BlY2lmaWNhdGlvblByb3BlcnR5In1dfX0=")), "nluImprovementSpecification") unless @nlu_improvement_specification.nil? @slot_resolution_improvement_specification = slot_resolution_improvement_specification.is_a?(Hash) ? ::AWSCDK::Lex::CfnBot::SlotResolutionImprovementSpecificationProperty.new(**slot_resolution_improvement_specification.transform_keys(&:to_sym)) : slot_resolution_improvement_specification Jsii::Type.check_type(@slot_resolution_improvement_specification, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19sZXguQ2ZuQm90LlNsb3RSZXNvbHV0aW9uSW1wcm92ZW1lbnRTcGVjaWZpY2F0aW9uUHJvcGVydHkifV19fQ==")), "slotResolutionImprovementSpecification") unless @slot_resolution_improvement_specification.nil? end |
Instance Attribute Details
#nlu_improvement_specification ⇒ AWSCDK::IResolvable, ... (readonly)
4882 4883 4884 |
# File 'lex/cfn_bot.rb', line 4882 def nlu_improvement_specification @nlu_improvement_specification end |
#slot_resolution_improvement_specification ⇒ AWSCDK::IResolvable, ... (readonly)
4885 4886 4887 |
# File 'lex/cfn_bot.rb', line 4885 def slot_resolution_improvement_specification @slot_resolution_improvement_specification end |
Class Method Details
.jsii_properties ⇒ Object
4887 4888 4889 4890 4891 4892 |
# File 'lex/cfn_bot.rb', line 4887 def self.jsii_properties { :nlu_improvement_specification => "nluImprovementSpecification", :slot_resolution_improvement_specification => "slotResolutionImprovementSpecification", } end |
Instance Method Details
#to_jsii ⇒ Object
4894 4895 4896 4897 4898 4899 4900 4901 |
# File 'lex/cfn_bot.rb', line 4894 def to_jsii result = {} result.merge!({ "nluImprovementSpecification" => @nlu_improvement_specification, "slotResolutionImprovementSpecification" => @slot_resolution_improvement_specification, }) result.compact end |