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

com.pulumi.aws.imagebuilder.kotlin.inputs.LifecyclePolicyPolicyDetailExclusionRulesAmisArgs.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.LifecyclePolicyPolicyDetailExclusionRulesAmisArgs.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.Boolean
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 isPublic Configures whether public AMIs are excluded from the lifecycle action.
 * @property lastLaunched Specifies configuration details for Image Builder to exclude the most recent resources from lifecycle actions. Detailed below.
 * @property regions Configures AWS Regions that are excluded from the lifecycle action.
 * @property sharedAccounts Specifies AWS accounts whose resources are excluded from the lifecycle action.
 * @property tagMap Lists tags that should be excluded from lifecycle actions for the AMIs that have them.
 */
public data class LifecyclePolicyPolicyDetailExclusionRulesAmisArgs(
    public val isPublic: Output? = null,
    public val lastLaunched: Output? =
        null,
    public val regions: Output>? = null,
    public val sharedAccounts: Output>? = null,
    public val tagMap: Output>? = null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.aws.imagebuilder.inputs.LifecyclePolicyPolicyDetailExclusionRulesAmisArgs =
        com.pulumi.aws.imagebuilder.inputs.LifecyclePolicyPolicyDetailExclusionRulesAmisArgs.builder()
            .isPublic(isPublic?.applyValue({ args0 -> args0 }))
            .lastLaunched(lastLaunched?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .regions(regions?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .sharedAccounts(sharedAccounts?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .tagMap(
                tagMap?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.key.to(args0.value)
                    }).toMap()
                }),
            ).build()
}

/**
 * Builder for [LifecyclePolicyPolicyDetailExclusionRulesAmisArgs].
 */
@PulumiTagMarker
public class LifecyclePolicyPolicyDetailExclusionRulesAmisArgsBuilder internal constructor() {
    private var isPublic: Output? = null

    private var lastLaunched: Output? =
        null

    private var regions: Output>? = null

    private var sharedAccounts: Output>? = null

    private var tagMap: Output>? = null

    /**
     * @param value Configures whether public AMIs are excluded from the lifecycle action.
     */
    @JvmName("waixtnxknxuqvofs")
    public suspend fun isPublic(`value`: Output) {
        this.isPublic = value
    }

    /**
     * @param value Specifies configuration details for Image Builder to exclude the most recent resources from lifecycle actions. Detailed below.
     */
    @JvmName("hvwlctrthhbslktj")
    public suspend fun lastLaunched(`value`: Output) {
        this.lastLaunched = value
    }

    /**
     * @param value Configures AWS Regions that are excluded from the lifecycle action.
     */
    @JvmName("sacrercqcftjuwws")
    public suspend fun regions(`value`: Output>) {
        this.regions = value
    }

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

    /**
     * @param values Configures AWS Regions that are excluded from the lifecycle action.
     */
    @JvmName("tufwcnslkqoawfss")
    public suspend fun regions(values: List>) {
        this.regions = Output.all(values)
    }

    /**
     * @param value Specifies AWS accounts whose resources are excluded from the lifecycle action.
     */
    @JvmName("ljablrnfltfnncbl")
    public suspend fun sharedAccounts(`value`: Output>) {
        this.sharedAccounts = value
    }

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

    /**
     * @param values Specifies AWS accounts whose resources are excluded from the lifecycle action.
     */
    @JvmName("nfpqrceiwuxsvrne")
    public suspend fun sharedAccounts(values: List>) {
        this.sharedAccounts = Output.all(values)
    }

    /**
     * @param value Lists tags that should be excluded from lifecycle actions for the AMIs that have them.
     */
    @JvmName("wiowaukpnvmcbdpi")
    public suspend fun tagMap(`value`: Output>) {
        this.tagMap = value
    }

    /**
     * @param value Configures whether public AMIs are excluded from the lifecycle action.
     */
    @JvmName("jhbruurmttbyceew")
    public suspend fun isPublic(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.isPublic = mapped
    }

    /**
     * @param value Specifies configuration details for Image Builder to exclude the most recent resources from lifecycle actions. Detailed below.
     */
    @JvmName("fyruwaqcrckbofmj")
    public suspend fun lastLaunched(`value`: LifecyclePolicyPolicyDetailExclusionRulesAmisLastLaunchedArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.lastLaunched = mapped
    }

    /**
     * @param argument Specifies configuration details for Image Builder to exclude the most recent resources from lifecycle actions. Detailed below.
     */
    @JvmName("oausvfhxdyrdupfq")
    public suspend fun lastLaunched(argument: suspend LifecyclePolicyPolicyDetailExclusionRulesAmisLastLaunchedArgsBuilder.() -> Unit) {
        val toBeMapped =
            LifecyclePolicyPolicyDetailExclusionRulesAmisLastLaunchedArgsBuilder().applySuspend {
                argument()
            }.build()
        val mapped = of(toBeMapped)
        this.lastLaunched = mapped
    }

    /**
     * @param value Configures AWS Regions that are excluded from the lifecycle action.
     */
    @JvmName("ogtfqaauufjdanfu")
    public suspend fun regions(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.regions = mapped
    }

    /**
     * @param values Configures AWS Regions that are excluded from the lifecycle action.
     */
    @JvmName("qifgmbwqthuupytl")
    public suspend fun regions(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.regions = mapped
    }

    /**
     * @param value Specifies AWS accounts whose resources are excluded from the lifecycle action.
     */
    @JvmName("mhssnuxxkiuvnstb")
    public suspend fun sharedAccounts(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.sharedAccounts = mapped
    }

    /**
     * @param values Specifies AWS accounts whose resources are excluded from the lifecycle action.
     */
    @JvmName("mjyrohoywfqkctmr")
    public suspend fun sharedAccounts(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.sharedAccounts = mapped
    }

    /**
     * @param value Lists tags that should be excluded from lifecycle actions for the AMIs that have them.
     */
    @JvmName("vrblaysgmenkbiot")
    public suspend fun tagMap(`value`: Map?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tagMap = mapped
    }

    /**
     * @param values Lists tags that should be excluded from lifecycle actions for the AMIs that have them.
     */
    @JvmName("qmdboaivvicmfgci")
    public fun tagMap(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tagMap = mapped
    }

    internal fun build(): LifecyclePolicyPolicyDetailExclusionRulesAmisArgs =
        LifecyclePolicyPolicyDetailExclusionRulesAmisArgs(
            isPublic = isPublic,
            lastLaunched = lastLaunched,
            regions = regions,
            sharedAccounts = sharedAccounts,
            tagMap = tagMap,
        )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy