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.DataSourceOneDriveConfigurationArgs.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 disableLocalGroups `TRUE` to disable local groups information.
* @property exclusionPatterns A list of regular expression patterns to exclude certain documents in your OneDrive. 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 file name.
* @property fieldMappings A list of `DataSourceToIndexFieldMapping` objects that map OneDrive data source attributes or field names to Amazon Kendra index field names. To create custom fields, use the `UpdateIndex` API before you map to OneDrive fields. For more information, see [Mapping data source fields](https://docs.aws.amazon.com/kendra/latest/dg/field-mapping.html) . The OneDrive data source field names must exist in your OneDrive custom metadata.
* @property inclusionPatterns A list of regular expression patterns to include certain documents in your OneDrive. 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 file name.
* @property oneDriveUsers A list of user accounts whose documents should be indexed.
* @property secretArn The Amazon Resource Name (ARN) of an AWS Secrets Manager secret that contains the user name and password to connect to OneDrive. The user name should be the application ID for the OneDrive application, and the password is the application key for the OneDrive application.
* @property tenantDomain The Azure Active Directory domain of the organization.
*/
public data class DataSourceOneDriveConfigurationArgs(
public val disableLocalGroups: Output? = null,
public val exclusionPatterns: Output>? = null,
public val fieldMappings: Output>? = null,
public val inclusionPatterns: Output>? = null,
public val oneDriveUsers: Output,
public val secretArn: Output,
public val tenantDomain: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.kendra.inputs.DataSourceOneDriveConfigurationArgs =
com.pulumi.awsnative.kendra.inputs.DataSourceOneDriveConfigurationArgs.builder()
.disableLocalGroups(disableLocalGroups?.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 }) }))
.oneDriveUsers(oneDriveUsers.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.secretArn(secretArn.applyValue({ args0 -> args0 }))
.tenantDomain(tenantDomain.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [DataSourceOneDriveConfigurationArgs].
*/
@PulumiTagMarker
public class DataSourceOneDriveConfigurationArgsBuilder internal constructor() {
private var disableLocalGroups: Output? = null
private var exclusionPatterns: Output>? = null
private var fieldMappings: Output>? = null
private var inclusionPatterns: Output>? = null
private var oneDriveUsers: Output? = null
private var secretArn: Output? = null
private var tenantDomain: Output? = null
/**
* @param value `TRUE` to disable local groups information.
*/
@JvmName("fnbuodlennlswfjp")
public suspend fun disableLocalGroups(`value`: Output) {
this.disableLocalGroups = value
}
/**
* @param value A list of regular expression patterns to exclude certain documents in your OneDrive. 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 file name.
*/
@JvmName("vrleihbvjrtehher")
public suspend fun exclusionPatterns(`value`: Output>) {
this.exclusionPatterns = value
}
@JvmName("pyvifcyoeficvopx")
public suspend fun exclusionPatterns(vararg values: Output) {
this.exclusionPatterns = Output.all(values.asList())
}
/**
* @param values A list of regular expression patterns to exclude certain documents in your OneDrive. 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 file name.
*/
@JvmName("upgyfalcqwjtsipt")
public suspend fun exclusionPatterns(values: List