Class CfnDataSource.ColumnConfigurationProperty
Provides information about how Amazon Kendra should use the columns of a database in an index.
Inheritance
Implements
Namespace: Amazon.CDK.AWS.Kendra
Assembly: Amazon.CDK.AWS.Kendra.dll
Syntax (csharp)
public class ColumnConfigurationProperty : Object, CfnDataSource.IColumnConfigurationProperty
Syntax (vb)
Public Class ColumnConfigurationProperty
Inherits Object
Implements CfnDataSource.IColumnConfigurationProperty
Remarks
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Kendra;
var columnConfigurationProperty = new ColumnConfigurationProperty {
ChangeDetectingColumns = new [] { "changeDetectingColumns" },
DocumentDataColumnName = "documentDataColumnName",
DocumentIdColumnName = "documentIdColumnName",
// the properties below are optional
DocumentTitleColumnName = "documentTitleColumnName",
FieldMappings = new [] { new DataSourceToIndexFieldMappingProperty {
DataSourceFieldName = "dataSourceFieldName",
IndexFieldName = "indexFieldName",
// the properties below are optional
DateFieldFormat = "dateFieldFormat"
} }
};
Synopsis
Constructors
ColumnConfigurationProperty() |
Properties
ChangeDetectingColumns | One to five columns that indicate when a document in the database has changed. |
DocumentDataColumnName | The column that contains the contents of the document. |
DocumentIdColumnName | The column that provides the document's identifier. |
DocumentTitleColumnName | The column that contains the title of the document. |
FieldMappings | An array of objects that map database column names to the corresponding fields in an index. |
Constructors
ColumnConfigurationProperty()
public ColumnConfigurationProperty()
Properties
ChangeDetectingColumns
One to five columns that indicate when a document in the database has changed.
public string[] ChangeDetectingColumns { get; set; }
Property Value
System.String[]
Remarks
DocumentDataColumnName
The column that contains the contents of the document.
public string DocumentDataColumnName { get; set; }
Property Value
System.String
Remarks
DocumentIdColumnName
The column that provides the document's identifier.
public string DocumentIdColumnName { get; set; }
Property Value
System.String
Remarks
DocumentTitleColumnName
The column that contains the title of the document.
public string DocumentTitleColumnName { get; set; }
Property Value
System.String
Remarks
FieldMappings
An array of objects that map database column names to the corresponding fields in an index.
public object FieldMappings { get; set; }
Property Value
System.Object
Remarks
You must first create the fields in the index using the UpdateIndex operation.