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

com.pulumi.aws.imagebuilder.kotlin.inputs.LifecyclePolicyResourceSelectionArgs.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.LifecyclePolicyResourceSelectionArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.collections.Map
import kotlin.jvm.JvmName

/**
 *
 * @property recipes A list of recipe that are used as selection criteria for the output images that the lifecycle policy applies to. Detailed below.
 * @property tagMap A list of tags that are used as selection criteria for the Image Builder image resources that the lifecycle policy applies to.
 */
public data class LifecyclePolicyResourceSelectionArgs(
    public val recipes: Output>? = null,
    public val tagMap: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.aws.imagebuilder.inputs.LifecyclePolicyResourceSelectionArgs =
        com.pulumi.aws.imagebuilder.inputs.LifecyclePolicyResourceSelectionArgs.builder()
            .recipes(
                recipes?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .tagMap(
                tagMap?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.key.to(args0.value)
                    }).toMap()
                }),
            ).build()
}

/**
 * Builder for [LifecyclePolicyResourceSelectionArgs].
 */
@PulumiTagMarker
public class LifecyclePolicyResourceSelectionArgsBuilder internal constructor() {
    private var recipes: Output>? = null

    private var tagMap: Output>? = null

    /**
     * @param value A list of recipe that are used as selection criteria for the output images that the lifecycle policy applies to. Detailed below.
     */
    @JvmName("ofpaylpcjlsbaxgk")
    public suspend fun recipes(`value`: Output>) {
        this.recipes = value
    }

    @JvmName("rqvcpooomlpuegxe")
    public suspend fun recipes(vararg values: Output) {
        this.recipes = Output.all(values.asList())
    }

    /**
     * @param values A list of recipe that are used as selection criteria for the output images that the lifecycle policy applies to. Detailed below.
     */
    @JvmName("gyjpsfdttxielfjk")
    public suspend fun recipes(values: List>) {
        this.recipes = Output.all(values)
    }

    /**
     * @param value A list of tags that are used as selection criteria for the Image Builder image resources that the lifecycle policy applies to.
     */
    @JvmName("dnmpiuqvdxuitkvw")
    public suspend fun tagMap(`value`: Output>) {
        this.tagMap = value
    }

    /**
     * @param value A list of recipe that are used as selection criteria for the output images that the lifecycle policy applies to. Detailed below.
     */
    @JvmName("edlmuqlwxoqugqkq")
    public suspend fun recipes(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.recipes = mapped
    }

    /**
     * @param argument A list of recipe that are used as selection criteria for the output images that the lifecycle policy applies to. Detailed below.
     */
    @JvmName("uqdipwfsmyvgfxna")
    public suspend fun recipes(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            LifecyclePolicyResourceSelectionRecipeArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.recipes = mapped
    }

    /**
     * @param argument A list of recipe that are used as selection criteria for the output images that the lifecycle policy applies to. Detailed below.
     */
    @JvmName("dwhgjbqllhtdybqd")
    public suspend fun recipes(vararg argument: suspend LifecyclePolicyResourceSelectionRecipeArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            LifecyclePolicyResourceSelectionRecipeArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.recipes = mapped
    }

    /**
     * @param argument A list of recipe that are used as selection criteria for the output images that the lifecycle policy applies to. Detailed below.
     */
    @JvmName("rhccnkyggjehodbq")
    public suspend fun recipes(argument: suspend LifecyclePolicyResourceSelectionRecipeArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            LifecyclePolicyResourceSelectionRecipeArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.recipes = mapped
    }

    /**
     * @param values A list of recipe that are used as selection criteria for the output images that the lifecycle policy applies to. Detailed below.
     */
    @JvmName("yilrfocprcdfklul")
    public suspend fun recipes(vararg values: LifecyclePolicyResourceSelectionRecipeArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.recipes = mapped
    }

    /**
     * @param value A list of tags that are used as selection criteria for the Image Builder image resources that the lifecycle policy applies to.
     */
    @JvmName("sfutvmhlxxxggvbp")
    public suspend fun tagMap(`value`: Map?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tagMap = mapped
    }

    /**
     * @param values A list of tags that are used as selection criteria for the Image Builder image resources that the lifecycle policy applies to.
     */
    @JvmName("pesuoytslxexpoyb")
    public fun tagMap(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tagMap = mapped
    }

    internal fun build(): LifecyclePolicyResourceSelectionArgs = LifecyclePolicyResourceSelectionArgs(
        recipes = recipes,
        tagMap = tagMap,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy