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

com.pulumi.awsnative.ssm.kotlin.inputs.PatchBaselineRuleGroupArgs.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: 0.122.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.ssm.kotlin.inputs

import com.pulumi.awsnative.ssm.inputs.PatchBaselineRuleGroupArgs.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.collections.List
import kotlin.jvm.JvmName

/**
 * A set of rules defining the approval rules for a patch baseline.
 * @property patchRules The rules that make up the rule group.
 */
public data class PatchBaselineRuleGroupArgs(
    public val patchRules: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.ssm.inputs.PatchBaselineRuleGroupArgs =
        com.pulumi.awsnative.ssm.inputs.PatchBaselineRuleGroupArgs.builder()
            .patchRules(
                patchRules?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

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

    /**
     * @param value The rules that make up the rule group.
     */
    @JvmName("llvyiwshsvibmswu")
    public suspend fun patchRules(`value`: Output>) {
        this.patchRules = value
    }

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

    /**
     * @param values The rules that make up the rule group.
     */
    @JvmName("seybyuojsmacihku")
    public suspend fun patchRules(values: List>) {
        this.patchRules = Output.all(values)
    }

    /**
     * @param value The rules that make up the rule group.
     */
    @JvmName("afhrcyfevryftftt")
    public suspend fun patchRules(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.patchRules = mapped
    }

    /**
     * @param argument The rules that make up the rule group.
     */
    @JvmName("xjmppbffhanoswfo")
    public suspend fun patchRules(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            PatchBaselineRuleArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.patchRules = mapped
    }

    /**
     * @param argument The rules that make up the rule group.
     */
    @JvmName("fnvbuwvsfmrsquku")
    public suspend fun patchRules(vararg argument: suspend PatchBaselineRuleArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            PatchBaselineRuleArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.patchRules = mapped
    }

    /**
     * @param argument The rules that make up the rule group.
     */
    @JvmName("guntqrsoxwcqimid")
    public suspend fun patchRules(argument: suspend PatchBaselineRuleArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(PatchBaselineRuleArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.patchRules = mapped
    }

    /**
     * @param values The rules that make up the rule group.
     */
    @JvmName("dghbddmybditjpsx")
    public suspend fun patchRules(vararg values: PatchBaselineRuleArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.patchRules = mapped
    }

    internal fun build(): PatchBaselineRuleGroupArgs = PatchBaselineRuleGroupArgs(
        patchRules = patchRules,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy