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

com.pulumi.aws.bedrock.kotlin.inputs.AgentDataSourceVectorIngestionConfigurationChunkingConfigurationArgs.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 6.57.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.aws.bedrock.kotlin.inputs

import com.pulumi.aws.bedrock.inputs.AgentDataSourceVectorIngestionConfigurationChunkingConfigurationArgs.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.jvm.JvmName

/**
 *
 * @property chunkingStrategy Option for chunking your source data, either in fixed-sized chunks or as one chunk. Valid values: `FIXED_SIZE`, `HIERARCHICAL`, `SEMANTIC`, `NONE`.
 * @property fixedSizeChunkingConfiguration Configurations for when you choose fixed-size chunking. Requires chunking_strategy as `FIXED_SIZE`. See `fixed_size_chunking_configuration` for details.
 * @property hierarchicalChunkingConfiguration Configurations for when you choose hierarchical chunking. Requires chunking_strategy as `HIERARCHICAL`. See `hierarchical_chunking_configuration` for details.
 * @property semanticChunkingConfiguration Configurations for when you choose semantic chunking. Requires chunking_strategy as `SEMANTIC`. See `semantic_chunking_configuration` for details.
 */
public data class AgentDataSourceVectorIngestionConfigurationChunkingConfigurationArgs(
    public val chunkingStrategy: Output,
    public val fixedSizeChunkingConfiguration: Output? =
        null,
    public val hierarchicalChunkingConfiguration: Output? =
        null,
    public val semanticChunkingConfiguration: Output? =
        null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.aws.bedrock.inputs.AgentDataSourceVectorIngestionConfigurationChunkingConfigurationArgs =
        com.pulumi.aws.bedrock.inputs.AgentDataSourceVectorIngestionConfigurationChunkingConfigurationArgs.builder()
            .chunkingStrategy(chunkingStrategy.applyValue({ args0 -> args0 }))
            .fixedSizeChunkingConfiguration(
                fixedSizeChunkingConfiguration?.applyValue({ args0 ->
                    args0.let({ args0 -> args0.toJava() })
                }),
            )
            .hierarchicalChunkingConfiguration(
                hierarchicalChunkingConfiguration?.applyValue({ args0 ->
                    args0.let({ args0 -> args0.toJava() })
                }),
            )
            .semanticChunkingConfiguration(
                semanticChunkingConfiguration?.applyValue({ args0 ->
                    args0.let({ args0 -> args0.toJava() })
                }),
            ).build()
}

/**
 * Builder for [AgentDataSourceVectorIngestionConfigurationChunkingConfigurationArgs].
 */
@PulumiTagMarker
public class AgentDataSourceVectorIngestionConfigurationChunkingConfigurationArgsBuilder internal constructor() {
    private var chunkingStrategy: Output? = null

    private var fixedSizeChunkingConfiguration:
        Output? =
        null

    private var hierarchicalChunkingConfiguration:
        Output? =
        null

    private var semanticChunkingConfiguration:
        Output? =
        null

    /**
     * @param value Option for chunking your source data, either in fixed-sized chunks or as one chunk. Valid values: `FIXED_SIZE`, `HIERARCHICAL`, `SEMANTIC`, `NONE`.
     */
    @JvmName("ioulinlixwtuxxof")
    public suspend fun chunkingStrategy(`value`: Output) {
        this.chunkingStrategy = value
    }

    /**
     * @param value Configurations for when you choose fixed-size chunking. Requires chunking_strategy as `FIXED_SIZE`. See `fixed_size_chunking_configuration` for details.
     */
    @JvmName("cbyamnyflmodugjh")
    public suspend fun fixedSizeChunkingConfiguration(`value`: Output) {
        this.fixedSizeChunkingConfiguration = value
    }

    /**
     * @param value Configurations for when you choose hierarchical chunking. Requires chunking_strategy as `HIERARCHICAL`. See `hierarchical_chunking_configuration` for details.
     */
    @JvmName("weryhkbbmorsiweu")
    public suspend fun hierarchicalChunkingConfiguration(`value`: Output) {
        this.hierarchicalChunkingConfiguration = value
    }

    /**
     * @param value Configurations for when you choose semantic chunking. Requires chunking_strategy as `SEMANTIC`. See `semantic_chunking_configuration` for details.
     */
    @JvmName("bfhhvngdgxbevpfy")
    public suspend fun semanticChunkingConfiguration(`value`: Output) {
        this.semanticChunkingConfiguration = value
    }

