Class: AWSCDK::Wisdom::CfnAssistantAssociation::ExternalBedrockKnowledgeBaseConfigProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Wisdom::CfnAssistantAssociation::ExternalBedrockKnowledgeBaseConfigProperty
- Defined in:
- wisdom/cfn_assistant_association.rb
Overview
Configuration for an external Bedrock knowledge base.
Instance Attribute Summary collapse
-
#access_role_arn ⇒ String
readonly
The Amazon Resource Name (ARN) of the IAM role used to access the external Bedrock knowledge base.
-
#bedrock_knowledge_base_arn ⇒ String
readonly
The Amazon Resource Name (ARN) of the external Bedrock knowledge base.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(access_role_arn:, bedrock_knowledge_base_arn:) ⇒ ExternalBedrockKnowledgeBaseConfigProperty
constructor
A new instance of ExternalBedrockKnowledgeBaseConfigProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(access_role_arn:, bedrock_knowledge_base_arn:) ⇒ ExternalBedrockKnowledgeBaseConfigProperty
Returns a new instance of ExternalBedrockKnowledgeBaseConfigProperty.
617 618 619 620 621 622 |
# File 'wisdom/cfn_assistant_association.rb', line 617 def initialize(access_role_arn:, bedrock_knowledge_base_arn:) @access_role_arn = access_role_arn Jsii::Type.check_type(@access_role_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "accessRoleArn") @bedrock_knowledge_base_arn = bedrock_knowledge_base_arn Jsii::Type.check_type(@bedrock_knowledge_base_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "bedrockKnowledgeBaseArn") end |
Instance Attribute Details
#access_role_arn ⇒ String (readonly)
The Amazon Resource Name (ARN) of the IAM role used to access the external Bedrock knowledge base.
628 629 630 |
# File 'wisdom/cfn_assistant_association.rb', line 628 def access_role_arn @access_role_arn end |
#bedrock_knowledge_base_arn ⇒ String (readonly)
The Amazon Resource Name (ARN) of the external Bedrock knowledge base.
633 634 635 |
# File 'wisdom/cfn_assistant_association.rb', line 633 def bedrock_knowledge_base_arn @bedrock_knowledge_base_arn end |
Class Method Details
.jsii_properties ⇒ Object
635 636 637 638 639 640 |
# File 'wisdom/cfn_assistant_association.rb', line 635 def self.jsii_properties { :access_role_arn => "accessRoleArn", :bedrock_knowledge_base_arn => "bedrockKnowledgeBaseArn", } end |
Instance Method Details
#to_jsii ⇒ Object
642 643 644 645 646 647 648 649 |
# File 'wisdom/cfn_assistant_association.rb', line 642 def to_jsii result = {} result.merge!({ "accessRoleArn" => @access_role_arn, "bedrockKnowledgeBaseArn" => @bedrock_knowledge_base_arn, }) result.compact end |