Class: AWSCDK::Wisdom::CfnAssistantAssociation::ExternalBedrockKnowledgeBaseConfigProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
wisdom/cfn_assistant_association.rb

Overview

Configuration for an external Bedrock knowledge base.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(access_role_arn:, bedrock_knowledge_base_arn:) ⇒ ExternalBedrockKnowledgeBaseConfigProperty

Returns a new instance of ExternalBedrockKnowledgeBaseConfigProperty.

Parameters:

  • access_role_arn (String)

    The Amazon Resource Name (ARN) of the IAM role used to access the external Bedrock knowledge base.

  • bedrock_knowledge_base_arn (String)

    The Amazon Resource Name (ARN) of the external Bedrock knowledge base.



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_arnString (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_arnString (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_propertiesObject



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_jsiiObject



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