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

com.pulumi.awsnative.kendra.kotlin.inputs.DataSourceSalesforceChatterFeedConfigurationArgs.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 0.122.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.kendra.kotlin.inputs

import com.pulumi.awsnative.kendra.inputs.DataSourceSalesforceChatterFeedConfigurationArgs.builder
import com.pulumi.awsnative.kendra.kotlin.enums.DataSourceSalesforceChatterFeedIncludeFilterType
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @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 DataSourceSalesforceChatterFeedConfigurationArgs(
    public val documentDataFieldName: Output,
    public val documentTitleFieldName: Output? = null,
    public val fieldMappings: Output>? = null,
    public val includeFilterTypes: Output>? =
        null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.kendra.inputs.DataSourceSalesforceChatterFeedConfigurationArgs =
        com.pulumi.awsnative.kendra.inputs.DataSourceSalesforceChatterFeedConfigurationArgs.builder()
            .documentDataFieldName(documentDataFieldName.applyValue({ args0 -> args0 }))
            .documentTitleFieldName(documentTitleFieldName?.applyValue({ args0 -> args0 }))
            .fieldMappings(
                fieldMappings?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .includeFilterTypes(
                includeFilterTypes?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 -> args0.toJava() })
                    })
                }),
            ).build()
}

/**
 * Builder for [DataSourceSalesforceChatterFeedConfigurationArgs].
 */
@PulumiTagMarker
public class DataSourceSalesforceChatterFeedConfigurationArgsBuilder internal constructor() {
    private var documentDataFieldName: Output? = null

    private var documentTitleFieldName: Output? = null

    private var fieldMappings: Output>? = null

    private var includeFilterTypes: Output>? =
        null

    /**
     * @param value The name of the column in the Salesforce FeedItem table that contains the content to index. Typically this is the `Body` column.
     */
    @JvmName("msulkxrauouqlpag")
    public suspend fun documentDataFieldName(`value`: Output) {
        this.documentDataFieldName = value
    }

    /**
     * @param value The name of the column in the Salesforce FeedItem table that contains the title of the document. This is typically the `Title` column.
     */
    @JvmName("ehgbblhoyitbaeli")
    public suspend fun documentTitleFieldName(`value`: Output) {
        this.documentTitleFieldName = value
    }

    /**
     * @param value Maps fields from a Salesforce chatter feed into Amazon Kendra index fields.
     */
    @JvmName("uovmlummuoxiutwb")
    public suspend fun fieldMappings(`value`: Output>) {
        this.fieldMappings = value
    }

    @JvmName("jcnqpflwcirgtsrr")
    public suspend fun fieldMappings(vararg values: Output) {
        this.fieldMappings = Output.all(values.asList())
    }

    /**
     * @param values Maps fields from a Salesforce chatter feed into Amazon Kendra index fields.
     */
    @JvmName("uhxyocpkcsfugxdj")
    public suspend fun fieldMappings(values: List>) {
        this.fieldMappings = Output.all(values)
    }

    /**
     * @param value 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.
     */
    @JvmName("meubakhxyilqlgyl")
    public suspend fun includeFilterTypes(`value`: Output>) {
        this.includeFilterTypes = value
    }

    @JvmName("bqjvurxoroekrusy")
    public suspend fun includeFilterTypes(vararg values: Output) {
        this.includeFilterTypes = Output.all(values.asList())
    }

    /**
     * @param values 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.
     */
    @JvmName("bkagmpbveioeopmj")
    public suspend fun includeFilterTypes(values: List>) {
        this.includeFilterTypes = Output.all(values)
    }

    /**
     * @param value The name of the column in the Salesforce FeedItem table that contains the content to index. Typically this is the `Body` column.
     */
    @JvmName("pogdllduogashvil")
    public suspend fun documentDataFieldName(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.documentDataFieldName = mapped
    }

    /**
     * @param value The name of the column in the Salesforce FeedItem table that contains the title of the document. This is typically the `Title` column.
     */
    @JvmName("ukwicmljkdhbusad")
    public suspend fun documentTitleFieldName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.documentTitleFieldName = mapped
    }

    /**
     * @param value Maps fields from a Salesforce chatter feed into Amazon Kendra index fields.
     */
    @JvmName("xldnmuykuhegsffw")
    public suspend fun fieldMappings(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.fieldMappings = mapped
    }

    /**
     * @param argument Maps fields from a Salesforce chatter feed into Amazon Kendra index fields.
     */
    @JvmName("kcsoxcchvrkguhfx")
    public suspend fun fieldMappings(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            DataSourceToIndexFieldMappingArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.fieldMappings = mapped
    }

    /**
     * @param argument Maps fields from a Salesforce chatter feed into Amazon Kendra index fields.
     */
    @JvmName("bcegsxwkbhamukoe")
    public suspend fun fieldMappings(vararg argument: suspend DataSourceToIndexFieldMappingArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            DataSourceToIndexFieldMappingArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.fieldMappings = mapped
    }

    /**
     * @param argument Maps fields from a Salesforce chatter feed into Amazon Kendra index fields.
     */
    @JvmName("nteslydpkdtfurkr")
    public suspend fun fieldMappings(argument: suspend DataSourceToIndexFieldMappingArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            DataSourceToIndexFieldMappingArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.fieldMappings = mapped
    }

    /**
     * @param values Maps fields from a Salesforce chatter feed into Amazon Kendra index fields.
     */
    @JvmName("cumrighjjsxmxpdp")
    public suspend fun fieldMappings(vararg values: DataSourceToIndexFieldMappingArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.fieldMappings = mapped
    }

    /**
     * @param value 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.
     */
    @JvmName("hjyjunyiywwaehsm")
    public suspend fun includeFilterTypes(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.includeFilterTypes = mapped
    }

    /**
     * @param values 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.
     */
    @JvmName("fjbyfhkcduqcjshq")
    public suspend fun includeFilterTypes(vararg values: DataSourceSalesforceChatterFeedIncludeFilterType) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.includeFilterTypes = mapped
    }

    internal fun build(): DataSourceSalesforceChatterFeedConfigurationArgs =
        DataSourceSalesforceChatterFeedConfigurationArgs(
            documentDataFieldName = documentDataFieldName ?: throw
                PulumiNullFieldException("documentDataFieldName"),
            documentTitleFieldName = documentTitleFieldName,
            fieldMappings = fieldMappings,
            includeFilterTypes = includeFilterTypes,
        )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy