Class: AWSCDK::BedrockAgentCore::EvaluatorAttributes
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::BedrockAgentCore::EvaluatorAttributes
- Defined in:
- bedrock_agent_core/evaluator_attributes.rb
Overview
Attributes for importing an existing Evaluator.
Instance Attribute Summary collapse
-
#evaluator_arn ⇒ String
readonly
The ARN of the evaluator.
-
#evaluator_id ⇒ String
readonly
The ID of the evaluator.
-
#evaluator_name ⇒ String?
readonly
The name of the evaluator.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(evaluator_arn:, evaluator_id:, evaluator_name: nil) ⇒ EvaluatorAttributes
constructor
A new instance of EvaluatorAttributes.
- #to_jsii ⇒ Object
Constructor Details
#initialize(evaluator_arn:, evaluator_id:, evaluator_name: nil) ⇒ EvaluatorAttributes
Returns a new instance of EvaluatorAttributes.
10 11 12 13 14 15 16 17 |
# File 'bedrock_agent_core/evaluator_attributes.rb', line 10 def initialize(evaluator_arn:, evaluator_id:, evaluator_name: nil) @evaluator_arn = evaluator_arn Jsii::Type.check_type(@evaluator_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "evaluatorArn") @evaluator_id = evaluator_id Jsii::Type.check_type(@evaluator_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "evaluatorId") @evaluator_name = evaluator_name Jsii::Type.check_type(@evaluator_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "evaluatorName") unless @evaluator_name.nil? end |
Instance Attribute Details
#evaluator_arn ⇒ String (readonly)
The ARN of the evaluator.
22 23 24 |
# File 'bedrock_agent_core/evaluator_attributes.rb', line 22 def evaluator_arn @evaluator_arn end |
#evaluator_id ⇒ String (readonly)
The ID of the evaluator.
26 27 28 |
# File 'bedrock_agent_core/evaluator_attributes.rb', line 26 def evaluator_id @evaluator_id end |
#evaluator_name ⇒ String? (readonly)
Note:
Default: - No name available
The name of the evaluator.
31 32 33 |
# File 'bedrock_agent_core/evaluator_attributes.rb', line 31 def evaluator_name @evaluator_name end |
Class Method Details
.jsii_properties ⇒ Object
33 34 35 36 37 38 39 |
# File 'bedrock_agent_core/evaluator_attributes.rb', line 33 def self.jsii_properties { :evaluator_arn => "evaluatorArn", :evaluator_id => "evaluatorId", :evaluator_name => "evaluatorName", } end |
Instance Method Details
#to_jsii ⇒ Object
41 42 43 44 45 46 47 48 49 |
# File 'bedrock_agent_core/evaluator_attributes.rb', line 41 def to_jsii result = {} result.merge!({ "evaluatorArn" => @evaluator_arn, "evaluatorId" => @evaluator_id, "evaluatorName" => @evaluator_name, }) result.compact end |