interface SqlKnowledgeBaseConfigurationProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.CfnPropertyMixins.AWS.Bedrock.CfnKnowledgeBasePropsMixin.SqlKnowledgeBaseConfigurationProperty |
Go | github.com/aws/aws-cdk-go/awscdkcfnpropertymixins/v2/awsbedrock#CfnKnowledgeBasePropsMixin_SqlKnowledgeBaseConfigurationProperty |
Java | software.amazon.awscdk.cfnpropertymixins.services.bedrock.CfnKnowledgeBasePropsMixin.SqlKnowledgeBaseConfigurationProperty |
Python | aws_cdk.cfn_property_mixins.aws_bedrock.CfnKnowledgeBasePropsMixin.SqlKnowledgeBaseConfigurationProperty |
TypeScript | @aws-cdk/cfn-property-mixins » aws_bedrock » CfnKnowledgeBasePropsMixin » SqlKnowledgeBaseConfigurationProperty |
Contains configurations for a knowledge base connected to an SQL database.
Specify the SQL database type in the type field and include the corresponding field. For more information, see Build a knowledge base by connecting to a structured data source in the Amazon Bedrock User Guide.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_bedrock as bedrock } from '@aws-cdk/cfn-property-mixins';
const sqlKnowledgeBaseConfigurationProperty: bedrock.CfnKnowledgeBasePropsMixin.SqlKnowledgeBaseConfigurationProperty = {
redshiftConfiguration: {
queryEngineConfiguration: {
provisionedConfiguration: {
authConfiguration: {
databaseUser: 'databaseUser',
type: 'type',
usernamePasswordSecretArn: 'usernamePasswordSecretArn',
},
clusterIdentifier: 'clusterIdentifier',
},
serverlessConfiguration: {
authConfiguration: {
type: 'type',
usernamePasswordSecretArn: 'usernamePasswordSecretArn',
},
workgroupArn: 'workgroupArn',
},
type: 'type',
},
queryGenerationConfiguration: {
executionTimeoutSeconds: 123,
generationContext: {
curatedQueries: [{
naturalLanguage: 'naturalLanguage',
sql: 'sql',
}],
tables: [{
columns: [{
description: 'description',
inclusion: 'inclusion',
name: 'name',
}],
description: 'description',
inclusion: 'inclusion',
name: 'name',
}],
},
},
storageConfigurations: [{
awsDataCatalogConfiguration: {
tableNames: ['tableNames'],
},
redshiftConfiguration: {
databaseName: 'databaseName',
},
type: 'type',
}],
},
type: 'type',
};
Properties
| Name | Type | Description |
|---|---|---|
| redshift | IResolvable | Redshift | Specifies configurations for a knowledge base connected to an Amazon Redshift database. |
| type? | string | The type of SQL database to connect to the knowledge base. |
redshiftConfiguration?
Type:
IResolvable | Redshift
(optional)
Specifies configurations for a knowledge base connected to an Amazon Redshift database.
type?
Type:
string
(optional)
The type of SQL database to connect to the knowledge base.

.NET
Go
Java
Python
TypeScript