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

com.pulumi.awsnative.imagebuilder.kotlin.inputs.LifecyclePolicyExclusionRulesArgs.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.imagebuilder.kotlin.inputs

import com.pulumi.awsnative.imagebuilder.inputs.LifecyclePolicyExclusionRulesArgs.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.Map
import kotlin.jvm.JvmName

/**
 * The exclusion rules to apply of the policy detail.
 * @property amis Lists configuration values that apply to AMIs that Image Builder should exclude from the lifecycle action.
 * @property tagMap The Image Builder tags to filter on.
 */
public data class LifecyclePolicyExclusionRulesArgs(
    public val amis: Output? = null,
    public val tagMap: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.imagebuilder.inputs.LifecyclePolicyExclusionRulesArgs = com.pulumi.awsnative.imagebuilder.inputs.LifecyclePolicyExclusionRulesArgs.builder()
        .amis(amis?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
        .tagMap(
            tagMap?.applyValue({ args0 ->
                args0.map({ args0 ->
                    args0.key.to(args0.value)
                }).toMap()
            }),
        ).build()
}

/**
 * Builder for [LifecyclePolicyExclusionRulesArgs].
 */
@PulumiTagMarker
public class LifecyclePolicyExclusionRulesArgsBuilder internal constructor() {
    private var amis: Output? = null

    private var tagMap: Output>? = null

    /**
     * @param value Lists configuration values that apply to AMIs that Image Builder should exclude from the lifecycle action.
     */
    @JvmName("mfmghaniwptjdhkg")
    public suspend fun amis(`value`: Output) {
        this.amis = value
    }

    /**
     * @param value The Image Builder tags to filter on.
     */
    @JvmName("mrldrjmhxxthgyav")
    public suspend fun tagMap(`value`: Output>) {
        this.tagMap = value
    }

    /**
     * @param value Lists configuration values that apply to AMIs that Image Builder should exclude from the lifecycle action.
     */
    @JvmName("hkwvhyxffqnmvamv")
    public suspend fun amis(`value`: LifecyclePolicyAmiExclusionRulesArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.amis = mapped
    }

    /**
     * @param argument Lists configuration values that apply to AMIs that Image Builder should exclude from the lifecycle action.
     */
    @JvmName("irpodolcavowstbo")
    public suspend fun amis(argument: suspend LifecyclePolicyAmiExclusionRulesArgsBuilder.() -> Unit) {
        val toBeMapped = LifecyclePolicyAmiExclusionRulesArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.amis = mapped
    }

    /**
     * @param value The Image Builder tags to filter on.
     */
    @JvmName("jojrwiyyjrcqmgpw")
    public suspend fun tagMap(`value`: Map?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tagMap = mapped
    }

    /**
     * @param values The Image Builder tags to filter on.
     */
    @JvmName("kwjkdfpogdrqewjs")
    public fun tagMap(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tagMap = mapped
    }

    internal fun build(): LifecyclePolicyExclusionRulesArgs = LifecyclePolicyExclusionRulesArgs(
        amis = amis,
        tagMap = tagMap,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy