![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.awsnative.bedrock.kotlin.inputs.KnowledgeBaseRdsConfigurationArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.bedrock.kotlin.inputs
import com.pulumi.awsnative.bedrock.inputs.KnowledgeBaseRdsConfigurationArgs.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 details about the storage configuration of the knowledge base in Amazon RDS. For more information, see Create a vector index in Amazon RDS.
* @property credentialsSecretArn The ARN of the secret that you created in AWS Secrets Manager that is linked to your Amazon RDS database.
* @property databaseName The name of your Amazon RDS database.
* @property fieldMapping Contains the names of the fields to which to map information about the vector store.
* @property resourceArn The ARN of the vector store.
* @property tableName The name of the table in the database.
*/
public data class KnowledgeBaseRdsConfigurationArgs(
public val credentialsSecretArn: Output,
public val databaseName: Output,
public val fieldMapping: Output,
public val resourceArn: Output,
public val tableName: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.bedrock.inputs.KnowledgeBaseRdsConfigurationArgs =
com.pulumi.awsnative.bedrock.inputs.KnowledgeBaseRdsConfigurationArgs.builder()
.credentialsSecretArn(credentialsSecretArn.applyValue({ args0 -> args0 }))
.databaseName(databaseName.applyValue({ args0 -> args0 }))
.fieldMapping(fieldMapping.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.resourceArn(resourceArn.applyValue({ args0 -> args0 }))
.tableName(tableName.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [KnowledgeBaseRdsConfigurationArgs].
*/
@PulumiTagMarker
public class KnowledgeBaseRdsConfigurationArgsBuilder internal constructor() {
private var credentialsSecretArn: Output? = null
private var databaseName: Output? = null
private var fieldMapping: Output? = null
private var resourceArn: Output? = null
private var tableName: Output? = null
/**
* @param value The ARN of the secret that you created in AWS Secrets Manager that is linked to your Amazon RDS database.
*/
@JvmName("odgneckovwptnukb")
public suspend fun credentialsSecretArn(`value`: Output) {
this.credentialsSecretArn = value
}
/**
* @param value The name of your Amazon RDS database.
*/
@JvmName("igotjjsuggbcsuix")
public suspend fun databaseName(`value`: Output) {
this.databaseName = value
}
/**
* @param value Contains the names of the fields to which to map information about the vector store.
*/
@JvmName("corgjfcrbehxukbf")
public suspend fun fieldMapping(`value`: Output) {
this.fieldMapping = value
}
/**
* @param value The ARN of the vector store.
*/
@JvmName("prttswohcwjlocun")
public suspend fun resourceArn(`value`: Output) {
this.resourceArn = value
}
/**
* @param value The name of the table in the database.
*/
@JvmName("hgrqfqojfumlpbap")
public suspend fun tableName(`value`: Output) {
this.tableName = value
}
/**
* @param value The ARN of the secret that you created in AWS Secrets Manager that is linked to your Amazon RDS database.
*/
@JvmName("knawynrtrfuygdtr")
public suspend fun credentialsSecretArn(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.credentialsSecretArn = mapped
}
/**
* @param value The name of your Amazon RDS database.
*/
@JvmName("gstwjcwidpkufame")
public suspend fun databaseName(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.databaseName = mapped
}
/**
* @param value Contains the names of the fields to which to map information about the vector store.
*/
@JvmName("mjnnhmuuihklcgka")
public suspend fun fieldMapping(`value`: KnowledgeBaseRdsFieldMappingArgs) {
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("fueosiaqjarwwulo")
public suspend fun fieldMapping(argument: suspend KnowledgeBaseRdsFieldMappingArgsBuilder.() -> Unit) {
val toBeMapped = KnowledgeBaseRdsFieldMappingArgsBuilder().applySuspend { argument() }.build()
val mapped = of(toBeMapped)
this.fieldMapping = mapped
}
/**
* @param value The ARN of the vector store.
*/
@JvmName("trepygpxcaihninp")
public suspend fun resourceArn(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.resourceArn = mapped
}
/**
* @param value The name of the table in the database.
*/
@JvmName("xuexavrlqwnwpdnc")
public suspend fun tableName(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.tableName = mapped
}
internal fun build(): KnowledgeBaseRdsConfigurationArgs = KnowledgeBaseRdsConfigurationArgs(
credentialsSecretArn = credentialsSecretArn ?: throw
PulumiNullFieldException("credentialsSecretArn"),
databaseName = databaseName ?: throw PulumiNullFieldException("databaseName"),
fieldMapping = fieldMapping ?: throw PulumiNullFieldException("fieldMapping"),
resourceArn = resourceArn ?: throw PulumiNullFieldException("resourceArn"),
tableName = tableName ?: throw PulumiNullFieldException("tableName"),
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy