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

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

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

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

import com.pulumi.aws.bedrock.inputs.AgentKnowledgeBaseStorageConfigurationPineconeConfigurationArgs.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 connectionString Endpoint URL for your index management page.
 * @property credentialsSecretArn ARN of the secret that you created in AWS Secrets Manager that is linked to your Pinecone API key.
 * @property fieldMapping The names of the fields to which to map information about the vector store. This block supports the following arguments:
 * @property namespace Namespace to be used to write new data to your database.
 */
public data class AgentKnowledgeBaseStorageConfigurationPineconeConfigurationArgs(
    public val connectionString: Output,
    public val credentialsSecretArn: Output,
    public val fieldMapping: Output? = null,
    public val namespace: Output? = null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.aws.bedrock.inputs.AgentKnowledgeBaseStorageConfigurationPineconeConfigurationArgs =
        com.pulumi.aws.bedrock.inputs.AgentKnowledgeBaseStorageConfigurationPineconeConfigurationArgs.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 [AgentKnowledgeBaseStorageConfigurationPineconeConfigurationArgs].
 */
@PulumiTagMarker
public class AgentKnowledgeBaseStorageConfigurationPineconeConfigurationArgsBuilder internal constructor() {
    private var connectionString: Output? = null

    private var credentialsSecretArn: Output? = null

    private var fieldMapping:
        Output? = null

    private var namespace: Output? = null

    /**
     * @param value Endpoint URL for your index management page.
     */
    @JvmName("fufjhytvcmleowqu")
    public suspend fun connectionString(`value`: Output) {
        this.connectionString = value
    }

    /**
     * @param value ARN of the secret that you created in AWS Secrets Manager that is linked to your Pinecone API key.
     */
    @JvmName("kqnktxjqxyaftfit")
    public suspend fun credentialsSecretArn(`value`: Output) {
        this.credentialsSecretArn = value
    }

    /**
     * @param value The names of the fields to which to map information about the vector store. This block supports the following arguments:
     */
    @JvmName("jhdtvkiyajtkliry")
    public suspend fun fieldMapping(`value`: Output) {
        this.fieldMapping = value
    }

    /**
     * @param value Namespace to be used to write new data to your database.
     */
    @JvmName("nlfbssttgaqgunif")
    public suspend fun namespace(`value`: Output) {
        this.namespace = value
    }

    /**
     * @param value Endpoint URL for your index management page.
     */
    @JvmName("rfosgmmikaielacf")
    public suspend fun connectionString(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.connectionString = mapped
    }

    /**
     * @param value ARN of the secret that you created in AWS Secrets Manager that is linked to your Pinecone API key.
     */
    @JvmName("ljharytndbitygiy")
    public suspend fun credentialsSecretArn(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.credentialsSecretArn = mapped
    }

    /**
     * @param value The names of the fields to which to map information about the vector store. This block supports the following arguments:
     */
    @JvmName("osrpckkecqjmbpjc")
    public suspend fun fieldMapping(`value`: AgentKnowledgeBaseStorageConfigurationPineconeConfigurationFieldMappingArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.fieldMapping = mapped
    }

    /**
     * @param argument The names of the fields to which to map information about the vector store. This block supports the following arguments:
     */
    @JvmName("khaqvdmnnitjnxyp")
    public suspend fun fieldMapping(argument: suspend AgentKnowledgeBaseStorageConfigurationPineconeConfigurationFieldMappingArgsBuilder.() -> Unit) {
        val toBeMapped =
            AgentKnowledgeBaseStorageConfigurationPineconeConfigurationFieldMappingArgsBuilder().applySuspend {
                argument()
            }.build()
        val mapped = of(toBeMapped)
        this.fieldMapping = mapped
    }

    /**
     * @param value Namespace to be used to write new data to your database.
     */
    @JvmName("jrxfvhqonxnpjjff")
    public suspend fun namespace(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.namespace = mapped
    }

    internal fun build(): AgentKnowledgeBaseStorageConfigurationPineconeConfigurationArgs =
        AgentKnowledgeBaseStorageConfigurationPineconeConfigurationArgs(
            connectionString = connectionString ?: throw PulumiNullFieldException("connectionString"),
            credentialsSecretArn = credentialsSecretArn ?: throw
                PulumiNullFieldException("credentialsSecretArn"),
            fieldMapping = fieldMapping,
            namespace = namespace,
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy