# DatabaseConfigurationProperty

Provides the configuration information to an [Amazon Kendra supported database](https://docs.aws.amazon.com/kendra/latest/dg/data-source-database.html) .

- Source: Generated code
- Type last changed: v2.93.0 · 23 Aug 2023

## Example

```ts
// 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

- `aclConfiguration`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnDataSource.AclConfigurationProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_kendra.CfnDataSource.AclConfigurationProperty.html) — Information about the database column that provides information for user context filtering.

- `columnConfiguration`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnDataSource.ColumnConfigurationProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_kendra.CfnDataSource.ColumnConfigurationProperty.html) (required) — Information about where the index should get the document information from the database.

- `connectionConfiguration`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnDataSource.ConnectionConfigurationProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_kendra.CfnDataSource.ConnectionConfigurationProperty.html) (required) — Configuration information that's required to connect to a database.

- `databaseEngineType`: string (required) — The type of database engine that runs the database.

- `sqlConfiguration`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnDataSource.SqlConfigurationProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_kendra.CfnDataSource.SqlConfigurationProperty.html) — Provides information about how Amazon Kendra uses quote marks around SQL identifiers when querying a database data source.

- `vpcConfiguration`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnDataSource.DataSourceVpcConfigurationProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_kendra.CfnDataSource.DataSourceVpcConfigurationProperty.html) — Provides information for connecting to an Amazon VPC.
