Class: AWSCDK::BedrockAgentCore::CfnOnlineEvaluationConfig::FilterProperty

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

Overview

The filter that applies conditions to agent traces during online evaluation.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(key:, operator:, value:) ⇒ FilterProperty

Returns a new instance of FilterProperty.

Parameters:



850
851
852
853
854
855
856
857
# File 'bedrock_agent_core/cfn_online_evaluation_config.rb', line 850

def initialize(key:, operator:, value:)
  @key = key
  Jsii::Type.check_type(@key, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "key")
  @operator = operator
  Jsii::Type.check_type(@operator, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "operator")
  @value = value.is_a?(Hash) ? ::AWSCDK::BedrockAgentCore::CfnOnlineEvaluationConfig::FilterValueProperty.new(**value.transform_keys(&:to_sym)) : value
  Jsii::Type.check_type(@value, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19iZWRyb2NrYWdlbnRjb3JlLkNmbk9ubGluZUV2YWx1YXRpb25Db25maWcuRmlsdGVyVmFsdWVQcm9wZXJ0eSJ9XX19")), "value")
end

Instance Attribute Details

#keyString (readonly)

The key or field name to filter on within the agent trace data.



863
864
865
# File 'bedrock_agent_core/cfn_online_evaluation_config.rb', line 863

def key
  @key
end

#operatorString (readonly)

The comparison operator to use for filtering.



868
869
870
# File 'bedrock_agent_core/cfn_online_evaluation_config.rb', line 868

def operator
  @operator
end

Class Method Details

.jsii_propertiesObject



875
876
877
878
879
880
881
# File 'bedrock_agent_core/cfn_online_evaluation_config.rb', line 875

def self.jsii_properties
  {
    :key => "key",
    :operator => "operator",
    :value => "value",
  }
end

Instance Method Details

#to_jsiiObject



883
884
885
886
887
888
889
890
891
# File 'bedrock_agent_core/cfn_online_evaluation_config.rb', line 883

def to_jsii
  result = {}
  result.merge!({
    "key" => @key,
    "operator" => @operator,
    "value" => @value,
  })
  result.compact
end