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

com.pulumi.awsnative.cloudformation.kotlin.HookDefaultVersionArgs.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 1.24.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.cloudformation.kotlin

import com.pulumi.awsnative.cloudformation.HookDefaultVersionArgs.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

/**
 * Set a version as default version for a hook in CloudFormation Registry.
 * ## Example Usage
 * ### Example
 * No Java example available.
 * ### Example
 * No Java example available.
 * ### Example
 * No Java example available.
 * ### Example
 * No Java example available.
 * @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 hook to set as the default.
 */
public data class HookDefaultVersionArgs(
    public val typeName: Output? = null,
    public val typeVersionArn: Output? = null,
    public val versionId: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.cloudformation.HookDefaultVersionArgs =
        com.pulumi.awsnative.cloudformation.HookDefaultVersionArgs.builder()
            .typeName(typeName?.applyValue({ args0 -> args0 }))
            .typeVersionArn(typeVersionArn?.applyValue({ args0 -> args0 }))
            .versionId(versionId?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [HookDefaultVersionArgs].
 */
@PulumiTagMarker
public class HookDefaultVersionArgsBuilder 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("mhxhkgxtacdrhxjg")
    public suspend fun typeName(`value`: Output) {
        this.typeName = value
    }

    /**
     * @param value The Amazon Resource Name (ARN) of the type version.
     */
    @JvmName("ogqmegeunkgbghcm")
    public suspend fun typeVersionArn(`value`: Output) {
        this.typeVersionArn = value
    }

    /**
     * @param value The ID of an existing version of the hook to set as the default.
     */
    @JvmName("kdwkxwbglymhgfja")
    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("pyqrwfybsblbwkmv")
    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("vgvnatfqkicrmybh")
    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 hook to set as the default.
     */
    @JvmName("enysaoeighvhcire")
    public suspend fun versionId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.versionId = mapped
    }

    internal fun build(): HookDefaultVersionArgs = HookDefaultVersionArgs(
        typeName = typeName,
        typeVersionArn = typeVersionArn,
        versionId = versionId,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy