Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.kendra.kotlin.inputs
import com.pulumi.awsnative.kendra.inputs.DataSourceWorkDocsConfigurationArgs.builder
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.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName
/**
*
* @property crawlComments `TRUE` to include comments on documents in your index. Including comments in your index means each comment is a document that can be searched on.
* The default is set to `FALSE` .
* @property exclusionPatterns A list of regular expression patterns to exclude certain files in your Amazon WorkDocs site repository. Files that match the patterns are excluded from the index. Files that don’t match the patterns are included in the index. If a file matches both an inclusion and exclusion pattern, the exclusion pattern takes precedence and the file isn't included in the index.
* @property fieldMappings A list of `DataSourceToIndexFieldMapping` objects that map Amazon WorkDocs data source attributes or field names to Amazon Kendra index field names. To create custom fields, use the `UpdateIndex` API before you map to Amazon WorkDocs fields. For more information, see [Mapping data source fields](https://docs.aws.amazon.com/kendra/latest/dg/field-mapping.html) . The Amazon WorkDocs data source field names must exist in your Amazon WorkDocs custom metadata.
* @property inclusionPatterns A list of regular expression patterns to include certain files in your Amazon WorkDocs site repository. Files that match the patterns are included in the index. Files that don't match the patterns are excluded from the index. If a file matches both an inclusion and exclusion pattern, the exclusion pattern takes precedence and the file isn't included in the index.
* @property organizationId The identifier of the directory corresponding to your Amazon WorkDocs site repository.
* You can find the organization ID in the [AWS Directory Service](https://docs.aws.amazon.com/directoryservicev2/) by going to *Active Directory* , then *Directories* . Your Amazon WorkDocs site directory has an ID, which is the organization ID. You can also set up a new Amazon WorkDocs directory in the AWS Directory Service console and enable a Amazon WorkDocs site for the directory in the Amazon WorkDocs console.
* @property useChangeLog `TRUE` to use the Amazon WorkDocs change log to determine which documents require updating in the index. Depending on the change log's size, it may take longer for Amazon Kendra to use the change log than to scan all of your documents in Amazon WorkDocs.
*/
public data class DataSourceWorkDocsConfigurationArgs(
public val crawlComments: Output? = null,
public val exclusionPatterns: Output>? = null,
public val fieldMappings: Output>? = null,
public val inclusionPatterns: Output>? = null,
public val organizationId: Output,
public val useChangeLog: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.kendra.inputs.DataSourceWorkDocsConfigurationArgs =
com.pulumi.awsnative.kendra.inputs.DataSourceWorkDocsConfigurationArgs.builder()
.crawlComments(crawlComments?.applyValue({ args0 -> args0 }))
.exclusionPatterns(exclusionPatterns?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
.fieldMappings(
fieldMappings?.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
})
}),
)
.inclusionPatterns(inclusionPatterns?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
.organizationId(organizationId.applyValue({ args0 -> args0 }))
.useChangeLog(useChangeLog?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [DataSourceWorkDocsConfigurationArgs].
*/
@PulumiTagMarker
public class DataSourceWorkDocsConfigurationArgsBuilder internal constructor() {
private var crawlComments: Output? = null
private var exclusionPatterns: Output>? = null
private var fieldMappings: Output>? = null
private var inclusionPatterns: Output>? = null
private var organizationId: Output? = null
private var useChangeLog: Output? = null
/**
* @param value `TRUE` to include comments on documents in your index. Including comments in your index means each comment is a document that can be searched on.
* The default is set to `FALSE` .
*/
@JvmName("gfrplfhgmjhobvjq")
public suspend fun crawlComments(`value`: Output) {
this.crawlComments = value
}
/**
* @param value A list of regular expression patterns to exclude certain files in your Amazon WorkDocs site repository. Files that match the patterns are excluded from the index. Files that don’t match the patterns are included in the index. If a file matches both an inclusion and exclusion pattern, the exclusion pattern takes precedence and the file isn't included in the index.
*/
@JvmName("lgyllskhavayvqpn")
public suspend fun exclusionPatterns(`value`: Output>) {
this.exclusionPatterns = value
}
@JvmName("lgkqgcubpqrdevlu")
public suspend fun exclusionPatterns(vararg values: Output) {
this.exclusionPatterns = Output.all(values.asList())
}
/**
* @param values A list of regular expression patterns to exclude certain files in your Amazon WorkDocs site repository. Files that match the patterns are excluded from the index. Files that don’t match the patterns are included in the index. If a file matches both an inclusion and exclusion pattern, the exclusion pattern takes precedence and the file isn't included in the index.
*/
@JvmName("asyjjrkyheungepx")
public suspend fun exclusionPatterns(values: List