interface MongoDbAtlasConfigurationProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.Mixins.Preview.AWS.Bedrock.Mixins.CfnKnowledgeBasePropsMixin.MongoDbAtlasConfigurationProperty |
Go | github.com/aws/aws-cdk-go/awscdkmixinspreview/v2/awsbedrock/mixins#CfnKnowledgeBasePropsMixin_MongoDbAtlasConfigurationProperty |
Java | software.amazon.awscdk.mixins.preview.services.bedrock.mixins.CfnKnowledgeBasePropsMixin.MongoDbAtlasConfigurationProperty |
Python | aws_cdk.mixins_preview.aws_bedrock.mixins.CfnKnowledgeBasePropsMixin.MongoDbAtlasConfigurationProperty |
TypeScript | @aws-cdk/mixins-preview » aws_bedrock » mixins » CfnKnowledgeBasePropsMixin » MongoDbAtlasConfigurationProperty |
Contains details about the storage configuration of the knowledge base in MongoDB Atlas.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { mixins as bedrock_mixins } from '@aws-cdk/mixins-preview/aws-bedrock';
const mongoDbAtlasConfigurationProperty: bedrock_mixins.CfnKnowledgeBasePropsMixin.MongoDbAtlasConfigurationProperty = {
collectionName: 'collectionName',
credentialsSecretArn: 'credentialsSecretArn',
databaseName: 'databaseName',
endpoint: 'endpoint',
endpointServiceName: 'endpointServiceName',
fieldMapping: {
metadataField: 'metadataField',
textField: 'textField',
vectorField: 'vectorField',
},
textIndexName: 'textIndexName',
vectorIndexName: 'vectorIndexName',
};
Properties
| Name | Type | Description |
|---|---|---|
| collection | string | The collection name of the knowledge base in MongoDB Atlas. |
| credentials | string | The Amazon Resource Name (ARN) of the secret that you created in AWS Secrets Manager that contains user credentials for your MongoDB Atlas cluster. |
| database | string | The database name in your MongoDB Atlas cluster for your knowledge base. |
| endpoint? | string | The endpoint URL of your MongoDB Atlas cluster for your knowledge base. |
| endpoint | string | The name of the VPC endpoint service in your account that is connected to your MongoDB Atlas cluster. |
| field | IResolvable | Mongo | Contains the names of the fields to which to map information about the vector store. |
| text | string | The name of the text search index in the MongoDB collection. |
| vector | string | The name of the MongoDB Atlas vector search index. |
collectionName?
Type:
string
(optional)
The collection name of the knowledge base in MongoDB Atlas.
credentialsSecretArn?
Type:
string
(optional)
The Amazon Resource Name (ARN) of the secret that you created in AWS Secrets Manager that contains user credentials for your MongoDB Atlas cluster.
databaseName?
Type:
string
(optional)
The database name in your MongoDB Atlas cluster for your knowledge base.
endpoint?
Type:
string
(optional)
The endpoint URL of your MongoDB Atlas cluster for your knowledge base.
endpointServiceName?
Type:
string
(optional)
The name of the VPC endpoint service in your account that is connected to your MongoDB Atlas cluster.
fieldMapping?
Type:
IResolvable | Mongo
(optional)
Contains the names of the fields to which to map information about the vector store.
textIndexName?
Type:
string
(optional)
The name of the text search index in the MongoDB collection.
This is required for using the hybrid search feature.
vectorIndexName?
Type:
string
(optional)
The name of the MongoDB Atlas vector search index.

.NET
Go
Java
Python
TypeScript