import { Value } from '../../../cloudformation/Value';
/**
  Maps a column or attribute in the data source to an index field. You must first create the fields in the index using the <a href="https://docs.aws.amazon.com/kendra/latest/dg/API_UpdateIndex.html">UpdateIndex</a> operation.
  For full documentation go to <a href="http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kendra-datasource-datasourcetoindexfieldmapping.html">the AWS Docs</a>
*/
export interface DataSourceToIndexFieldMappingProps {
    /** <code>DateFieldFormat</code>  <a name="cfn-kendra-datasource-datasourcetoindexfieldmapping-datefieldformat"></a>
  The format for date fields in the data source. If the field specified in <code>DataSourceFieldName</code> is a date field, you must specify the date format. If the field is not a date field, an exception is thrown.<br />
  
  Required: No<br />
  
  Minimum: <code>4</code><br />
  
  Maximum: <code>40</code><br />
  
  Pattern: <code>^(?!\s).*(?&lt;!\s)$</code><br />
  
  Update requires: <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt">No interruption</a> */
    dateFieldFormat?: Value<string>;
    /** <code>IndexFieldName</code>  <a name="cfn-kendra-datasource-datasourcetoindexfieldmapping-indexfieldname"></a>
  The name of the index field to map to the data source field. The index field type must match the data source field type.<br />
  
  Required: Yes<br />
  
  Minimum: <code>1</code><br />
  
  Maximum: <code>30</code><br />
  
  Pattern: <code>^\P{C}*$</code><br />
  
  Update requires: <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt">No interruption</a> */
    indexFieldName: Value<string>;
    /** <code>DataSourceFieldName</code>  <a name="cfn-kendra-datasource-datasourcetoindexfieldmapping-datasourcefieldname"></a>
  The name of the field in the data source. You must first create the index field using the <code>UpdateIndex</code> API.<br />
  
  Required: Yes<br />
  
  Minimum: <code>1</code><br />
  
  Maximum: <code>100</code><br />
  
  Pattern: <code>^[a-zA-Z][a-zA-Z0-9_.]*$</code><br />
  
  Update requires: <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt">No interruption</a> */
    dataSourceFieldName: Value<string>;
}
