![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.awsnative.bedrock.kotlin.inputs.KnowledgeBasePineconeFieldMappingArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.bedrock.kotlin.inputs
import com.pulumi.awsnative.bedrock.inputs.KnowledgeBasePineconeFieldMappingArgs.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 kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
* Contains the names of the fields to which to map information about the vector store.
* @property metadataField The name of the field in which Amazon Bedrock stores metadata about the vector store.
* @property textField The name of the field in which Amazon Bedrock stores the raw text from your data. The text is split according to the chunking strategy you choose.
*/
public data class KnowledgeBasePineconeFieldMappingArgs(
public val metadataField: Output,
public val textField: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.bedrock.inputs.KnowledgeBasePineconeFieldMappingArgs =
com.pulumi.awsnative.bedrock.inputs.KnowledgeBasePineconeFieldMappingArgs.builder()
.metadataField(metadataField.applyValue({ args0 -> args0 }))
.textField(textField.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [KnowledgeBasePineconeFieldMappingArgs].
*/
@PulumiTagMarker
public class KnowledgeBasePineconeFieldMappingArgsBuilder internal constructor() {
private var metadataField: Output? = null
private var textField: Output? = null
/**
* @param value The name of the field in which Amazon Bedrock stores metadata about the vector store.
*/
@JvmName("yfonqqpnxhwctbsx")
public suspend fun metadataField(`value`: Output) {
this.metadataField = value
}
/**
* @param value The name of the field in which Amazon Bedrock stores the raw text from your data. The text is split according to the chunking strategy you choose.
*/
@JvmName("hvtunlknxsklsbfe")
public suspend fun textField(`value`: Output) {
this.textField = value
}
/**
* @param value The name of the field in which Amazon Bedrock stores metadata about the vector store.
*/
@JvmName("nmumpucimftdvebb")
public suspend fun metadataField(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.metadataField = mapped
}
/**
* @param value The name of the field in which Amazon Bedrock stores the raw text from your data. The text is split according to the chunking strategy you choose.
*/
@JvmName("ktgoafyievcsdtof")
public suspend fun textField(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.textField = mapped
}
internal fun build(): KnowledgeBasePineconeFieldMappingArgs =
KnowledgeBasePineconeFieldMappingArgs(
metadataField = metadataField ?: throw PulumiNullFieldException("metadataField"),
textField = textField ?: throw PulumiNullFieldException("textField"),
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy