Class: AWSCDK::Bedrock::CfnKnowledgeBase::OpenSearchManagedClusterConfigurationProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Bedrock::CfnKnowledgeBase::OpenSearchManagedClusterConfigurationProperty
- Defined in:
- bedrock/cfn_knowledge_base.rb
Overview
Contains details about the Managed Cluster configuration of the knowledge base in Amazon OpenSearch Service.
For more information, see Create a vector index in OpenSearch Managed Cluster .
Instance Attribute Summary collapse
-
#domain_arn ⇒ String
readonly
The Amazon Resource Name (ARN) of the OpenSearch domain.
-
#domain_endpoint ⇒ String
readonly
The endpoint URL the OpenSearch domain.
-
#field_mapping ⇒ AWSCDK::IResolvable, AWSCDK::Bedrock::CfnKnowledgeBase::OpenSearchManagedClusterFieldMappingProperty
readonly
Contains the names of the fields to which to map information about the vector store.
-
#vector_index_name ⇒ String
readonly
The name of the vector store.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(domain_arn:, domain_endpoint:, field_mapping:, vector_index_name:) ⇒ OpenSearchManagedClusterConfigurationProperty
constructor
A new instance of OpenSearchManagedClusterConfigurationProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(domain_arn:, domain_endpoint:, field_mapping:, vector_index_name:) ⇒ OpenSearchManagedClusterConfigurationProperty
Returns a new instance of OpenSearchManagedClusterConfigurationProperty.
1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 |
# File 'bedrock/cfn_knowledge_base.rb', line 1334 def initialize(domain_arn:, domain_endpoint:, field_mapping:, vector_index_name:) @domain_arn = domain_arn Jsii::Type.check_type(@domain_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "domainArn") @domain_endpoint = domain_endpoint Jsii::Type.check_type(@domain_endpoint, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "domainEndpoint") @field_mapping = field_mapping.is_a?(Hash) ? ::AWSCDK::Bedrock::CfnKnowledgeBase::OpenSearchManagedClusterFieldMappingProperty.new(**field_mapping.transform_keys(&:to_sym)) : field_mapping Jsii::Type.check_type(@field_mapping, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19iZWRyb2NrLkNmbktub3dsZWRnZUJhc2UuT3BlblNlYXJjaE1hbmFnZWRDbHVzdGVyRmllbGRNYXBwaW5nUHJvcGVydHkifV19fQ==")), "fieldMapping") @vector_index_name = vector_index_name Jsii::Type.check_type(@vector_index_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "vectorIndexName") end |
Instance Attribute Details
#domain_arn ⇒ String (readonly)
The Amazon Resource Name (ARN) of the OpenSearch domain.
1349 1350 1351 |
# File 'bedrock/cfn_knowledge_base.rb', line 1349 def domain_arn @domain_arn end |
#domain_endpoint ⇒ String (readonly)
The endpoint URL the OpenSearch domain.
1354 1355 1356 |
# File 'bedrock/cfn_knowledge_base.rb', line 1354 def domain_endpoint @domain_endpoint end |
#field_mapping ⇒ AWSCDK::IResolvable, AWSCDK::Bedrock::CfnKnowledgeBase::OpenSearchManagedClusterFieldMappingProperty (readonly)
Contains the names of the fields to which to map information about the vector store.
1359 1360 1361 |
# File 'bedrock/cfn_knowledge_base.rb', line 1359 def field_mapping @field_mapping end |
#vector_index_name ⇒ String (readonly)
The name of the vector store.
1364 1365 1366 |
# File 'bedrock/cfn_knowledge_base.rb', line 1364 def vector_index_name @vector_index_name end |
Class Method Details
.jsii_properties ⇒ Object
1366 1367 1368 1369 1370 1371 1372 1373 |
# File 'bedrock/cfn_knowledge_base.rb', line 1366 def self.jsii_properties { :domain_arn => "domainArn", :domain_endpoint => "domainEndpoint", :field_mapping => "fieldMapping", :vector_index_name => "vectorIndexName", } end |
Instance Method Details
#to_jsii ⇒ Object
1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 |
# File 'bedrock/cfn_knowledge_base.rb', line 1375 def to_jsii result = {} result.merge!({ "domainArn" => @domain_arn, "domainEndpoint" => @domain_endpoint, "fieldMapping" => @field_mapping, "vectorIndexName" => @vector_index_name, }) result.compact end |