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

com.pulumi.awsnative.bedrock.kotlin.inputs.DataSourceVectorIngestionConfigurationArgs.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.bedrock.kotlin.inputs

import com.pulumi.awsnative.bedrock.inputs.DataSourceVectorIngestionConfigurationArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName

/**
 * Details about how to chunk the documents in the data source. A chunk refers to an excerpt from a data source that is returned when the knowledge base that it belongs to is queried.
 * @property chunkingConfiguration Details about how to chunk the documents in the data source. A *chunk* refers to an excerpt from a data source that is returned when the knowledge base that it belongs to is queried.
 */
public data class DataSourceVectorIngestionConfigurationArgs(
    public val chunkingConfiguration: Output? = null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.bedrock.inputs.DataSourceVectorIngestionConfigurationArgs =
        com.pulumi.awsnative.bedrock.inputs.DataSourceVectorIngestionConfigurationArgs.builder()
            .chunkingConfiguration(
                chunkingConfiguration?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            ).build()
}

/**
 * Builder for [DataSourceVectorIngestionConfigurationArgs].
 */
@PulumiTagMarker
public class DataSourceVectorIngestionConfigurationArgsBuilder internal constructor() {
    private var chunkingConfiguration: Output? = null

    /**
     * @param value Details about how to chunk the documents in the data source. A *chunk* refers to an excerpt from a data source that is returned when the knowledge base that it belongs to is queried.
     */
    @JvmName("jmyaabcjlkapxhrj")
    public suspend fun chunkingConfiguration(`value`: Output) {
        this.chunkingConfiguration = value
    }

    /**
     * @param value Details about how to chunk the documents in the data source. A *chunk* refers to an excerpt from a data source that is returned when the knowledge base that it belongs to is queried.
     */
    @JvmName("vfoadpxybdepxdbn")
    public suspend fun chunkingConfiguration(`value`: DataSourceChunkingConfigurationArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.chunkingConfiguration = mapped
    }

    /**
     * @param argument Details about how to chunk the documents in the data source. A *chunk* refers to an excerpt from a data source that is returned when the knowledge base that it belongs to is queried.
     */
    @JvmName("jhfkbhwvmxjubupt")
    public suspend fun chunkingConfiguration(argument: suspend DataSourceChunkingConfigurationArgsBuilder.() -> Unit) {
        val toBeMapped = DataSourceChunkingConfigurationArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.chunkingConfiguration = mapped
    }

    internal fun build(): DataSourceVectorIngestionConfigurationArgs =
        DataSourceVectorIngestionConfigurationArgs(
            chunkingConfiguration = chunkingConfiguration,
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy