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

com.pulumi.awsnative.kendra.kotlin.outputs.DataSourceSalesforceChatterFeedConfiguration.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.kendra.kotlin.outputs

import com.pulumi.awsnative.kendra.kotlin.enums.DataSourceSalesforceChatterFeedIncludeFilterType
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List

/**
 *
 * @property documentDataFieldName The name of the column in the Salesforce FeedItem table that contains the content to index. Typically this is the `Body` column.
 * @property documentTitleFieldName The name of the column in the Salesforce FeedItem table that contains the title of the document. This is typically the `Title` column.
 * @property fieldMappings Maps fields from a Salesforce chatter feed into Amazon Kendra index fields.
 * @property includeFilterTypes Filters the documents in the feed based on status of the user. When you specify `ACTIVE_USERS` only documents from users who have an active account are indexed. When you specify `STANDARD_USER` only documents for Salesforce standard users are documented. You can specify both.
 */
public data class DataSourceSalesforceChatterFeedConfiguration(
    public val documentDataFieldName: String,
    public val documentTitleFieldName: String? = null,
    public val fieldMappings: List? = null,
    public val includeFilterTypes: List? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.awsnative.kendra.outputs.DataSourceSalesforceChatterFeedConfiguration): DataSourceSalesforceChatterFeedConfiguration = DataSourceSalesforceChatterFeedConfiguration(
            documentDataFieldName = javaType.documentDataFieldName(),
            documentTitleFieldName = javaType.documentTitleFieldName().map({ args0 -> args0 }).orElse(null),
            fieldMappings = javaType.fieldMappings().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.kendra.kotlin.outputs.DataSourceToIndexFieldMapping.Companion.toKotlin(args0)
                })
            }),
            includeFilterTypes = javaType.includeFilterTypes().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.kendra.kotlin.enums.DataSourceSalesforceChatterFeedIncludeFilterType.Companion.toKotlin(args0)
                })
            }),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy