interface DatabaseConfigurationProperty
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.Kendra.CfnDataSource.DatabaseConfigurationProperty |
![]() | github.com/aws/aws-cdk-go/awscdk/v2/awskendra#CfnDataSource_DatabaseConfigurationProperty |
![]() | software.amazon.awscdk.services.kendra.CfnDataSource.DatabaseConfigurationProperty |
![]() | aws_cdk.aws_kendra.CfnDataSource.DatabaseConfigurationProperty |
![]() | aws-cdk-lib » aws_kendra » CfnDataSource » DatabaseConfigurationProperty |
Provides the configuration information to an Amazon Kendra supported database .
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_kendra as kendra } from 'aws-cdk-lib';
const databaseConfigurationProperty: kendra.CfnDataSource.DatabaseConfigurationProperty = {
columnConfiguration: {
changeDetectingColumns: ['changeDetectingColumns'],
documentDataColumnName: 'documentDataColumnName',
documentIdColumnName: 'documentIdColumnName',
// the properties below are optional
documentTitleColumnName: 'documentTitleColumnName',
fieldMappings: [{
dataSourceFieldName: 'dataSourceFieldName',
indexFieldName: 'indexFieldName',
// the properties below are optional
dateFieldFormat: 'dateFieldFormat',
}],
},
connectionConfiguration: {
databaseHost: 'databaseHost',
databaseName: 'databaseName',
databasePort: 123,
secretArn: 'secretArn',
tableName: 'tableName',
},
databaseEngineType: 'databaseEngineType',
// the properties below are optional
aclConfiguration: {
allowedGroupsColumnName: 'allowedGroupsColumnName',
},
sqlConfiguration: {
queryIdentifiersEnclosingOption: 'queryIdentifiersEnclosingOption',
},
vpcConfiguration: {
securityGroupIds: ['securityGroupIds'],
subnetIds: ['subnetIds'],
},
};
Properties
Name | Type | Description |
---|---|---|
column | IResolvable | Column | Information about where the index should get the document information from the database. |
connection | IResolvable | Connection | Configuration information that's required to connect to a database. |
database | string | The type of database engine that runs the database. |
acl | IResolvable | Acl | Information about the database column that provides information for user context filtering. |
sql | IResolvable | Sql | Provides information about how Amazon Kendra uses quote marks around SQL identifiers when querying a database data source. |
vpc | IResolvable | Data | Provides information for connecting to an Amazon VPC. |
columnConfiguration
Type:
IResolvable
|
Column
Information about where the index should get the document information from the database.
connectionConfiguration
Type:
IResolvable
|
Connection
Configuration information that's required to connect to a database.
databaseEngineType
Type:
string
The type of database engine that runs the database.
aclConfiguration?
Type:
IResolvable
|
Acl
(optional)
Information about the database column that provides information for user context filtering.
sqlConfiguration?
Type:
IResolvable
|
Sql
(optional)
Provides information about how Amazon Kendra uses quote marks around SQL identifiers when querying a database data source.
vpcConfiguration?
Type:
IResolvable
|
Data
(optional)
Provides information for connecting to an Amazon VPC.