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

com.pulumi.aws.networkfirewall.kotlin.inputs.RuleGroupRuleGroupRulesSourceStatelessRulesAndCustomActionsArgs.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.networkfirewall.kotlin.inputs

import com.pulumi.aws.networkfirewall.inputs.RuleGroupRuleGroupRulesSourceStatelessRulesAndCustomActionsArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property customActions Set of configuration blocks containing custom action definitions that are available for use by the set of `stateless rule`. See Custom Action below for details.
 * @property statelessRules Set of configuration blocks containing the stateless rules for use in the stateless rule group. See Stateless Rule below for details.
 */
public data class RuleGroupRuleGroupRulesSourceStatelessRulesAndCustomActionsArgs(
    public val customActions: Output>? =
        null,
    public val statelessRules: Output>,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.aws.networkfirewall.inputs.RuleGroupRuleGroupRulesSourceStatelessRulesAndCustomActionsArgs =
        com.pulumi.aws.networkfirewall.inputs.RuleGroupRuleGroupRulesSourceStatelessRulesAndCustomActionsArgs.builder()
            .customActions(
                customActions?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .statelessRules(
                statelessRules.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

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

    private var statelessRules:
        Output>? =
        null

    /**
     * @param value Set of configuration blocks containing custom action definitions that are available for use by the set of `stateless rule`. See Custom Action below for details.
     */
    @JvmName("ssqcctxcrufytoos")
    public suspend fun customActions(`value`: Output>) {
        this.customActions = value
    }

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

    /**
     * @param values Set of configuration blocks containing custom action definitions that are available for use by the set of `stateless rule`. See Custom Action below for details.
     */
    @JvmName("hbwbestdlcmogbhq")
    public suspend fun customActions(values: List>) {
        this.customActions = Output.all(values)
    }

    /**
     * @param value Set of configuration blocks containing the stateless rules for use in the stateless rule group. See Stateless Rule below for details.
     */
    @JvmName("ihbbgjihqgehjdoy")
    public suspend fun statelessRules(`value`: Output>) {
        this.statelessRules = value
    }

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

    /**
     * @param values Set of configuration blocks containing the stateless rules for use in the stateless rule group. See Stateless Rule below for details.
     */
    @JvmName("npcgxwnuwuindbic")
    public suspend fun statelessRules(values: List>) {
        this.statelessRules = Output.all(values)
    }

    /**
     * @param value Set of configuration blocks containing custom action definitions that are available for use by the set of `stateless rule`. See Custom Action below for details.
     */
    @JvmName("rrllfuyokgtvafof")
    public suspend fun customActions(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.customActions = mapped
    }

    /**
     * @param argument Set of configuration blocks containing custom action definitions that are available for use by the set of `stateless rule`. See Custom Action below for details.
     */
    @JvmName("ogewjdgswbqlbfsr")
    public suspend fun customActions(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            RuleGroupRuleGroupRulesSourceStatelessRulesAndCustomActionsCustomActionArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.customActions = mapped
    }

    /**
     * @param argument Set of configuration blocks containing custom action definitions that are available for use by the set of `stateless rule`. See Custom Action below for details.
     */
    @JvmName("nmeqxbkjdystfrhc")
    public suspend fun customActions(vararg argument: suspend RuleGroupRuleGroupRulesSourceStatelessRulesAndCustomActionsCustomActionArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            RuleGroupRuleGroupRulesSourceStatelessRulesAndCustomActionsCustomActionArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.customActions = mapped
    }

    /**
     * @param argument Set of configuration blocks containing custom action definitions that are available for use by the set of `stateless rule`. See Custom Action below for details.
     */
    @JvmName("okpxujkfwoxkwjff")
    public suspend fun customActions(argument: suspend RuleGroupRuleGroupRulesSourceStatelessRulesAndCustomActionsCustomActionArgsBuilder.() -> Unit) {
        val toBeMapped =
            listOf(
                RuleGroupRuleGroupRulesSourceStatelessRulesAndCustomActionsCustomActionArgsBuilder().applySuspend
                    { argument() }.build(),
            )
        val mapped = of(toBeMapped)
        this.customActions = mapped
    }

    /**
     * @param values Set of configuration blocks containing custom action definitions that are available for use by the set of `stateless rule`. See Custom Action below for details.
     */
    @JvmName("xdbcthtocbervnyq")
    public suspend fun customActions(vararg values: RuleGroupRuleGroupRulesSourceStatelessRulesAndCustomActionsCustomActionArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.customActions = mapped
    }

    /**
     * @param value Set of configuration blocks containing the stateless rules for use in the stateless rule group. See Stateless Rule below for details.
     */
    @JvmName("hxucyacqognaykeb")
    public suspend fun statelessRules(`value`: List) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.statelessRules = mapped
    }

    /**
     * @param argument Set of configuration blocks containing the stateless rules for use in the stateless rule group. See Stateless Rule below for details.
     */
    @JvmName("avsmyjtlxnbwnswm")
    public suspend fun statelessRules(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            RuleGroupRuleGroupRulesSourceStatelessRulesAndCustomActionsStatelessRuleArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.statelessRules = mapped
    }

    /**
     * @param argument Set of configuration blocks containing the stateless rules for use in the stateless rule group. See Stateless Rule below for details.
     */
    @JvmName("wjaghnjarlxgjgbn")
    public suspend fun statelessRules(vararg argument: suspend RuleGroupRuleGroupRulesSourceStatelessRulesAndCustomActionsStatelessRuleArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            RuleGroupRuleGroupRulesSourceStatelessRulesAndCustomActionsStatelessRuleArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.statelessRules = mapped
    }

    /**
     * @param argument Set of configuration blocks containing the stateless rules for use in the stateless rule group. See Stateless Rule below for details.
     */
    @JvmName("xtqpuaegakecbttk")
    public suspend fun statelessRules(argument: suspend RuleGroupRuleGroupRulesSourceStatelessRulesAndCustomActionsStatelessRuleArgsBuilder.() -> Unit) {
        val toBeMapped =
            listOf(
                RuleGroupRuleGroupRulesSourceStatelessRulesAndCustomActionsStatelessRuleArgsBuilder().applySuspend
                    { argument() }.build(),
            )
        val mapped = of(toBeMapped)
        this.statelessRules = mapped
    }

    /**
     * @param values Set of configuration blocks containing the stateless rules for use in the stateless rule group. See Stateless Rule below for details.
     */
    @JvmName("wcgeiehvwunmgivb")
    public suspend fun statelessRules(vararg values: RuleGroupRuleGroupRulesSourceStatelessRulesAndCustomActionsStatelessRuleArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.statelessRules = mapped
    }

    internal fun build(): RuleGroupRuleGroupRulesSourceStatelessRulesAndCustomActionsArgs =
        RuleGroupRuleGroupRulesSourceStatelessRulesAndCustomActionsArgs(
            customActions = customActions,
            statelessRules = statelessRules ?: throw PulumiNullFieldException("statelessRules"),
        )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy