com.pulumi.awsnative.cloudformation.kotlin.ResourceDefaultVersionArgs.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.cloudformation.kotlin
import com.pulumi.awsnative.cloudformation.ResourceDefaultVersionArgs.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
/**
* The default version of a resource that has been registered in the CloudFormation Registry.
* @property typeName The name of the type being registered.
* We recommend that type names adhere to the following pattern: company_or_organization::service::type.
* @property typeVersionArn The Amazon Resource Name (ARN) of the type version.
* @property versionId The ID of an existing version of the resource to set as the default.
*/
public data class ResourceDefaultVersionArgs(
public val typeName: Output? = null,
public val typeVersionArn: Output? = null,
public val versionId: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.cloudformation.ResourceDefaultVersionArgs =
com.pulumi.awsnative.cloudformation.ResourceDefaultVersionArgs.builder()
.typeName(typeName?.applyValue({ args0 -> args0 }))
.typeVersionArn(typeVersionArn?.applyValue({ args0 -> args0 }))
.versionId(versionId?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [ResourceDefaultVersionArgs].
*/
@PulumiTagMarker
public class ResourceDefaultVersionArgsBuilder internal constructor() {
private var typeName: Output? = null
private var typeVersionArn: Output? = null
private var versionId: Output? = null
/**
* @param value The name of the type being registered.
* We recommend that type names adhere to the following pattern: company_or_organization::service::type.
*/
@JvmName("prmtbclfbwvvbepe")
public suspend fun typeName(`value`: Output) {
this.typeName = value
}
/**
* @param value The Amazon Resource Name (ARN) of the type version.
*/
@JvmName("aocsqfiulyhtxwip")
public suspend fun typeVersionArn(`value`: Output) {
this.typeVersionArn = value
}
/**
* @param value The ID of an existing version of the resource to set as the default.
*/
@JvmName("mwuecvfokpmafglk")
public suspend fun versionId(`value`: Output) {
this.versionId = value
}
/**
* @param value The name of the type being registered.
* We recommend that type names adhere to the following pattern: company_or_organization::service::type.
*/
@JvmName("trxoiwowlnnwhtyq")
public suspend fun typeName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.typeName = mapped
}
/**
* @param value The Amazon Resource Name (ARN) of the type version.
*/
@JvmName("ukcgsjiggrnpevqq")
public suspend fun typeVersionArn(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.typeVersionArn = mapped
}
/**
* @param value The ID of an existing version of the resource to set as the default.
*/
@JvmName("omgagkgvogrihosv")
public suspend fun versionId(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.versionId = mapped
}
internal fun build(): ResourceDefaultVersionArgs = ResourceDefaultVersionArgs(
typeName = typeName,
typeVersionArn = typeVersionArn,
versionId = versionId,
)
}