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

com.pulumi.awsnative.bedrock.kotlin.outputs.GetPromptResult.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 resource possibly with a version
 * @property createdAt Time Stamp.
 * @property customerEncryptionKeyArn A KMS key ARN
 * @property defaultVariant Name for a variant.
 * @property description Name for a prompt resource.
 * @property id Identifier for a Prompt
 * @property name Name for a prompt resource.
 * @property tags Metadata that you can assign to a resource as key-value pairs. For more information, see the following resources:
 * - [Tag naming limits and requirements](https://docs.aws.amazon.com/tag-editor/latest/userguide/tagging.html#tag-conventions)
 * - [Tagging best practices](https://docs.aws.amazon.com/tag-editor/latest/userguide/tagging.html#tag-best-practices)
 * @property updatedAt Time Stamp.
 * @property variants List of prompt variants
 * @property version Draft Version.
 */
public data class GetPromptResult(
    public val arn: String? = null,
    public val createdAt: String? = null,
    public val customerEncryptionKeyArn: String? = null,
    public val defaultVariant: String? = null,
    public val description: String? = null,
    public val id: String? = null,
    public val name: 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.GetPromptResult): GetPromptResult = GetPromptResult(
            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),
            description = javaType.description().map({ args0 -> args0 }).orElse(null),
            id = javaType.id().map({ args0 -> args0 }).orElse(null),
            name = javaType.name().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.PromptVariant.Companion.toKotlin(args0)
                })
            }),
            version = javaType.version().map({ args0 -> args0 }).orElse(null),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy