
com.pulumi.awsnative.bedrock.kotlin.inputs.KnowledgeBasePineconeConfigurationArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-aws-native-kotlin Show documentation
Show all versions of pulumi-aws-native-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.awsnative.bedrock.kotlin.inputs
import com.pulumi.awsnative.bedrock.inputs.KnowledgeBasePineconeConfigurationArgs.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
/**
* Contains the storage configuration of the knowledge base in Pinecone.
* @property connectionString The endpoint URL for your index management page.
* @property credentialsSecretArn The ARN of the secret that you created in AWS Secrets Manager that is linked to your Pinecone API key.
* @property fieldMapping Contains the names of the fields to which to map information about the vector store.
* @property namespace The namespace to be used to write new data to your database.
*/
public data class KnowledgeBasePineconeConfigurationArgs(
public val connectionString: Output,
public val credentialsSecretArn: Output,
public val fieldMapping: Output,
public val namespace: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.bedrock.inputs.KnowledgeBasePineconeConfigurationArgs = com.pulumi.awsnative.bedrock.inputs.KnowledgeBasePineconeConfigurationArgs.builder()
.connectionString(connectionString.applyValue({ args0 -> args0 }))
.credentialsSecretArn(credentialsSecretArn.applyValue({ args0 -> args0 }))
.fieldMapping(fieldMapping.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.namespace(namespace?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [KnowledgeBasePineconeConfigurationArgs].
*/
@PulumiTagMarker
public class KnowledgeBasePineconeConfigurationArgsBuilder internal constructor() {
private var connectionString: Output? = null
private var credentialsSecretArn: Output? = null
private var fieldMapping: Output? = null
private var namespace: Output? = null
/**
* @param value The endpoint URL for your index management page.
*/
@JvmName("asgcerwrbyjckgrs")
public suspend fun connectionString(`value`: Output) {
this.connectionString = value
}
/**
* @param value The ARN of the secret that you created in AWS Secrets Manager that is linked to your Pinecone API key.
*/
@JvmName("vxmsaisdjidlhgnu")
public suspend fun credentialsSecretArn(`value`: Output) {
this.credentialsSecretArn = value
}
/**
* @param value Contains the names of the fields to which to map information about the vector store.
*/
@JvmName("bsneshxaswvyptke")
public suspend fun fieldMapping(`value`: Output) {
this.fieldMapping = value
}
/**
* @param value The namespace to be used to write new data to your database.
*/
@JvmName("fimoaeykcmegegty")
public suspend fun namespace(`value`: Output) {
this.namespace = value
}
/**
* @param value The endpoint URL for your index management page.
*/
@JvmName("yljondsgxesejhcv")
public suspend fun connectionString(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.connectionString = mapped
}
/**
* @param value The ARN of the secret that you created in AWS Secrets Manager that is linked to your Pinecone API key.
*/
@JvmName("aguypglcfobyfqgn")
public suspend fun credentialsSecretArn(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.credentialsSecretArn = mapped
}
/**
* @param value Contains the names of the fields to which to map information about the vector store.
*/
@JvmName("adpoclemwmvwplbo")
public suspend fun fieldMapping(`value`: KnowledgeBasePineconeFieldMappingArgs) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.fieldMapping = mapped
}
/**
* @param argument Contains the names of the fields to which to map information about the vector store.
*/
@JvmName("qrdhpgidetvscyvg")
public suspend fun fieldMapping(argument: suspend KnowledgeBasePineconeFieldMappingArgsBuilder.() -> Unit) {
val toBeMapped = KnowledgeBasePineconeFieldMappingArgsBuilder().applySuspend {
argument()
}.build()
val mapped = of(toBeMapped)
this.fieldMapping = mapped
}
/**
* @param value The namespace to be used to write new data to your database.
*/
@JvmName("cvywafdwhsdkqrsn")
public suspend fun namespace(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.namespace = mapped
}
internal fun build(): KnowledgeBasePineconeConfigurationArgs =
KnowledgeBasePineconeConfigurationArgs(
connectionString = connectionString ?: throw PulumiNullFieldException("connectionString"),
credentialsSecretArn = credentialsSecretArn ?: throw
PulumiNullFieldException("credentialsSecretArn"),
fieldMapping = fieldMapping ?: throw PulumiNullFieldException("fieldMapping"),
namespace = namespace,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy