Class: AWSCDK::Lex::CfnBot::SampleUtteranceGenerationSpecificationProperty

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

Overview

Contains specifications for the sample utterance generation feature.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of SampleUtteranceGenerationSpecificationProperty.

Parameters:



5051
5052
5053
5054
5055
5056
# File 'lex/cfn_bot.rb', line 5051

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

#enabledBoolean, AWSCDK::IResolvable (readonly)

Specifies whether to enable sample utterance generation or not.



5062
5063
5064
# File 'lex/cfn_bot.rb', line 5062

def enabled
  @enabled
end

Class Method Details

.jsii_propertiesObject



5067
5068
5069
5070
5071
5072
# File 'lex/cfn_bot.rb', line 5067

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

Instance Method Details

#to_jsiiObject



5074
5075
5076
5077
5078
5079
5080
5081
# File 'lex/cfn_bot.rb', line 5074

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