# ColumnConfigurationProperty

Provides information about how Amazon Kendra should use the columns of a database in an index.

- 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 columnConfigurationProperty: kendra.CfnDataSource.ColumnConfigurationProperty = {
  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',
  }],
};
```

## Properties

- `changeDetectingColumns`: string[] (required) — One to five columns that indicate when a document in the database has changed.

- `documentDataColumnName`: string (required) — The column that contains the contents of the document.

- `documentIdColumnName`: string (required) — The column that provides the document's identifier.

- `documentTitleColumnName`: string — The column that contains the title of the document.

- `fieldMappings`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnDataSource.DataSourceToIndexFieldMappingProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_kendra.CfnDataSource.DataSourceToIndexFieldMappingProperty.html)[] — An array of objects that map database column names to the corresponding fields in an index.

  You must first create the fields in the index using the [UpdateIndex](https://docs.aws.amazon.com/kendra/latest/dg/API_UpdateIndex.html) operation.
