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.aws.kendra.kotlin.inputs
import com.pulumi.aws.kendra.inputs.DataSourceConfigurationS3ConfigurationArgs.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.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName
/**
*
* @property accessControlListConfiguration A block that provides the path to the S3 bucket that contains the user context filtering files for the data source. For the format of the file, see [Access control for S3 data sources](https://docs.aws.amazon.com/kendra/latest/dg/s3-acl.html). Detailed below.
* @property bucketName The name of the bucket that contains the documents.
* @property documentsMetadataConfiguration A block that defines the Document metadata files that contain information such as the document access control information, source URI, document author, and custom attributes. Each metadata file contains metadata about a single document. Detailed below.
* @property exclusionPatterns A list of glob patterns for documents that should not be indexed. If a document that matches an inclusion prefix or inclusion pattern also matches an exclusion pattern, the document is not indexed. Refer to [Exclusion Patterns for more examples](https://docs.aws.amazon.com/kendra/latest/dg/API_S3DataSourceConfiguration.html#Kendra-Type-S3DataSourceConfiguration-ExclusionPatterns).
* @property inclusionPatterns A list of glob patterns for documents that should be indexed. If a document that matches an inclusion pattern also matches an exclusion pattern, the document is not indexed. Refer to [Inclusion Patterns for more examples](https://docs.aws.amazon.com/kendra/latest/dg/API_S3DataSourceConfiguration.html#Kendra-Type-S3DataSourceConfiguration-InclusionPatterns).
* @property inclusionPrefixes A list of S3 prefixes for the documents that should be included in the index.
*/
public data class DataSourceConfigurationS3ConfigurationArgs(
public val accessControlListConfiguration: Output? = null,
public val bucketName: Output,
public val documentsMetadataConfiguration: Output? = null,
public val exclusionPatterns: Output>? = null,
public val inclusionPatterns: Output>? = null,
public val inclusionPrefixes: Output>? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.aws.kendra.inputs.DataSourceConfigurationS3ConfigurationArgs =
com.pulumi.aws.kendra.inputs.DataSourceConfigurationS3ConfigurationArgs.builder()
.accessControlListConfiguration(
accessControlListConfiguration?.applyValue({ args0 ->
args0.let({ args0 -> args0.toJava() })
}),
)
.bucketName(bucketName.applyValue({ args0 -> args0 }))
.documentsMetadataConfiguration(
documentsMetadataConfiguration?.applyValue({ args0 ->
args0.let({ args0 -> args0.toJava() })
}),
)
.exclusionPatterns(exclusionPatterns?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
.inclusionPatterns(inclusionPatterns?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
.inclusionPrefixes(inclusionPrefixes?.applyValue({ args0 -> args0.map({ args0 -> args0 }) })).build()
}
/**
* Builder for [DataSourceConfigurationS3ConfigurationArgs].
*/
@PulumiTagMarker
public class DataSourceConfigurationS3ConfigurationArgsBuilder internal constructor() {
private var accessControlListConfiguration:
Output? = null
private var bucketName: Output? = null
private var documentsMetadataConfiguration:
Output? = null
private var exclusionPatterns: Output>? = null
private var inclusionPatterns: Output>? = null
private var inclusionPrefixes: Output>? = null
/**
* @param value A block that provides the path to the S3 bucket that contains the user context filtering files for the data source. For the format of the file, see [Access control for S3 data sources](https://docs.aws.amazon.com/kendra/latest/dg/s3-acl.html). Detailed below.
*/
@JvmName("bpltelfpayswipcm")
public suspend fun accessControlListConfiguration(`value`: Output) {
this.accessControlListConfiguration = value
}
/**
* @param value The name of the bucket that contains the documents.
*/
@JvmName("tnelahowortpodon")
public suspend fun bucketName(`value`: Output) {
this.bucketName = value
}
/**
* @param value A block that defines the Document metadata files that contain information such as the document access control information, source URI, document author, and custom attributes. Each metadata file contains metadata about a single document. Detailed below.
*/
@JvmName("vvofhfhoawbixypd")
public suspend fun documentsMetadataConfiguration(`value`: Output) {
this.documentsMetadataConfiguration = value
}
/**
* @param value A list of glob patterns for documents that should not be indexed. If a document that matches an inclusion prefix or inclusion pattern also matches an exclusion pattern, the document is not indexed. Refer to [Exclusion Patterns for more examples](https://docs.aws.amazon.com/kendra/latest/dg/API_S3DataSourceConfiguration.html#Kendra-Type-S3DataSourceConfiguration-ExclusionPatterns).
*/
@JvmName("fqbropvplhpanyoi")
public suspend fun exclusionPatterns(`value`: Output>) {
this.exclusionPatterns = value
}
@JvmName("lfrmnkwcxgfgbwpe")
public suspend fun exclusionPatterns(vararg values: Output) {
this.exclusionPatterns = Output.all(values.asList())
}
/**
* @param values A list of glob patterns for documents that should not be indexed. If a document that matches an inclusion prefix or inclusion pattern also matches an exclusion pattern, the document is not indexed. Refer to [Exclusion Patterns for more examples](https://docs.aws.amazon.com/kendra/latest/dg/API_S3DataSourceConfiguration.html#Kendra-Type-S3DataSourceConfiguration-ExclusionPatterns).
*/
@JvmName("kpgmbmmhlssppfsc")
public suspend fun exclusionPatterns(values: List