Class: AWSCDK::BedrockAgentCore::OnlineEvaluationConfigAttributes
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::BedrockAgentCore::OnlineEvaluationConfigAttributes
- Defined in:
- bedrock_agent_core/online_evaluation_config_attributes.rb
Overview
Attributes for importing an existing OnlineEvaluationConfig.
Instance Attribute Summary collapse
-
#execution_role_arn ⇒ String?
readonly
The ARN of the IAM execution role.
-
#online_evaluation_config_arn ⇒ String
readonly
The ARN of the online evaluation configuration.
-
#online_evaluation_config_id ⇒ String
readonly
The ID of the online evaluation configuration.
-
#online_evaluation_config_name ⇒ String
readonly
The name of the online evaluation configuration.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(online_evaluation_config_arn:, online_evaluation_config_id:, online_evaluation_config_name:, execution_role_arn: nil) ⇒ OnlineEvaluationConfigAttributes
constructor
A new instance of OnlineEvaluationConfigAttributes.
- #to_jsii ⇒ Object
Constructor Details
#initialize(online_evaluation_config_arn:, online_evaluation_config_id:, online_evaluation_config_name:, execution_role_arn: nil) ⇒ OnlineEvaluationConfigAttributes
Returns a new instance of OnlineEvaluationConfigAttributes.
11 12 13 14 15 16 17 18 19 20 |
# File 'bedrock_agent_core/online_evaluation_config_attributes.rb', line 11 def initialize(online_evaluation_config_arn:, online_evaluation_config_id:, online_evaluation_config_name:, execution_role_arn: nil) @online_evaluation_config_arn = online_evaluation_config_arn Jsii::Type.check_type(@online_evaluation_config_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "onlineEvaluationConfigArn") @online_evaluation_config_id = online_evaluation_config_id Jsii::Type.check_type(@online_evaluation_config_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "onlineEvaluationConfigId") @online_evaluation_config_name = online_evaluation_config_name Jsii::Type.check_type(@online_evaluation_config_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "onlineEvaluationConfigName") @execution_role_arn = execution_role_arn Jsii::Type.check_type(@execution_role_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "executionRoleArn") unless @execution_role_arn.nil? end |
Instance Attribute Details
#execution_role_arn ⇒ String? (readonly)
Note:
Default: - No role ARN provided
The ARN of the IAM execution role.
38 39 40 |
# File 'bedrock_agent_core/online_evaluation_config_attributes.rb', line 38 def execution_role_arn @execution_role_arn end |
#online_evaluation_config_arn ⇒ String (readonly)
The ARN of the online evaluation configuration.
25 26 27 |
# File 'bedrock_agent_core/online_evaluation_config_attributes.rb', line 25 def online_evaluation_config_arn @online_evaluation_config_arn end |
#online_evaluation_config_id ⇒ String (readonly)
The ID of the online evaluation configuration.
29 30 31 |
# File 'bedrock_agent_core/online_evaluation_config_attributes.rb', line 29 def online_evaluation_config_id @online_evaluation_config_id end |
#online_evaluation_config_name ⇒ String (readonly)
The name of the online evaluation configuration.
33 34 35 |
# File 'bedrock_agent_core/online_evaluation_config_attributes.rb', line 33 def online_evaluation_config_name @online_evaluation_config_name end |
Class Method Details
.jsii_properties ⇒ Object
40 41 42 43 44 45 46 47 |
# File 'bedrock_agent_core/online_evaluation_config_attributes.rb', line 40 def self.jsii_properties { :online_evaluation_config_arn => "onlineEvaluationConfigArn", :online_evaluation_config_id => "onlineEvaluationConfigId", :online_evaluation_config_name => "onlineEvaluationConfigName", :execution_role_arn => "executionRoleArn", } end |
Instance Method Details
#to_jsii ⇒ Object
49 50 51 52 53 54 55 56 57 58 |
# File 'bedrock_agent_core/online_evaluation_config_attributes.rb', line 49 def to_jsii result = {} result.merge!({ "onlineEvaluationConfigArn" => @online_evaluation_config_arn, "onlineEvaluationConfigId" => @online_evaluation_config_id, "onlineEvaluationConfigName" => @online_evaluation_config_name, "executionRoleArn" => @execution_role_arn, }) result.compact end |