    /**
     * @param value Option for chunking your source data, either in fixed-sized chunks or as one chunk. Valid values: `FIXED_SIZE`, `HIERARCHICAL`, `SEMANTIC`, `NONE`.
     */
    @JvmName("mvekeycguvsrrfbh")
    public suspend fun chunkingStrategy(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.chunkingStrategy = mapped
    }

    /**
     * @param value Configurations for when you choose fixed-size chunking. Requires chunking_strategy as `FIXED_SIZE`. See `fixed_size_chunking_configuration` for details.
     */
    @JvmName("hhrnqrbvpsyjpbik")
    public suspend fun fixedSizeChunkingConfiguration(`value`: AgentDataSourceVectorIngestionConfigurationChunkingConfigurationFixedSizeChunkingConfigurationArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.fixedSizeChunkingConfiguration = mapped
    }

    /**
     * @param argument Configurations for when you choose fixed-size chunking. Requires chunking_strategy as `FIXED_SIZE`. See `fixed_size_chunking_configuration` for details.
     */
    @JvmName("dbvempujwhkiqjqi")
    public suspend fun fixedSizeChunkingConfiguration(argument: suspend AgentDataSourceVectorIngestionConfigurationChunkingConfigurationFixedSizeChunkingConfigurationArgsBuilder.() -> Unit) {
        val toBeMapped =
            AgentDataSourceVectorIngestionConfigurationChunkingConfigurationFixedSizeChunkingConfigurationArgsBuilder().applySuspend {
                argument()
            }.build()
        val mapped = of(toBeMapped)
        this.fixedSizeChunkingConfiguration = mapped
    }

    /**
     * @param value Configurations for when you choose hierarchical chunking. Requires chunking_strategy as `HIERARCHICAL`. See `hierarchical_chunking_configuration` for details.
     */
    @JvmName("ayrjsqrfgiviqdhb")
    public suspend fun hierarchicalChunkingConfiguration(`value`: AgentDataSourceVectorIngestionConfigurationChunkingConfigurationHierarchicalChunkingConfigurationArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.hierarchicalChunkingConfiguration = mapped
    }

    /**
     * @param argument Configurations for when you choose hierarchical chunking. Requires chunking_strategy as `HIERARCHICAL`. See `hierarchical_chunking_configuration` for details.
     */
    @JvmName("ssmlktttpyfxqilx")
    public suspend fun hierarchicalChunkingConfiguration(argument: suspend AgentDataSourceVectorIngestionConfigurationChunkingConfigurationHierarchicalChunkingConfigurationArgsBuilder.() -> Unit) {
        val toBeMapped =
            AgentDataSourceVectorIngestionConfigurationChunkingConfigurationHierarchicalChunkingConfigurationArgsBuilder().applySuspend {
                argument()
            }.build()
        val mapped = of(toBeMapped)
        this.hierarchicalChunkingConfiguration = mapped
    }

    /**
     * @param value Configurations for when you choose semantic chunking. Requires chunking_strategy as `SEMANTIC`. See `semantic_chunking_configuration` for details.
     */
    @JvmName("ciwmkjpchnqbevuh")
    public suspend fun semanticChunkingConfiguration(`value`: AgentDataSourceVectorIngestionConfigurationChunkingConfigurationSemanticChunkingConfigurationArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.semanticChunkingConfiguration = mapped
    }

    /**
     * @param argument Configurations for when you choose semantic chunking. Requires chunking_strategy as `SEMANTIC`. See `semantic_chunking_configuration` for details.
     */
    @JvmName("hkfwddxhcsvtxgvh")
    public suspend fun semanticChunkingConfiguration(argument: suspend AgentDataSourceVectorIngestionConfigurationChunkingConfigurationSemanticChunkingConfigurationArgsBuilder.() -> Unit) {
        val toBeMapped =
            AgentDataSourceVectorIngestionConfigurationChunkingConfigurationSemanticChunkingConfigurationArgsBuilder().applySuspend {
                argument()
            }.build()
        val mapped = of(toBeMapped)
        this.semanticChunkingConfiguration = mapped
    }

    internal fun build(): AgentDataSourceVectorIngestionConfigurationChunkingConfigurationArgs =
        AgentDataSourceVectorIngestionConfigurationChunkingConfigurationArgs(
            chunkingStrategy = chunkingStrategy ?: throw PulumiNullFieldException("chunkingStrategy"),
            fixedSizeChunkingConfiguration = fixedSizeChunkingConfiguration,
            hierarchicalChunkingConfiguration = hierarchicalChunkingConfiguration,
            semanticChunkingConfiguration = semanticChunkingConfiguration,
        )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy