DataSourceToIndexFieldMapping - Amazon Kendra API Reference

DataSourceToIndexFieldMapping

Maps attributes or field names of the documents synced from the data source to Amazon Kendra index field names. You can set up field mappings for each data source when calling CreateDataSource or UpdateDataSource API. To create custom fields, use the UpdateIndex API to first create an index field and then map to the data source field. For more information, see Mapping data source fields.

Contents

DataSourceFieldName

The name of the field in the data source. You must first create the index field using the UpdateIndex API.

Type: String

Length Constraints: Minimum length of 1. Maximum length of 100.

Pattern: ^[a-zA-Z][a-zA-Z0-9_.]*$

Required: Yes

IndexFieldName

The name of the index field to map to the data source field. The index field type must match the data source field type.

Type: String

Length Constraints: Minimum length of 1. Maximum length of 30.

Pattern: ^\P{C}*$

Required: Yes

DateFieldFormat

The format for date fields in the data source. If the field specified in DataSourceFieldName is a date field, you must specify the date format. If the field is not a date field, an exception is thrown.

Type: String

Length Constraints: Minimum length of 4. Maximum length of 40.

Pattern: ^(?!\s).*(?<!\s)$

Required: No

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following: