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

com.pulumi.aws.bedrock.kotlin.inputs.AgentKnowledgeBaseStorageConfigurationOpensearchServerlessConfigurationArgs.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.AgentKnowledgeBaseStorageConfigurationOpensearchServerlessConfigurationArgs.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 collectionArn ARN of the OpenSearch Service vector store.
 * @property fieldMapping The names of the fields to which to map information about the vector store. This block supports the following arguments:
 * @property vectorIndexName Name of the vector store.
 */
public data class AgentKnowledgeBaseStorageConfigurationOpensearchServerlessConfigurationArgs(
    public val collectionArn: Output,
    public val fieldMapping: Output? =
        null,
    public val vectorIndexName: Output,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.aws.bedrock.inputs.AgentKnowledgeBaseStorageConfigurationOpensearchServerlessConfigurationArgs =
        com.pulumi.aws.bedrock.inputs.AgentKnowledgeBaseStorageConfigurationOpensearchServerlessConfigurationArgs.builder()
            .collectionArn(collectionArn.applyValue({ args0 -> args0 }))
            .fieldMapping(fieldMapping?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .vectorIndexName(vectorIndexName.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [AgentKnowledgeBaseStorageConfigurationOpensearchServerlessConfigurationArgs].
 */
@PulumiTagMarker
public class AgentKnowledgeBaseStorageConfigurationOpensearchServerlessConfigurationArgsBuilder
internal constructor() {
    private var collectionArn: Output? = null

    private var fieldMapping:
        Output? =
        null

    private var vectorIndexName: Output? = null

    /**
     * @param value ARN of the OpenSearch Service vector store.
     */
    @JvmName("jdltavjeqnfejhpg")
    public suspend fun collectionArn(`value`: Output) {
        this.collectionArn = value
    }

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

    /**
     * @param value Name of the vector store.
     */
    @JvmName("votvwxiswwkouxgk")
    public suspend fun vectorIndexName(`value`: Output) {
        this.vectorIndexName = value
    }

    /**
     * @param value ARN of the OpenSearch Service vector store.
     */
    @JvmName("lrsjngyktlxileqm")
    public suspend fun collectionArn(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.collectionArn = mapped
    }

    /**
     * @param value The names of the fields to which to map information about the vector store. This block supports the following arguments:
     */
    @JvmName("gcxsjeeruscpanwt")
    public suspend fun fieldMapping(`value`: AgentKnowledgeBaseStorageConfigurationOpensearchServerlessConfigurationFieldMappingArgs?) {
        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("sxfhuaxflobgorcm")
    public suspend fun fieldMapping(argument: suspend AgentKnowledgeBaseStorageConfigurationOpensearchServerlessConfigurationFieldMappingArgsBuilder.() -> Unit) {
        val toBeMapped =
            AgentKnowledgeBaseStorageConfigurationOpensearchServerlessConfigurationFieldMappingArgsBuilder().applySuspend {
                argument()
            }.build()
        val mapped = of(toBeMapped)
        this.fieldMapping = mapped
    }

    /**
     * @param value Name of the vector store.
     */
    @JvmName("ejnywcdlfdnxptwy")
    public suspend fun vectorIndexName(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.vectorIndexName = mapped
    }

    internal fun build(): AgentKnowledgeBaseStorageConfigurationOpensearchServerlessConfigurationArgs = AgentKnowledgeBaseStorageConfigurationOpensearchServerlessConfigurationArgs(
        collectionArn = collectionArn ?: throw PulumiNullFieldException("collectionArn"),
        fieldMapping = fieldMapping,
        vectorIndexName = vectorIndexName ?: throw PulumiNullFieldException("vectorIndexName"),
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy