@cdklabs/generative-ai-cdk-constructs
@cdklabs/generative-ai-cdk-constructs / TextToSqlProps
readonly
optional
configAssetsBucketProps:BucketProps
Optional. User provided props to override the default props for the S3 Bucket.
- Default props are used
readonly
optional
customQueryConfigurerLambdaProps:DockerLambdaCustomProps
Optional. Allows to provide custom lambda code for all pre steps required before generating the query. If not provided, default code will be used.
readonly
optional
customQueryExecutorLambdaProps:DockerLambdaCustomProps
Optional. Allows to provide custom lambda code for executing the query. If not provided, default code will be used.
readonly
optional
customQueryGeneratorLambdaProps:DockerLambdaCustomProps
Optional. Allows to provide custom lambda code for generating the query. If not provided, default code will be used.
readonly
databaseSecretARN:string
Database secret. DB credentials to connect to Database.
readonly
dbName:DbName
Database name. This is the target database against which the query will be generated.
readonly
optional
dbPort:number
Optional. db port number.
-1534
readonly
optional
eventBusProps:EventBusProps
Optional user provided event bus props
- Default props are used.
readonly
optional
existingconfigAssetsBucketObj:IBucket
Optional. Existing s3 Bucket to store the config files.
- None
readonly
optional
existingDBSecurityGroup:SecurityGroup
Optional. Security group for the db instance which this construct will use. If no exisiting security group is provided it will create one from the vpc.
- none
readonly
optional
existingEventBusInterface:IEventBus
Optional. Existing instance of event bus, providing both this and eventBusProps
will cause an error.
- None.
readonly
optional
existingLambdaSecurityGroup:SecurityGroup
Optional. Security group for the lambda function which this construct will use. If no exisiting security group is provided it will create one from the vpc.
- none
readonly
optional
existingSubnetGroup:SubnetGroup
Optional. An existing subnet group can be used to deploy the construct.
- none
readonly
optional
existingVpc:IVpc
Optional. An existing VPC can be used to deploy the construct. Providing both this and vpcProps is an error.
- none
readonly
metadataSource:string
The source of metatdata. This metadata is required to reduce the natual language ambiguity in order to generate the correct sql query. A knowledge layer is used to map the natural language to the database schema. Two metatdata source are supported: 1: config_file - A local json file containing the knowledge layer key value pair. 2: Knowledge base - Semantic search is used to fetch the knowledge layer from AWS knowledge base
- config_file
readonly
optional
observability:boolean
Enable observability. Warning: associated cost with the services used. Best practice to enable by default.
- true
readonly
optional
stage:string
Value will be appended to resources name.
- _dev
readonly
optional
vpcProps:VpcProps
Optional. The construct creates a custom VPC based on vpcProps. Providing both this and existingVpc is an error.
- none