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

com.pulumi.aws.imagebuilder.kotlin.inputs.LifecyclePolicyResourceSelectionRecipeArgs.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: 6.57.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.aws.imagebuilder.kotlin.inputs

import com.pulumi.aws.imagebuilder.inputs.LifecyclePolicyResourceSelectionRecipeArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 *
 * @property name The name of an Image Builder recipe that the lifecycle policy uses for resource selection.
 * @property semanticVersion The version of the Image Builder recipe specified by the name field.
 */
public data class LifecyclePolicyResourceSelectionRecipeArgs(
    public val name: Output,
    public val semanticVersion: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.aws.imagebuilder.inputs.LifecyclePolicyResourceSelectionRecipeArgs =
        com.pulumi.aws.imagebuilder.inputs.LifecyclePolicyResourceSelectionRecipeArgs.builder()
            .name(name.applyValue({ args0 -> args0 }))
            .semanticVersion(semanticVersion.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [LifecyclePolicyResourceSelectionRecipeArgs].
 */
@PulumiTagMarker
public class LifecyclePolicyResourceSelectionRecipeArgsBuilder internal constructor() {
    private var name: Output? = null

    private var semanticVersion: Output? = null

    /**
     * @param value The name of an Image Builder recipe that the lifecycle policy uses for resource selection.
     */
    @JvmName("qpfhmwqpsprhrpyp")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value The version of the Image Builder recipe specified by the name field.
     */
    @JvmName("jyyxgovqcoseautn")
    public suspend fun semanticVersion(`value`: Output) {
        this.semanticVersion = value
    }

    /**
     * @param value The name of an Image Builder recipe that the lifecycle policy uses for resource selection.
     */
    @JvmName("tiwykctahqqvybnx")
    public suspend fun name(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.name = mapped
    }

    /**
     * @param value The version of the Image Builder recipe specified by the name field.
     */
    @JvmName("ieidyrhftrlgqkcf")
    public suspend fun semanticVersion(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.semanticVersion = mapped
    }

    internal fun build(): LifecyclePolicyResourceSelectionRecipeArgs =
        LifecyclePolicyResourceSelectionRecipeArgs(
            name = name ?: throw PulumiNullFieldException("name"),
            semanticVersion = semanticVersion ?: throw PulumiNullFieldException("semanticVersion"),
        )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy