
com.pulumi.awsnative.bedrock.kotlin.outputs.GetPromptResult.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-aws-native-kotlin Show documentation
Show all versions of pulumi-aws-native-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@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
* @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