Class: AWSCDK::Lex::CfnBot::DescriptiveBotBuilderSpecificationProperty

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

Overview

Contains specifications for the descriptive bot building feature.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of DescriptiveBotBuilderSpecificationProperty.

Parameters:



2279
2280
2281
2282
2283
2284
# File 'lex/cfn_bot.rb', line 2279

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 interpret the prompt used in descriptive bot building.



2295
2296
2297
# File 'lex/cfn_bot.rb', line 2295

def bedrock_model_specification
  @bedrock_model_specification
end

#enabledBoolean, AWSCDK::IResolvable (readonly)

Specifies whether the descriptive bot building feature is activated or not.



2290
2291
2292
# File 'lex/cfn_bot.rb', line 2290

def enabled
  @enabled
end

Class Method Details

.jsii_propertiesObject



2297
2298
2299
2300
2301
2302
# File 'lex/cfn_bot.rb', line 2297

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

Instance Method Details

#to_jsiiObject



2304
2305
2306
2307
2308
2309
2310
2311
# File 'lex/cfn_bot.rb', line 2304

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