All Downloads are FREE. Search and download functionalities are using the official Maven repository.

cloudshift.awscdk.dsl.services.kendra.CfnDataSourceConfluencePageToIndexFieldMappingPropertyDsl.kt Maven / Gradle / Ivy

There is a newer version: 0.7.0
Show newest version
@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION")

package cloudshift.awscdk.dsl.services.kendra

import cloudshift.awscdk.common.CdkDslMarker
import kotlin.String
import software.amazon.awscdk.services.kendra.CfnDataSource

/**
 * Maps attributes or field names of Confluence pages to Amazon Kendra index field names.
 *
 * To create custom fields, use the `UpdateIndex` API before you map to Confluence fields. For more
 * information, see [Mapping data source
 * fields](https://docs.aws.amazon.com/kendra/latest/dg/field-mapping.html) . The Confluence data
 * source field names must exist in your Confluence custom metadata.
 *
 * Example:
 *
 * ```
 * // The code below shows an example of how to instantiate this type.
 * // The values are placeholders you should change.
 * import software.amazon.awscdk.services.kendra.*;
 * ConfluencePageToIndexFieldMappingProperty confluencePageToIndexFieldMappingProperty =
 * ConfluencePageToIndexFieldMappingProperty.builder()
 * .dataSourceFieldName("dataSourceFieldName")
 * .indexFieldName("indexFieldName")
 * // the properties below are optional
 * .dateFieldFormat("dateFieldFormat")
 * .build();
 * ```
 *
 * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kendra-datasource-confluencepagetoindexfieldmapping.html)
 */
@CdkDslMarker
public class CfnDataSourceConfluencePageToIndexFieldMappingPropertyDsl {
  private val cdkBuilder: CfnDataSource.ConfluencePageToIndexFieldMappingProperty.Builder =
      CfnDataSource.ConfluencePageToIndexFieldMappingProperty.builder()

  /**
   * @param dataSourceFieldName The name of the field in the data source. 
   */
  public fun dataSourceFieldName(dataSourceFieldName: String) {
    cdkBuilder.dataSourceFieldName(dataSourceFieldName)
  }

  /**
   * @param 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.
   */
  public fun dateFieldFormat(dateFieldFormat: String) {
    cdkBuilder.dateFieldFormat(dateFieldFormat)
  }

  /**
   * @param indexFieldName The name of the index field to map to the Confluence data source field. 
   * The index field type must match the Confluence field type.
   */
  public fun indexFieldName(indexFieldName: String) {
    cdkBuilder.indexFieldName(indexFieldName)
  }

  public fun build(): CfnDataSource.ConfluencePageToIndexFieldMappingProperty = cdkBuilder.build()
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy