Class: AWSCDK::Lex::CfnBot::SlotResolutionImprovementSpecificationProperty

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

Overview

Contains specifications for the assisted slot resolution feature.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(enabled:, bedrock_model_specification: nil) ⇒ SlotResolutionImprovementSpecificationProperty

Returns a new instance of SlotResolutionImprovementSpecificationProperty.

Parameters:



5554
5555
5556
5557
5558
5559
# File 'lex/cfn_bot.rb', line 5554

def initialize(enabled:, bedrock_model_specification: nil)
  @enabled = enabled
  Jsii::Type.check_type(@enabled, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoiYm9vbGVhbiJ9LHsiZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifV19fQ==")), "enabled")
  @bedrock_model_specification = bedrock_model_specification.is_a?(Hash) ? ::AWSCDK::Lex::CfnBot::BedrockModelSpecificationProperty.new(**bedrock_model_specification.transform_keys(&:to_sym)) : bedrock_model_specification
  Jsii::Type.check_type(@bedrock_model_specification, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19sZXguQ2ZuQm90LkJlZHJvY2tNb2RlbFNwZWNpZmljYXRpb25Qcm9wZXJ0eSJ9XX19")), "bedrockModelSpecification") unless @bedrock_model_specification.nil?
end

Instance Attribute Details

#bedrock_model_specificationAWSCDK::IResolvable, ... (readonly)

An object containing information about the Amazon Bedrock model used to assist slot resolution.



5570
5571
5572
# File 'lex/cfn_bot.rb', line 5570

def bedrock_model_specification
  @bedrock_model_specification
end

#enabledBoolean, AWSCDK::IResolvable (readonly)

Specifies whether assisted slot resolution is turned on or off.



5565
5566
5567
# File 'lex/cfn_bot.rb', line 5565

def enabled
  @enabled
end

Class Method Details

.jsii_propertiesObject



5572
5573
5574
5575
5576
5577
# File 'lex/cfn_bot.rb', line 5572

def self.jsii_properties
  {
    :enabled => "enabled",
    :bedrock_model_specification => "bedrockModelSpecification",
  }
end

Instance Method Details

#to_jsiiObject



5579
5580
5581
5582
5583
5584
5585
5586
# File 'lex/cfn_bot.rb', line 5579

def to_jsii
  result = {}
  result.merge!({
    "enabled" => @enabled,
    "bedrockModelSpecification" => @bedrock_model_specification,
  })
  result.compact
end