Class CfnDataSourcePropsMixin.ColumnConfigurationProperty
Provides information about how Amazon Kendra should use the columns of a database in an index.
Inherited Members
Namespace: Amazon.CDK.Mixins.Preview.AWS.Kendra.Mixins
Assembly: Amazon.CDK.Mixins.Preview.dll
Syntax (csharp)
public class CfnDataSourcePropsMixin.ColumnConfigurationProperty : CfnDataSourcePropsMixin.IColumnConfigurationProperty
Syntax (vb)
Public Class CfnDataSourcePropsMixin.ColumnConfigurationProperty Implements CfnDataSourcePropsMixin.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.Mixins.Preview.AWS.Kendra.Mixins;
var columnConfigurationProperty = new ColumnConfigurationProperty {
ChangeDetectingColumns = new [] { "changeDetectingColumns" },
DocumentDataColumnName = "documentDataColumnName",
DocumentIdColumnName = "documentIdColumnName",
DocumentTitleColumnName = "documentTitleColumnName",
FieldMappings = new [] { new DataSourceToIndexFieldMappingProperty {
DataSourceFieldName = "dataSourceFieldName",
DateFieldFormat = "dateFieldFormat",
IndexFieldName = "indexFieldName"
} }
};
Synopsis
Constructors
| ColumnConfigurationProperty() | Provides information about how Amazon Kendra should use the columns of a database in an index. |
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()
Provides information about how Amazon Kendra should use the columns of a database in an index.
public ColumnConfigurationProperty()
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.Mixins.Preview.AWS.Kendra.Mixins;
var columnConfigurationProperty = new ColumnConfigurationProperty {
ChangeDetectingColumns = new [] { "changeDetectingColumns" },
DocumentDataColumnName = "documentDataColumnName",
DocumentIdColumnName = "documentIdColumnName",
DocumentTitleColumnName = "documentTitleColumnName",
FieldMappings = new [] { new DataSourceToIndexFieldMappingProperty {
DataSourceFieldName = "dataSourceFieldName",
DateFieldFormat = "dateFieldFormat",
IndexFieldName = "indexFieldName"
} }
};
Properties
ChangeDetectingColumns
One to five columns that indicate when a document in the database has changed.
public string[]? ChangeDetectingColumns { get; set; }
Property Value
string[]
Remarks
DocumentDataColumnName
The column that contains the contents of the document.
public string? DocumentDataColumnName { get; set; }
Property Value
Remarks
DocumentIdColumnName
The column that provides the document's identifier.
public string? DocumentIdColumnName { get; set; }
Property Value
Remarks
DocumentTitleColumnName
The column that contains the title of the document.
public string? DocumentTitleColumnName { get; set; }
Property Value
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
Remarks
You must first create the fields in the index using the UpdateIndex operation.
Type union: either IResolvable or (either IResolvable or CfnDataSourcePropsMixin.IDataSourceToIndexFieldMappingProperty)[]