
com.pulumi.awsnative.kendra.kotlin.outputs.DataSourceSalesforceConfiguration.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.kendra.kotlin.outputs
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
/**
*
* @property chatterFeedConfiguration Configuration information for Salesforce chatter feeds.
* @property crawlAttachments Indicates whether Amazon Kendra should index attachments to Salesforce objects.
* @property excludeAttachmentFilePatterns A list of regular expression patterns to exclude certain documents in your Salesforce. Documents that match the patterns are excluded from the index. Documents that don't match the patterns are included in the index. If a document matches both an inclusion and exclusion pattern, the exclusion pattern takes precedence and the document isn't included in the index.
* The pattern is applied to the name of the attached file.
* @property includeAttachmentFilePatterns A list of regular expression patterns to include certain documents in your Salesforce. Documents that match the patterns are included in the index. Documents that don't match the patterns are excluded from the index. If a document matches both an inclusion and exclusion pattern, the exclusion pattern takes precedence and the document isn't included in the index.
* The pattern is applied to the name of the attached file.
* @property knowledgeArticleConfiguration Configuration information for the knowledge article types that Amazon Kendra indexes. Amazon Kendra indexes standard knowledge articles and the standard fields of knowledge articles, or the custom fields of custom knowledge articles, but not both.
* @property secretArn The Amazon Resource Name (ARN) of an AWS Secrets Manager secret that contains the key/value pairs required to connect to your Salesforce instance. The secret must contain a JSON structure with the following keys:
* - authenticationUrl - The OAUTH endpoint that Amazon Kendra connects to get an OAUTH token.
* - consumerKey - The application public key generated when you created your Salesforce application.
* - consumerSecret - The application private key generated when you created your Salesforce application.
* - password - The password associated with the user logging in to the Salesforce instance.
* - securityToken - The token associated with the user logging in to the Salesforce instance.
* - username - The user name of the user logging in to the Salesforce instance.
* @property serverUrl The instance URL for the Salesforce site that you want to index.
* @property standardObjectAttachmentConfiguration Configuration information for processing attachments to Salesforce standard objects.
* @property standardObjectConfigurations Configuration of the Salesforce standard objects that Amazon Kendra indexes.
*/
public data class DataSourceSalesforceConfiguration(
public val chatterFeedConfiguration: DataSourceSalesforceChatterFeedConfiguration? = null,
public val crawlAttachments: Boolean? = null,
public val excludeAttachmentFilePatterns: List? = null,
public val includeAttachmentFilePatterns: List? = null,
public val knowledgeArticleConfiguration: DataSourceSalesforceKnowledgeArticleConfiguration? =
null,
public val secretArn: String,
public val serverUrl: String,
public val standardObjectAttachmentConfiguration: DataSourceSalesforceStandardObjectAttachmentConfiguration? = null,
public val standardObjectConfigurations: List? =
null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.awsnative.kendra.outputs.DataSourceSalesforceConfiguration): DataSourceSalesforceConfiguration = DataSourceSalesforceConfiguration(
chatterFeedConfiguration = javaType.chatterFeedConfiguration().map({ args0 ->
args0.let({ args0 ->
com.pulumi.awsnative.kendra.kotlin.outputs.DataSourceSalesforceChatterFeedConfiguration.Companion.toKotlin(args0)
})
}).orElse(null),
crawlAttachments = javaType.crawlAttachments().map({ args0 -> args0 }).orElse(null),
excludeAttachmentFilePatterns = javaType.excludeAttachmentFilePatterns().map({ args0 -> args0 }),
includeAttachmentFilePatterns = javaType.includeAttachmentFilePatterns().map({ args0 -> args0 }),
knowledgeArticleConfiguration = javaType.knowledgeArticleConfiguration().map({ args0 ->
args0.let({ args0 ->
com.pulumi.awsnative.kendra.kotlin.outputs.DataSourceSalesforceKnowledgeArticleConfiguration.Companion.toKotlin(args0)
})
}).orElse(null),
secretArn = javaType.secretArn(),
serverUrl = javaType.serverUrl(),
standardObjectAttachmentConfiguration = javaType.standardObjectAttachmentConfiguration().map({ args0 ->
args0.let({ args0 ->
com.pulumi.awsnative.kendra.kotlin.outputs.DataSourceSalesforceStandardObjectAttachmentConfiguration.Companion.toKotlin(args0)
})
}).orElse(null),
standardObjectConfigurations = javaType.standardObjectConfigurations().map({ args0 ->
args0.let({ args0 ->
com.pulumi.awsnative.kendra.kotlin.outputs.DataSourceSalesforceStandardObjectConfiguration.Companion.toKotlin(args0)
})
}),
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy