Class: AWSCDK::Bedrock::CfnKnowledgeBase::OpenSearchManagedClusterConfigurationProperty

Inherits:
Jsii::Struct
  • Object
show all
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

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(domain_arn:, domain_endpoint:, field_mapping:, vector_index_name:) ⇒ OpenSearchManagedClusterConfigurationProperty

Returns a new instance of OpenSearchManagedClusterConfigurationProperty.

Parameters:



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_arnString (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_endpointString (readonly)

The endpoint URL the OpenSearch domain.



1354
1355
1356
# File 'bedrock/cfn_knowledge_base.rb', line 1354

def domain_endpoint
  @domain_endpoint
end

#vector_index_nameString (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_propertiesObject



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_jsiiObject



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