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

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

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

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

import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.collections.Map

/**
 *
 * @property arn ARN of a prompt version resource
 * @property createdAt Time Stamp.
 * @property customerEncryptionKeyArn A KMS key ARN
 * @property defaultVariant Name for a variant.
 * @property name Name for a prompt resource.
 * @property promptId Identifier for a Prompt
 * @property tags
 * @property updatedAt Time Stamp.
 * @property variants List of prompt variants
 * @property version Version.
 */
public data class GetPromptVersionResult(
    public val arn: String? = null,
    public val createdAt: String? = null,
    public val customerEncryptionKeyArn: String? = null,
    public val defaultVariant: String? = null,
    public val name: String? = null,
    public val promptId: String? = null,
    public val tags: Map? = null,
    public val updatedAt: String? = null,
    public val variants: List? = null,
    public val version: String? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.awsnative.bedrock.outputs.GetPromptVersionResult): GetPromptVersionResult = GetPromptVersionResult(
            arn = javaType.arn().map({ args0 -> args0 }).orElse(null),
            createdAt = javaType.createdAt().map({ args0 -> args0 }).orElse(null),
            customerEncryptionKeyArn = javaType.customerEncryptionKeyArn().map({ args0 -> args0 }).orElse(null),
            defaultVariant = javaType.defaultVariant().map({ args0 -> args0 }).orElse(null),
            name = javaType.name().map({ args0 -> args0 }).orElse(null),
            promptId = javaType.promptId().map({ args0 -> args0 }).orElse(null),
            tags = javaType.tags().map({ args0 -> args0.key.to(args0.value) }).toMap(),
            updatedAt = javaType.updatedAt().map({ args0 -> args0 }).orElse(null),
            variants = javaType.variants().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.bedrock.kotlin.outputs.PromptVersionPromptVariant.Companion.toKotlin(args0)
                })
            }),
            version = javaType.version().map({ args0 -> args0 }).orElse(null),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy