Class: AWSCDK::BedrockAgentCore::CfnOnlineEvaluationConfig::FilterProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::BedrockAgentCore::CfnOnlineEvaluationConfig::FilterProperty
- 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
-
#key ⇒ String
readonly
The key or field name to filter on within the agent trace data.
-
#operator ⇒ String
readonly
The comparison operator to use for filtering.
-
#value ⇒ AWSCDK::IResolvable, AWSCDK::BedrockAgentCore::CfnOnlineEvaluationConfig::FilterValueProperty
readonly
The value used in filter comparisons.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(key:, operator:, value:) ⇒ FilterProperty
constructor
A new instance of FilterProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(key:, operator:, value:) ⇒ FilterProperty
Returns a new instance of FilterProperty.
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
#key ⇒ String (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 |
#operator ⇒ String (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 |
#value ⇒ AWSCDK::IResolvable, AWSCDK::BedrockAgentCore::CfnOnlineEvaluationConfig::FilterValueProperty (readonly)
The value used in filter comparisons.
873 874 875 |
# File 'bedrock_agent_core/cfn_online_evaluation_config.rb', line 873 def value @value end |
Class Method Details
.jsii_properties ⇒ Object
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_jsii ⇒ Object
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 |