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

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

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

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

import com.pulumi.awsnative.bedrock.kotlin.enums.PromptVersionPromptTemplateType
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 PromptVersionPromptVariant(
    public val inferenceConfiguration: PromptVersionPromptInferenceConfigurationProperties? = null,
    public val modelId: String? = null,
    public val name: String,
    public val templateConfiguration: PromptVersionPromptTemplateConfigurationProperties? = null,
    public val templateType: PromptVersionPromptTemplateType,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.awsnative.bedrock.outputs.PromptVersionPromptVariant): PromptVersionPromptVariant = PromptVersionPromptVariant(
            inferenceConfiguration = javaType.inferenceConfiguration().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.bedrock.kotlin.outputs.PromptVersionPromptInferenceConfigurationProperties.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.PromptVersionPromptTemplateConfigurationProperties.Companion.toKotlin(args0)
                })
            }).orElse(null),
            templateType = javaType.templateType().let({ args0 ->
                com.pulumi.awsnative.bedrock.kotlin.enums.PromptVersionPromptTemplateType.Companion.toKotlin(args0)
            }),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy