Documentation
¶
Index ¶
- func AmazonAuroraVectorStore_IsConstruct(x interface{}) *bool
- func ExistingAmazonAuroraVectorStore_IsConstruct(x interface{}) *bool
- func NewAmazonAuroraVectorStore_Override(a AmazonAuroraVectorStore, scope constructs.Construct, id *string, ...)
- func NewExistingAmazonAuroraVectorStore_Override(e ExistingAmazonAuroraVectorStore, scope constructs.Construct, id *string, ...)
- type AmazonAuroraVectorStore
- type AmazonAuroraVectorStoreProps
- type BaseAuroraVectorStoreProps
- type DatabaseClusterResources
- type ExistingAmazonAuroraVectorStore
- type ExistingAmazonAuroraVectorStoreProps
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AmazonAuroraVectorStore_IsConstruct ¶
func AmazonAuroraVectorStore_IsConstruct(x interface{}) *bool
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.
Returns: true if `x` is an object created from a class which extends `Construct`. Experimental.
func ExistingAmazonAuroraVectorStore_IsConstruct ¶
func ExistingAmazonAuroraVectorStore_IsConstruct(x interface{}) *bool
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.
Returns: true if `x` is an object created from a class which extends `Construct`. Experimental.
func NewAmazonAuroraVectorStore_Override ¶
func NewAmazonAuroraVectorStore_Override(a AmazonAuroraVectorStore, scope constructs.Construct, id *string, props *AmazonAuroraVectorStoreProps)
Experimental.
func NewExistingAmazonAuroraVectorStore_Override ¶
func NewExistingAmazonAuroraVectorStore_Override(e ExistingAmazonAuroraVectorStore, scope constructs.Construct, id *string, props *ExistingAmazonAuroraVectorStoreProps)
Experimental.
Types ¶
type AmazonAuroraVectorStore ¶
type AmazonAuroraVectorStore interface {
constructs.Construct
// The Secret ARN of your Amazon Aurora DB cluster.
// Experimental.
CredentialsSecretArn() *string
// The name of the database for the Aurora Vector Store.
// Experimental.
DatabaseName() *string
// 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.
// Experimental.
EmbeddingsModelVectorDimension() *float64
// The field name for the metadata column in the Aurora Vector Store.
// Experimental.
MetadataField() *string
// The tree node.
// Experimental.
Node() constructs.Node
// The primary key field for the Aurora Vector Store table.
// Experimental.
PrimaryKeyField() *string
// The ARN of your Amazon Aurora DB cluster.
// Experimental.
ResourceArn() *string
// The schema name for the Aurora Vector Store.
// Experimental.
SchemaName() *string
// The name of the table for the Aurora Vector Store.
// Experimental.
TableName() *string
// The field name for the text column in the Aurora Vector Store.
// Experimental.
TextField() *string
// The field name for the vector column in the Aurora Vector Store.
// Experimental.
VectorField() *string
// The VPC of your Amazon Aurora DB cluster.
// Experimental.
Vpc() awsec2.IVpc
// Experimental.
AddIngressRuleToAuroraSecurityGroup(lambdaSecurityGroup awsec2.ISecurityGroup, auroraSecurityGroup awsec2.ISecurityGroup)
// Experimental.
CreateAuroraPgCRPolicy(clusterIdentifier *string) awsiam.ManagedPolicy
// Experimental.
CreateLambdaSecurityGroup(vpc awsec2.IVpc) awsec2.SecurityGroup
// Experimental.
GenerateResourceArn(clusterIdentifier *string) *string
// Experimental.
SetupCustomResource(databaseClusterResources *DatabaseClusterResources, lambdaSecurityGroup awsec2.SecurityGroup, auroraPgCRPolicy awsiam.ManagedPolicy) awscdk.CustomResource
// Experimental.
SetupDatabaseClusterResources(vpc awsec2.IVpc, secret awssecretsmanager.ISecret, clusterIdentifier *string, auroraSecurityGroup awsec2.ISecurityGroup) *DatabaseClusterResources
// Returns a string representation of this construct.
// Experimental.
ToString() *string
}
Experimental.
func NewAmazonAuroraVectorStore ¶
func NewAmazonAuroraVectorStore(scope constructs.Construct, id *string, props *AmazonAuroraVectorStoreProps) AmazonAuroraVectorStore
Experimental.
type AmazonAuroraVectorStoreProps ¶
type AmazonAuroraVectorStoreProps struct {
// 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.
// Experimental.
EmbeddingsModelVectorDimension *float64 `field:"required" json:"embeddingsModelVectorDimension" yaml:"embeddingsModelVectorDimension"`
// The field name for the metadata column in the Aurora Vector Store.
// Experimental.
MetadataField *string `field:"optional" json:"metadataField" yaml:"metadataField"`
// The primary key field for the Aurora Vector Store table.
// Experimental.
PrimaryKeyField *string `field:"optional" json:"primaryKeyField" yaml:"primaryKeyField"`
// The schema name for the Aurora Vector Store.
// Experimental.
SchemaName *string `field:"optional" json:"schemaName" yaml:"schemaName"`
// The name of the table for the Aurora Vector Store.
// Experimental.
TableName *string `field:"optional" json:"tableName" yaml:"tableName"`
// The field name for the text column in the Aurora Vector Store.
// Experimental.
TextField *string `field:"optional" json:"textField" yaml:"textField"`
// The field name for the vector column in the Aurora Vector Store.
// Experimental.
VectorField *string `field:"optional" json:"vectorField" yaml:"vectorField"`
// Cluster identifier.
// Experimental.
ClusterId *string `field:"optional" json:"clusterId" yaml:"clusterId"`
// The name of the database for the Aurora Vector Store.
// Experimental.
DatabaseName *string `field:"optional" json:"databaseName" yaml:"databaseName"`
// The version of PostgreSQL to use for the Aurora Vector Store.
//
// By default, the latest supported version will be used.
// Experimental.
PostgreSQLVersion awsrds.AuroraPostgresEngineVersion `field:"optional" json:"postgreSQLVersion" yaml:"postgreSQLVersion"`
// User's VPC in which they want to deploy Aurora Database.
// Experimental.
Vpc awsec2.IVpc `field:"optional" json:"vpc" yaml:"vpc"`
}
Properties for configuring an Amazon Aurora Vector Store. Experimental.
type BaseAuroraVectorStoreProps ¶
type BaseAuroraVectorStoreProps struct {
// 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.
// Experimental.
EmbeddingsModelVectorDimension *float64 `field:"required" json:"embeddingsModelVectorDimension" yaml:"embeddingsModelVectorDimension"`
// The field name for the metadata column in the Aurora Vector Store.
// Experimental.
MetadataField *string `field:"optional" json:"metadataField" yaml:"metadataField"`
// The primary key field for the Aurora Vector Store table.
// Experimental.
PrimaryKeyField *string `field:"optional" json:"primaryKeyField" yaml:"primaryKeyField"`
// The schema name for the Aurora Vector Store.
// Experimental.
SchemaName *string `field:"optional" json:"schemaName" yaml:"schemaName"`
// The name of the table for the Aurora Vector Store.
// Experimental.
TableName *string `field:"optional" json:"tableName" yaml:"tableName"`
// The field name for the text column in the Aurora Vector Store.
// Experimental.
TextField *string `field:"optional" json:"textField" yaml:"textField"`
// The field name for the vector column in the Aurora Vector Store.
// Experimental.
VectorField *string `field:"optional" json:"vectorField" yaml:"vectorField"`
}
Base properties for an Aurora Vector Store. Experimental.
type DatabaseClusterResources ¶
type DatabaseClusterResources struct {
// The security group associated with the Aurora cluster.
// Experimental.
AuroraSecurityGroup awsec2.ISecurityGroup `field:"required" json:"auroraSecurityGroup" yaml:"auroraSecurityGroup"`
// The unique cluster identifier of the Aurora RDS cluster.
// Experimental.
ClusterIdentifier *string `field:"required" json:"clusterIdentifier" yaml:"clusterIdentifier"`
// The ARN of your existing Amazon Aurora DB cluster.
// Experimental.
ResourceArn *string `field:"required" json:"resourceArn" yaml:"resourceArn"`
// The secret containing the database credentials.
//
// The secret must contain `username` and `password` values.
// Experimental.
Secret awssecretsmanager.ISecret `field:"required" json:"secret" yaml:"secret"`
// The VPC in which the database cluster is located.
// Experimental.
Vpc awsec2.IVpc `field:"required" json:"vpc" yaml:"vpc"`
// The Amazon Aurora RDS cluster.
// Experimental.
AuroraCluster awsrds.DatabaseCluster `field:"optional" json:"auroraCluster" yaml:"auroraCluster"`
}
Interface representing the resources required for a database cluster. Experimental.
type ExistingAmazonAuroraVectorStore ¶
type ExistingAmazonAuroraVectorStore interface {
constructs.Construct
// The Secret ARN of your Amazon Aurora DB cluster.
// Experimental.
CredentialsSecretArn() *string
// The name of the database for the Aurora Vector Store.
// Experimental.
DatabaseName() *string
// 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.
// Experimental.
EmbeddingsModelVectorDimension() *float64
// The field name for the metadata column in the Aurora Vector Store.
// Experimental.
MetadataField() *string
// The tree node.
// Experimental.
Node() constructs.Node
// The primary key field for the Aurora Vector Store table.
// Experimental.
PrimaryKeyField() *string
// The ARN of your Amazon Aurora DB cluster.
// Experimental.
ResourceArn() *string
// The schema name for the Aurora Vector Store.
// Experimental.
SchemaName() *string
// The name of the table for the Aurora Vector Store.
// Experimental.
TableName() *string
// The field name for the text column in the Aurora Vector Store.
// Experimental.
TextField() *string
// The field name for the vector column in the Aurora Vector Store.
// Experimental.
VectorField() *string
// The VPC of your Amazon Aurora DB cluster.
// Experimental.
Vpc() awsec2.IVpc
// Experimental.
AddIngressRuleToAuroraSecurityGroup(lambdaSecurityGroup awsec2.ISecurityGroup, auroraSecurityGroup awsec2.ISecurityGroup)
// Experimental.
CreateAuroraPgCRPolicy(clusterIdentifier *string) awsiam.ManagedPolicy
// Experimental.
CreateLambdaSecurityGroup(vpc awsec2.IVpc) awsec2.SecurityGroup
// Experimental.
GenerateResourceArn(clusterIdentifier *string) *string
// Experimental.
SetupCustomResource(databaseClusterResources *DatabaseClusterResources, lambdaSecurityGroup awsec2.SecurityGroup, auroraPgCRPolicy awsiam.ManagedPolicy) awscdk.CustomResource
// Experimental.
SetupDatabaseClusterResources(vpc awsec2.IVpc, secret awssecretsmanager.ISecret, clusterIdentifier *string, auroraSecurityGroup awsec2.ISecurityGroup) *DatabaseClusterResources
// Returns a string representation of this construct.
// Experimental.
ToString() *string
}
Experimental.
func AmazonAuroraVectorStore_FromExistingAuroraVectorStore ¶
func AmazonAuroraVectorStore_FromExistingAuroraVectorStore(scope constructs.Construct, id *string, props *ExistingAmazonAuroraVectorStoreProps) 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 `auroraSecurityGroup` with the ecurity group that was used for the database.
Returns: An instance of AmazonAuroraVectorStore. Experimental.
func NewExistingAmazonAuroraVectorStore ¶
func NewExistingAmazonAuroraVectorStore(scope constructs.Construct, id *string, props *ExistingAmazonAuroraVectorStoreProps) ExistingAmazonAuroraVectorStore
Experimental.
type ExistingAmazonAuroraVectorStoreProps ¶
type ExistingAmazonAuroraVectorStoreProps struct {
// 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.
// Experimental.
EmbeddingsModelVectorDimension *float64 `field:"required" json:"embeddingsModelVectorDimension" yaml:"embeddingsModelVectorDimension"`
// The field name for the metadata column in the Aurora Vector Store.
// Experimental.
MetadataField *string `field:"optional" json:"metadataField" yaml:"metadataField"`
// The primary key field for the Aurora Vector Store table.
// Experimental.
PrimaryKeyField *string `field:"optional" json:"primaryKeyField" yaml:"primaryKeyField"`
// The schema name for the Aurora Vector Store.
// Experimental.
SchemaName *string `field:"optional" json:"schemaName" yaml:"schemaName"`
// The name of the table for the Aurora Vector Store.
// Experimental.
TableName *string `field:"optional" json:"tableName" yaml:"tableName"`
// The field name for the text column in the Aurora Vector Store.
// Experimental.
TextField *string `field:"optional" json:"textField" yaml:"textField"`
// The field name for the vector column in the Aurora Vector Store.
// Experimental.
VectorField *string `field:"optional" json:"vectorField" yaml:"vectorField"`
// The Security group associated with the RDS Aurora instance.
//
// This security group allows access to the Aurora Vector Store from Lambda's
// custom resource running pgVector SQL commands.
// Experimental.
AuroraSecurityGroup awsec2.ISecurityGroup `field:"required" json:"auroraSecurityGroup" yaml:"auroraSecurityGroup"`
// The unique cluster identifier of your Aurora RDS cluster.
// Experimental.
ClusterIdentifier *string `field:"required" json:"clusterIdentifier" yaml:"clusterIdentifier"`
// The name of the database for the Aurora Vector Store.
// Experimental.
DatabaseName *string `field:"required" json:"databaseName" yaml:"databaseName"`
// The secret containing the database credentials.
//
// The secret must contain `host`, `port`, `username`,
// `password` and `dbname` values.
// Experimental.
Secret awssecretsmanager.ISecret `field:"required" json:"secret" yaml:"secret"`
// The VPC in which the existing Aurora Vector Store is located.
// Experimental.
Vpc awsec2.IVpc `field:"required" json:"vpc" yaml:"vpc"`
}
Properties for an existing Aurora Vector Store.
You database must have TCP/IP port that the database will use for application connections set up for `5432`. Experimental.
TypeScript
Python
Java
.Net
Go