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

com.pulumi.aws.imagebuilder.kotlin.inputs.LifecyclePolicyPolicyDetailArgs.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.LifecyclePolicyPolicyDetailArgs.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.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName

/**
 *
 * @property action Configuration details for the policy action.
 * @property exclusionRules Additional rules to specify resources that should be exempt from policy actions.
 * @property filter Specifies the resources that the lifecycle policy applies to.
 * The following arguments are optional:
 */
public data class LifecyclePolicyPolicyDetailArgs(
    public val action: Output? = null,
    public val exclusionRules: Output? = null,
    public val filter: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.aws.imagebuilder.inputs.LifecyclePolicyPolicyDetailArgs =
        com.pulumi.aws.imagebuilder.inputs.LifecyclePolicyPolicyDetailArgs.builder()
            .action(action?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .exclusionRules(exclusionRules?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .filter(filter?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}

/**
 * Builder for [LifecyclePolicyPolicyDetailArgs].
 */
@PulumiTagMarker
public class LifecyclePolicyPolicyDetailArgsBuilder internal constructor() {
    private var action: Output? = null

    private var exclusionRules: Output? = null

    private var filter: Output? = null

    /**
     * @param value Configuration details for the policy action.
     */
    @JvmName("pyvkfrrsnesxphas")
    public suspend fun action(`value`: Output) {
        this.action = value
    }

    /**
     * @param value Additional rules to specify resources that should be exempt from policy actions.
     */
    @JvmName("eictdetkbuqukojc")
    public suspend fun exclusionRules(`value`: Output) {
        this.exclusionRules = value
    }

    /**
     * @param value Specifies the resources that the lifecycle policy applies to.
     * The following arguments are optional:
     */
    @JvmName("skxjddcdpnygpdxc")
    public suspend fun filter(`value`: Output) {
        this.filter = value
    }

    /**
     * @param value Configuration details for the policy action.
     */
    @JvmName("bqojpmdqcdtbjovd")
    public suspend fun action(`value`: LifecyclePolicyPolicyDetailActionArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.action = mapped
    }

    /**
     * @param argument Configuration details for the policy action.
     */
    @JvmName("lsmshupiijxeonkg")
    public suspend fun action(argument: suspend LifecyclePolicyPolicyDetailActionArgsBuilder.() -> Unit) {
        val toBeMapped = LifecyclePolicyPolicyDetailActionArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.action = mapped
    }

    /**
     * @param value Additional rules to specify resources that should be exempt from policy actions.
     */
    @JvmName("qmmloehukwckawqq")
    public suspend fun exclusionRules(`value`: LifecyclePolicyPolicyDetailExclusionRulesArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.exclusionRules = mapped
    }

    /**
     * @param argument Additional rules to specify resources that should be exempt from policy actions.
     */
    @JvmName("rcjhvojkdnpxefkn")
    public suspend fun exclusionRules(argument: suspend LifecyclePolicyPolicyDetailExclusionRulesArgsBuilder.() -> Unit) {
        val toBeMapped = LifecyclePolicyPolicyDetailExclusionRulesArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.exclusionRules = mapped
    }

    /**
     * @param value Specifies the resources that the lifecycle policy applies to.
     * The following arguments are optional:
     */
    @JvmName("jfkvffbwacsusjcw")
    public suspend fun filter(`value`: LifecyclePolicyPolicyDetailFilterArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.filter = mapped
    }

    /**
     * @param argument Specifies the resources that the lifecycle policy applies to.
     * The following arguments are optional:
     */
    @JvmName("nksiecbkwbmgltnf")
    public suspend fun filter(argument: suspend LifecyclePolicyPolicyDetailFilterArgsBuilder.() -> Unit) {
        val toBeMapped = LifecyclePolicyPolicyDetailFilterArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.filter = mapped
    }

    internal fun build(): LifecyclePolicyPolicyDetailArgs = LifecyclePolicyPolicyDetailArgs(
        action = action,
        exclusionRules = exclusionRules,
        filter = filter,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy