com.pulumi.aws.bedrock.kotlin.inputs.AgentDataSourceVectorIngestionConfigurationArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-aws-kotlin Show documentation
Show all versions of pulumi-aws-kotlin Show documentation
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.bedrock.kotlin.inputs
import com.pulumi.aws.bedrock.inputs.AgentDataSourceVectorIngestionConfigurationArgs.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
/**
*
* @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. See `chunking_configuration` block for details.
* @property customTransformationConfiguration Configuration for custom transformation of data source documents.
* @property parsingConfiguration Configuration for custom parsing of data source documents. See `parsing_configuration` block for details.
*/
public data class AgentDataSourceVectorIngestionConfigurationArgs(
public val chunkingConfiguration: Output? = null,
public val customTransformationConfiguration: Output? =
null,
public val parsingConfiguration: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.aws.bedrock.inputs.AgentDataSourceVectorIngestionConfigurationArgs =
com.pulumi.aws.bedrock.inputs.AgentDataSourceVectorIngestionConfigurationArgs.builder()
.chunkingConfiguration(
chunkingConfiguration?.applyValue({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
}),
)
.customTransformationConfiguration(
customTransformationConfiguration?.applyValue({ args0 ->
args0.let({ args0 -> args0.toJava() })
}),
)
.parsingConfiguration(
parsingConfiguration?.applyValue({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
}),
).build()
}
/**
* Builder for [AgentDataSourceVectorIngestionConfigurationArgs].
*/
@PulumiTagMarker
public class AgentDataSourceVectorIngestionConfigurationArgsBuilder internal constructor() {
private var chunkingConfiguration:
Output? = null
private var customTransformationConfiguration:
Output? =
null
private var parsingConfiguration:
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. See `chunking_configuration` block for details.
*/
@JvmName("dkfstrrcmajbgmih")
public suspend fun chunkingConfiguration(`value`: Output) {
this.chunkingConfiguration = value
}
/**
* @param value Configuration for custom transformation of data source documents.
*/
@JvmName("wsfekvjmhajsnofq")
public suspend fun customTransformationConfiguration(`value`: Output) {
this.customTransformationConfiguration = value
}
/**
* @param value Configuration for custom parsing of data source documents. See `parsing_configuration` block for details.
*/
@JvmName("ymyaheijovpaojgx")
public suspend fun parsingConfiguration(`value`: Output) {
this.parsingConfiguration = 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. See `chunking_configuration` block for details.
*/
@JvmName("njjttdqensprkhdf")
public suspend fun chunkingConfiguration(`value`: AgentDataSourceVectorIngestionConfigurationChunkingConfigurationArgs?) {
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. See `chunking_configuration` block for details.
*/
@JvmName("gjahglifwgwakcjf")
public suspend fun chunkingConfiguration(argument: suspend AgentDataSourceVectorIngestionConfigurationChunkingConfigurationArgsBuilder.() -> Unit) {
val toBeMapped =
AgentDataSourceVectorIngestionConfigurationChunkingConfigurationArgsBuilder().applySuspend {
argument()
}.build()
val mapped = of(toBeMapped)
this.chunkingConfiguration = mapped
}
/**
* @param value Configuration for custom transformation of data source documents.
*/
@JvmName("yjjvyixldjgiiykb")
public suspend fun customTransformationConfiguration(`value`: AgentDataSourceVectorIngestionConfigurationCustomTransformationConfigurationArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.customTransformationConfiguration = mapped
}
/**
* @param argument Configuration for custom transformation of data source documents.
*/
@JvmName("pfqfsginudpiltru")
public suspend fun customTransformationConfiguration(argument: suspend AgentDataSourceVectorIngestionConfigurationCustomTransformationConfigurationArgsBuilder.() -> Unit) {
val toBeMapped =
AgentDataSourceVectorIngestionConfigurationCustomTransformationConfigurationArgsBuilder().applySuspend {
argument()
}.build()
val mapped = of(toBeMapped)
this.customTransformationConfiguration = mapped
}
/**
* @param value Configuration for custom parsing of data source documents. See `parsing_configuration` block for details.
*/
@JvmName("pcqicpkjnbgynewa")
public suspend fun parsingConfiguration(`value`: AgentDataSourceVectorIngestionConfigurationParsingConfigurationArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.parsingConfiguration = mapped
}
/**
* @param argument Configuration for custom parsing of data source documents. See `parsing_configuration` block for details.
*/
@JvmName("owyunnuocdknpohu")
public suspend fun parsingConfiguration(argument: suspend AgentDataSourceVectorIngestionConfigurationParsingConfigurationArgsBuilder.() -> Unit) {
val toBeMapped =
AgentDataSourceVectorIngestionConfigurationParsingConfigurationArgsBuilder().applySuspend {
argument()
}.build()
val mapped = of(toBeMapped)
this.parsingConfiguration = mapped
}
internal fun build(): AgentDataSourceVectorIngestionConfigurationArgs =
AgentDataSourceVectorIngestionConfigurationArgs(
chunkingConfiguration = chunkingConfiguration,
customTransformationConfiguration = customTransformationConfiguration,
parsingConfiguration = parsingConfiguration,
)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy