@cdklabs/generative-ai-cdk-constructs
@cdklabs/generative-ai-cdk-constructs / amazonaurora / AmazonAuroraVectorStore
BaseAmazonAuroraVectorStore
new AmazonAuroraVectorStore(
scope
,id
,props
):AmazonAuroraVectorStore
Construct
string
BaseAmazonAuroraVectorStore.constructor
readonly
credentialsSecretArn:string
The Secret ARN of your Amazon Aurora DB cluster.
readonly
databaseName:string
The name of the database for the Aurora Vector Store.
BaseAmazonAuroraVectorStore.databaseName
readonly
embeddingsModelVectorDimension:number
The embeddings model dimension used for the Aurora Vector Store. The vector dimensions of the model must match the dimensions used in the KnowledgeBase construct.
BaseAmazonAuroraVectorStore.embeddingsModelVectorDimension
readonly
metadataField:string
The field name for the metadata column in the Aurora Vector Store.
BaseAmazonAuroraVectorStore.metadataField
readonly
node:Node
The tree node.
BaseAmazonAuroraVectorStore.node
readonly
primaryKeyField:string
The primary key field for the Aurora Vector Store table.
BaseAmazonAuroraVectorStore.primaryKeyField
readonly
resourceArn:string
The ARN of your Amazon Aurora DB cluster.
readonly
schemaName:string
The schema name for the Aurora Vector Store.
BaseAmazonAuroraVectorStore.schemaName
readonly
tableName:string
The name of the table for the Aurora Vector Store.
BaseAmazonAuroraVectorStore.tableName
readonly
textField:string
The field name for the text column in the Aurora Vector Store.
BaseAmazonAuroraVectorStore.textField
readonly
vectorField:string
The field name for the vector column in the Aurora Vector Store.
BaseAmazonAuroraVectorStore.vectorField
readonly
vpc:IVpc
The VPC of your Amazon Aurora DB cluster.
protected
addIngressRuleToAuroraSecurityGroup(lambdaSecurityGroup
,auroraSecurityGroup
):void
SecurityGroup
SecurityGroup
void
BaseAmazonAuroraVectorStore.addIngressRuleToAuroraSecurityGroup
protected
createAuroraPgCRPolicy(clusterIdentifier
):ManagedPolicy
string
ManagedPolicy
BaseAmazonAuroraVectorStore.createAuroraPgCRPolicy
protected
createLambdaSecurityGroup(vpc
):SecurityGroup
IVpc
SecurityGroup
BaseAmazonAuroraVectorStore.createLambdaSecurityGroup
protected
generateResourceArn(clusterIdentifier
):string
string
string
BaseAmazonAuroraVectorStore.generateResourceArn
protected
setupCustomResource(databaseClusterResources
,lambdaSecurityGroup
,auroraPgCRPolicy
):CustomResource
SecurityGroup
ManagedPolicy
CustomResource
BaseAmazonAuroraVectorStore.setupCustomResource
protected
setupDatabaseClusterResources(vpc
,secret
,clusterIdentifier
,auroraSecurityGroupId
):DatabaseClusterResources
IVpc
ISecret
string
string
BaseAmazonAuroraVectorStore.setupDatabaseClusterResources
toString():
string
Returns a string representation of this construct.
string
BaseAmazonAuroraVectorStore.toString
static
fromExistingAuroraVectorStore(scope
,id
,props
):ExistingAmazonAuroraVectorStore
Creates an instance of AmazonAuroraVectorStore using existing Aurora Vector Store properties.
You need to provide your existing Aurora Vector Store properties
such as databaseName
, clusterIdentifier
, vpc
where database is deployed,
secret
containing username and password for authentication to database,
and auroraSecurityGroupId
with the value of a security group id that was
used for the database.
Construct
The scope in which to define the construct.
string
The ID of the construct.
ExistingAmazonAuroraVectorStoreProps
The properties of the existing Aurora Vector Store.
ExistingAmazonAuroraVectorStore
An instance of AmazonAuroraVectorStore.
static
isConstruct(x
):x is Construct
Checks if x
is a construct.
Use this method instead of instanceof
to properly detect Construct
instances, even when the construct library is symlinked.
Explanation: in JavaScript, multiple copies of the constructs
library on
disk are seen as independent, completely different libraries. As a
consequence, the class Construct
in each copy of the constructs
library
is seen as a different class, and an instance of one class will not test as
instanceof
the other class. npm install
will not create installations
like this, but users may manually symlink construct libraries together or
use a monorepo tool: in those cases, multiple copies of the constructs
library can be accidentally installed, and instanceof
will behave
unpredictably. It is safest to avoid using instanceof
, and using
this type-testing method instead.
any
Any object
x is Construct
true if x
is an object created from a class which extends Construct
.
BaseAmazonAuroraVectorStore.isConstruct