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

com.pulumi.aws.bedrock.kotlin.inputs.AgentKnowledgeBaseStorageConfigurationRdsConfigurationArgs.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.AgentKnowledgeBaseStorageConfigurationRdsConfigurationArgs.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 credentialsSecretArn ARN of the secret that you created in AWS Secrets Manager that is linked to your Amazon RDS database.
 * @property databaseName Name of your Amazon RDS database.
 * @property fieldMapping Names of the fields to which to map information about the vector store. This block supports the following arguments:
 * @property resourceArn ARN of the vector store.
 * @property tableName Name of the table in the database.
 */
public data class AgentKnowledgeBaseStorageConfigurationRdsConfigurationArgs(
    public val credentialsSecretArn: Output,
    public val databaseName: Output,
    public val fieldMapping: Output? = null,
    public val resourceArn: Output,
    public val tableName: Output,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.aws.bedrock.inputs.AgentKnowledgeBaseStorageConfigurationRdsConfigurationArgs =
        com.pulumi.aws.bedrock.inputs.AgentKnowledgeBaseStorageConfigurationRdsConfigurationArgs.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 [AgentKnowledgeBaseStorageConfigurationRdsConfigurationArgs].
 */
@PulumiTagMarker
public class AgentKnowledgeBaseStorageConfigurationRdsConfigurationArgsBuilder 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 ARN of the secret that you created in AWS Secrets Manager that is linked to your Amazon RDS database.
     */
    @JvmName("cxsbdclqvkxpdfgb")
    public suspend fun credentialsSecretArn(`value`: Output) {
        this.credentialsSecretArn = value
    }

    /**
     * @param value Name of your Amazon RDS database.
     */
    @JvmName("bylqpacpqwvcgwgw")
    public suspend fun databaseName(`value`: Output) {
        this.databaseName = value
    }

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

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

    /**
     * @param value Name of the table in the database.
     */
    @JvmName("wtfegudticlctrcd")
    public suspend fun tableName(`value`: Output) {
        this.tableName = value
    }

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

    /**
     * @param value Name of your Amazon RDS database.
     */
    @JvmName("gouiipcytmkkakhp")
    public suspend fun databaseName(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.databaseName = mapped
    }

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

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

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

    /**
     * @param value Name of the table in the database.
     */
    @JvmName("ewetexdltukrcfeg")
    public suspend fun tableName(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tableName = mapped
    }

    internal fun build(): AgentKnowledgeBaseStorageConfigurationRdsConfigurationArgs =
        AgentKnowledgeBaseStorageConfigurationRdsConfigurationArgs(
            credentialsSecretArn = credentialsSecretArn ?: throw
                PulumiNullFieldException("credentialsSecretArn"),
            databaseName = databaseName ?: throw PulumiNullFieldException("databaseName"),
            fieldMapping = fieldMapping,
            resourceArn = resourceArn ?: throw PulumiNullFieldException("resourceArn"),
            tableName = tableName ?: throw PulumiNullFieldException("tableName"),
        )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy