Class: AWSCDK::BedrockAgentCore::CfnOnlineEvaluationConfig::DataSourceConfigProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
bedrock_agent_core/cfn_online_evaluation_config.rb

Overview

The configuration that specifies where to read agent traces for online evaluation.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(cloud_watch_logs:) ⇒ DataSourceConfigProperty

Returns a new instance of DataSourceConfigProperty.

Parameters:



782
783
784
785
# File 'bedrock_agent_core/cfn_online_evaluation_config.rb', line 782

def initialize(cloud_watch_logs:)
  @cloud_watch_logs = cloud_watch_logs.is_a?(Hash) ? ::AWSCDK::BedrockAgentCore::CfnOnlineEvaluationConfig::CloudWatchLogsInputConfigProperty.new(**cloud_watch_logs.transform_keys(&:to_sym)) : cloud_watch_logs
  Jsii::Type.check_type(@cloud_watch_logs, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19iZWRyb2NrYWdlbnRjb3JlLkNmbk9ubGluZUV2YWx1YXRpb25Db25maWcuQ2xvdWRXYXRjaExvZ3NJbnB1dENvbmZpZ1Byb3BlcnR5In1dfX0=")), "cloudWatchLogs")
end

Class Method Details

.jsii_propertiesObject



793
794
795
796
797
# File 'bedrock_agent_core/cfn_online_evaluation_config.rb', line 793

def self.jsii_properties
  {
    :cloud_watch_logs => "cloudWatchLogs",
  }
end

Instance Method Details

#to_jsiiObject



799
800
801
802
803
804
805
# File 'bedrock_agent_core/cfn_online_evaluation_config.rb', line 799

def to_jsii
  result = {}
  result.merge!({
    "cloudWatchLogs" => @cloud_watch_logs,
  })
  result.compact
end