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

com.pulumi.aws.bedrock.kotlin.inputs.AgentDataSourceVectorIngestionConfigurationParsingConfigurationBedrockFoundationModelConfigurationArgs.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.AgentDataSourceVectorIngestionConfigurationParsingConfigurationBedrockFoundationModelConfigurationArgs.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 modelArn The ARN of the model used to parse documents
 * @property parsingPrompt Instructions for interpreting the contents of the document. See `parsing_prompt` block for details.
 */
public data class
AgentDataSourceVectorIngestionConfigurationParsingConfigurationBedrockFoundationModelConfigurationArgs(
    public val modelArn: Output,
    public val parsingPrompt: Output? =
        null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.aws.bedrock.inputs.AgentDataSourceVectorIngestionConfigurationParsingConfigurationBedrockFoundationModelConfigurationArgs =
        com.pulumi.aws.bedrock.inputs.AgentDataSourceVectorIngestionConfigurationParsingConfigurationBedrockFoundationModelConfigurationArgs.builder()
            .modelArn(modelArn.applyValue({ args0 -> args0 }))
            .parsingPrompt(parsingPrompt?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}

/**
 * Builder for [AgentDataSourceVectorIngestionConfigurationParsingConfigurationBedrockFoundationModelConfigurationArgs].
 */
@PulumiTagMarker
public class
AgentDataSourceVectorIngestionConfigurationParsingConfigurationBedrockFoundationModelConfigurationArgsBuilder
internal constructor() {
    private var modelArn: Output? = null

    private var parsingPrompt:
        Output? =
        null

    /**
     * @param value The ARN of the model used to parse documents
     */
    @JvmName("dcwpynrlumqbosok")
    public suspend fun modelArn(`value`: Output) {
        this.modelArn = value
    }

    /**
     * @param value Instructions for interpreting the contents of the document. See `parsing_prompt` block for details.
     */
    @JvmName("cgfoeraqkymcuflu")
    public suspend fun parsingPrompt(`value`: Output) {
        this.parsingPrompt = value
    }

    /**
     * @param value The ARN of the model used to parse documents
     */
    @JvmName("efsyffukybsxcfsd")
    public suspend fun modelArn(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.modelArn = mapped
    }

    /**
     * @param value Instructions for interpreting the contents of the document. See `parsing_prompt` block for details.
     */
    @JvmName("ioermeksbpgxdajn")
    public suspend fun parsingPrompt(`value`: AgentDataSourceVectorIngestionConfigurationParsingConfigurationBedrockFoundationModelConfigurationParsingPromptArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.parsingPrompt = mapped
    }

    /**
     * @param argument Instructions for interpreting the contents of the document. See `parsing_prompt` block for details.
     */
    @JvmName("ghspatmvuetvichu")
    public suspend fun parsingPrompt(argument: suspend AgentDataSourceVectorIngestionConfigurationParsingConfigurationBedrockFoundationModelConfigurationParsingPromptArgsBuilder.() -> Unit) {
        val toBeMapped =
            AgentDataSourceVectorIngestionConfigurationParsingConfigurationBedrockFoundationModelConfigurationParsingPromptArgsBuilder().applySuspend {
                argument()
            }.build()
        val mapped = of(toBeMapped)
        this.parsingPrompt = mapped
    }

    internal fun build(): AgentDataSourceVectorIngestionConfigurationParsingConfigurationBedrockFoundationModelConfigurationArgs =
        AgentDataSourceVectorIngestionConfigurationParsingConfigurationBedrockFoundationModelConfigurationArgs(
            modelArn = modelArn ?: throw PulumiNullFieldException("modelArn"),
            parsingPrompt = parsingPrompt,
        )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy