
com.pulumi.awsnative.bedrock.kotlin.inputs.KnowledgeBaseOpenSearchServerlessConfigurationArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.bedrock.kotlin.inputs
import com.pulumi.awsnative.bedrock.inputs.KnowledgeBaseOpenSearchServerlessConfigurationArgs.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 Amazon OpenSearch Service.
* @property collectionArn The ARN of the OpenSearch Service vector store.
* @property fieldMapping Contains the names of the fields to which to map information about the vector store.
* @property vectorIndexName The name of the vector store.
*/
public data class KnowledgeBaseOpenSearchServerlessConfigurationArgs(
public val collectionArn: Output,
public val fieldMapping: Output,
public val vectorIndexName: Output,
) :
ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.bedrock.inputs.KnowledgeBaseOpenSearchServerlessConfigurationArgs =
com.pulumi.awsnative.bedrock.inputs.KnowledgeBaseOpenSearchServerlessConfigurationArgs.builder()
.collectionArn(collectionArn.applyValue({ args0 -> args0 }))
.fieldMapping(fieldMapping.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.vectorIndexName(vectorIndexName.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [KnowledgeBaseOpenSearchServerlessConfigurationArgs].
*/
@PulumiTagMarker
public class KnowledgeBaseOpenSearchServerlessConfigurationArgsBuilder internal constructor() {
private var collectionArn: Output? = null
private var fieldMapping: Output? = null
private var vectorIndexName: Output? = null
/**
* @param value The ARN of the OpenSearch Service vector store.
*/
@JvmName("fidxrpqqkjbgmtuy")
public suspend fun collectionArn(`value`: Output) {
this.collectionArn = value
}
/**
* @param value Contains the names of the fields to which to map information about the vector store.
*/
@JvmName("baxvsohxgrwepqwc")
public suspend fun fieldMapping(`value`: Output) {
this.fieldMapping = value
}
/**
* @param value The name of the vector store.
*/
@JvmName("cfmfyqsrvakcmaed")
public suspend fun vectorIndexName(`value`: Output) {
this.vectorIndexName = value
}
/**
* @param value The ARN of the OpenSearch Service vector store.
*/
@JvmName("yjthevqxtrojtbct")
public suspend fun collectionArn(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.collectionArn = mapped
}
/**
* @param value Contains the names of the fields to which to map information about the vector store.
*/
@JvmName("kwuuqcdehpuuunna")
public suspend fun fieldMapping(`value`: KnowledgeBaseOpenSearchServerlessFieldMappingArgs) {
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("vfhgddibuunwaslu")
public suspend fun fieldMapping(argument: suspend KnowledgeBaseOpenSearchServerlessFieldMappingArgsBuilder.() -> Unit) {
val toBeMapped = KnowledgeBaseOpenSearchServerlessFieldMappingArgsBuilder().applySuspend {
argument()
}.build()
val mapped = of(toBeMapped)
this.fieldMapping = mapped
}
/**
* @param value The name of the vector store.
*/
@JvmName("rqofsvyyeiixujmq")
public suspend fun vectorIndexName(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.vectorIndexName = mapped
}
internal fun build(): KnowledgeBaseOpenSearchServerlessConfigurationArgs =
KnowledgeBaseOpenSearchServerlessConfigurationArgs(
collectionArn = collectionArn ?: throw PulumiNullFieldException("collectionArn"),
fieldMapping = fieldMapping ?: throw PulumiNullFieldException("fieldMapping"),
vectorIndexName = vectorIndexName ?: throw PulumiNullFieldException("vectorIndexName"),
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy