com.pulumi.awsnative.bedrock.kotlin.PromptVersionArgs.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
import com.pulumi.awsnative.bedrock.PromptVersionArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
* Definition of AWS::Bedrock::PromptVersion Resource Type
* @property description Description for a prompt version resource.
* @property promptArn ARN of a prompt resource possibly with a version
*/
public data class PromptVersionArgs(
public val description: Output? = null,
public val promptArn: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.bedrock.PromptVersionArgs =
com.pulumi.awsnative.bedrock.PromptVersionArgs.builder()
.description(description?.applyValue({ args0 -> args0 }))
.promptArn(promptArn?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [PromptVersionArgs].
*/
@PulumiTagMarker
public class PromptVersionArgsBuilder internal constructor() {
private var description: Output? = null
private var promptArn: Output? = null
/**
* @param value Description for a prompt version resource.
*/
@JvmName("ahtocvrelmcsrvyw")
public suspend fun description(`value`: Output) {
this.description = value
}
/**
* @param value ARN of a prompt resource possibly with a version
*/
@JvmName("rcjkmvinvohwssnq")
public suspend fun promptArn(`value`: Output) {
this.promptArn = value
}
/**
* @param value Description for a prompt version resource.
*/
@JvmName("ewhmhgegyjdvekbv")
public suspend fun description(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.description = mapped
}
/**
* @param value ARN of a prompt resource possibly with a version
*/
@JvmName("wqufnjpuwipuiopd")
public suspend fun promptArn(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.promptArn = mapped
}
internal fun build(): PromptVersionArgs = PromptVersionArgs(
description = description,
promptArn = promptArn,
)
}