interface SqlKnowledgeBaseConfigurationProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.Mixins.Preview.AWS.Bedrock.Mixins.CfnKnowledgeBasePropsMixin.SqlKnowledgeBaseConfigurationProperty |
Go | github.com/aws/aws-cdk-go/awscdkmixinspreview/v2/awsbedrock/mixins#CfnKnowledgeBasePropsMixin_SqlKnowledgeBaseConfigurationProperty |
Java | software.amazon.awscdk.mixins.preview.services.bedrock.mixins.CfnKnowledgeBasePropsMixin.SqlKnowledgeBaseConfigurationProperty |
Python | aws_cdk.mixins_preview.aws_bedrock.mixins.CfnKnowledgeBasePropsMixin.SqlKnowledgeBaseConfigurationProperty |
TypeScript | @aws-cdk/mixins-preview » aws_bedrock » mixins » 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 { mixins as bedrock_mixins } from '@aws-cdk/mixins-preview/aws-bedrock';
const sqlKnowledgeBaseConfigurationProperty: bedrock_mixins.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