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

com.pulumi.awsnative.bedrock.kotlin.outputs.PromptVariant.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.bedrock.kotlin.outputs

import com.pulumi.awsnative.bedrock.kotlin.enums.PromptTemplateType
import kotlin.String
import kotlin.Suppress

/**
 * Prompt variant
 * @property inferenceConfiguration Contains inference configurations for the prompt variant.
 * @property modelId ARN or name of a Bedrock model.
 * @property name Name for a variant.
 * @property templateConfiguration Contains configurations for the prompt template.
 * @property templateType The type of prompt template to use.
 */
public data class PromptVariant(
    public val inferenceConfiguration: PromptInferenceConfigurationProperties? = null,
    public val modelId: String? = null,
    public val name: String,
    public val templateConfiguration: PromptTemplateConfigurationProperties? = null,
    public val templateType: PromptTemplateType,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.awsnative.bedrock.outputs.PromptVariant): PromptVariant = PromptVariant(
            inferenceConfiguration = javaType.inferenceConfiguration().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.bedrock.kotlin.outputs.PromptInferenceConfigurationProperties.Companion.toKotlin(args0)
                })
            }).orElse(null),
            modelId = javaType.modelId().map({ args0 -> args0 }).orElse(null),
            name = javaType.name(),
            templateConfiguration = javaType.templateConfiguration().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.bedrock.kotlin.outputs.PromptTemplateConfigurationProperties.Companion.toKotlin(args0)
                })
            }).orElse(null),
            templateType = javaType.templateType().let({ args0 ->
                com.pulumi.awsnative.bedrock.kotlin.enums.PromptTemplateType.Companion.toKotlin(args0)
            }),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy