Class: AWSCDK::Wisdom::CfnAssistantAssociation::AssociationDataProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Wisdom::CfnAssistantAssociation::AssociationDataProperty
- Defined in:
- wisdom/cfn_assistant_association.rb
Overview
A union type that currently has a single argument, which is the knowledge base ID.
Instance Attribute Summary collapse
- #external_bedrock_knowledge_base_config ⇒ AWSCDK::IResolvable, ... readonly
-
#knowledge_base_id ⇒ String?
readonly
The identifier of the knowledge base.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(external_bedrock_knowledge_base_config: nil, knowledge_base_id: nil) ⇒ AssociationDataProperty
constructor
A new instance of AssociationDataProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(external_bedrock_knowledge_base_config: nil, knowledge_base_id: nil) ⇒ AssociationDataProperty
Returns a new instance of AssociationDataProperty.
576 577 578 579 580 581 |
# File 'wisdom/cfn_assistant_association.rb', line 576 def initialize(external_bedrock_knowledge_base_config: nil, knowledge_base_id: nil) @external_bedrock_knowledge_base_config = external_bedrock_knowledge_base_config.is_a?(Hash) ? ::AWSCDK::Wisdom::CfnAssistantAssociation::ExternalBedrockKnowledgeBaseConfigProperty.new(**external_bedrock_knowledge_base_config.transform_keys(&:to_sym)) : external_bedrock_knowledge_base_config Jsii::Type.check_type(@external_bedrock_knowledge_base_config, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c193aXNkb20uQ2ZuQXNzaXN0YW50QXNzb2NpYXRpb24uRXh0ZXJuYWxCZWRyb2NrS25vd2xlZGdlQmFzZUNvbmZpZ1Byb3BlcnR5In1dfX0=")), "externalBedrockKnowledgeBaseConfig") unless @external_bedrock_knowledge_base_config.nil? @knowledge_base_id = knowledge_base_id Jsii::Type.check_type(@knowledge_base_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "knowledgeBaseId") unless @knowledge_base_id.nil? end |
Instance Attribute Details
#external_bedrock_knowledge_base_config ⇒ AWSCDK::IResolvable, ... (readonly)
585 586 587 |
# File 'wisdom/cfn_assistant_association.rb', line 585 def external_bedrock_knowledge_base_config @external_bedrock_knowledge_base_config end |
#knowledge_base_id ⇒ String? (readonly)
The identifier of the knowledge base.
590 591 592 |
# File 'wisdom/cfn_assistant_association.rb', line 590 def knowledge_base_id @knowledge_base_id end |
Class Method Details
.jsii_properties ⇒ Object
592 593 594 595 596 597 |
# File 'wisdom/cfn_assistant_association.rb', line 592 def self.jsii_properties { :external_bedrock_knowledge_base_config => "externalBedrockKnowledgeBaseConfig", :knowledge_base_id => "knowledgeBaseId", } end |
Instance Method Details
#to_jsii ⇒ Object
599 600 601 602 603 604 605 606 |
# File 'wisdom/cfn_assistant_association.rb', line 599 def to_jsii result = {} result.merge!({ "externalBedrockKnowledgeBaseConfig" => @external_bedrock_knowledge_base_config, "knowledgeBaseId" => @knowledge_base_id, }) result.compact end |