Class: AWSCDK::Bedrock::CfnKnowledgeBase::NeptuneAnalyticsConfigurationProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
bedrock/cfn_knowledge_base.rb

Overview

Contains details about the storage configuration of the knowledge base in Amazon Neptune Analytics.

For more information, see Create a vector index in Amazon Neptune Analytics .

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(field_mapping:, graph_arn:) ⇒ NeptuneAnalyticsConfigurationProperty

Returns a new instance of NeptuneAnalyticsConfigurationProperty.

Parameters:



1242
1243
1244
1245
1246
1247
# File 'bedrock/cfn_knowledge_base.rb', line 1242

def initialize(field_mapping:, graph_arn:)
  @field_mapping = field_mapping.is_a?(Hash) ? ::AWSCDK::Bedrock::CfnKnowledgeBase::NeptuneAnalyticsFieldMappingProperty.new(**field_mapping.transform_keys(&:to_sym)) : field_mapping
  Jsii::Type.check_type(@field_mapping, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19iZWRyb2NrLkNmbktub3dsZWRnZUJhc2UuTmVwdHVuZUFuYWx5dGljc0ZpZWxkTWFwcGluZ1Byb3BlcnR5In1dfX0=")), "fieldMapping")
  @graph_arn = graph_arn
  Jsii::Type.check_type(@graph_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "graphArn")
end

Instance Attribute Details

#graph_arnString (readonly)

The Amazon Resource Name (ARN) of the Neptune Analytics vector store.



1258
1259
1260
# File 'bedrock/cfn_knowledge_base.rb', line 1258

def graph_arn
  @graph_arn
end

Class Method Details

.jsii_propertiesObject



1260
1261
1262
1263
1264
1265
# File 'bedrock/cfn_knowledge_base.rb', line 1260

def self.jsii_properties
  {
    :field_mapping => "fieldMapping",
    :graph_arn => "graphArn",
  }
end

Instance Method Details

#to_jsiiObject



1267
1268
1269
1270
1271
1272
1273
1274
# File 'bedrock/cfn_knowledge_base.rb', line 1267

def to_jsii
  result = {}
  result.merge!({
    "fieldMapping" => @field_mapping,
    "graphArn" => @graph_arn,
  })
  result.compact
end