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

com.pulumi.aws.networkfirewall.kotlin.inputs.RuleGroupRuleGroupRulesSourceStatefulRuleArgs.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.RuleGroupRuleGroupRulesSourceStatefulRuleArgs.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.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property action Action to take with packets in a traffic flow when the flow matches the stateful rule criteria. For all actions, AWS Network Firewall performs the specified action and discontinues stateful inspection of the traffic flow. Valid values: `ALERT`, `DROP`, `PASS`, or `REJECT`.
 * @property header A configuration block containing the stateful 5-tuple inspection criteria for the rule, used to inspect traffic flows. See Header below for details.
 * @property ruleOptions Set of configuration blocks containing additional settings for a stateful rule. See Rule Option below for details.
 */
public data class RuleGroupRuleGroupRulesSourceStatefulRuleArgs(
    public val action: Output,
    public val `header`: Output,
    public val ruleOptions: Output>,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.aws.networkfirewall.inputs.RuleGroupRuleGroupRulesSourceStatefulRuleArgs =
        com.pulumi.aws.networkfirewall.inputs.RuleGroupRuleGroupRulesSourceStatefulRuleArgs.builder()
            .action(action.applyValue({ args0 -> args0 }))
            .`header`(`header`.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .ruleOptions(
                ruleOptions.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

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

    private var `header`: Output? = null

    private var ruleOptions: Output>? =
        null

    /**
     * @param value Action to take with packets in a traffic flow when the flow matches the stateful rule criteria. For all actions, AWS Network Firewall performs the specified action and discontinues stateful inspection of the traffic flow. Valid values: `ALERT`, `DROP`, `PASS`, or `REJECT`.
     */
    @JvmName("ybrcvfdykrmitcmi")
    public suspend fun action(`value`: Output) {
        this.action = value
    }

    /**
     * @param value A configuration block containing the stateful 5-tuple inspection criteria for the rule, used to inspect traffic flows. See Header below for details.
     */
    @JvmName("blpgcsvkpdyhkhor")
    public suspend fun `header`(`value`: Output) {
        this.`header` = value
    }

    /**
     * @param value Set of configuration blocks containing additional settings for a stateful rule. See Rule Option below for details.
     */
    @JvmName("grbcvrajiuepheoq")
    public suspend fun ruleOptions(`value`: Output>) {
        this.ruleOptions = value
    }

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

    /**
     * @param values Set of configuration blocks containing additional settings for a stateful rule. See Rule Option below for details.
     */
    @JvmName("vupetkxjsnaqjqmy")
    public suspend fun ruleOptions(values: List>) {
        this.ruleOptions = Output.all(values)
    }

    /**
     * @param value Action to take with packets in a traffic flow when the flow matches the stateful rule criteria. For all actions, AWS Network Firewall performs the specified action and discontinues stateful inspection of the traffic flow. Valid values: `ALERT`, `DROP`, `PASS`, or `REJECT`.
     */
    @JvmName("oqlhemhcjqqirhvl")
    public suspend fun action(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.action = mapped
    }

    /**
     * @param value A configuration block containing the stateful 5-tuple inspection criteria for the rule, used to inspect traffic flows. See Header below for details.
     */
    @JvmName("mopksxxnmkecirbw")
    public suspend fun `header`(`value`: RuleGroupRuleGroupRulesSourceStatefulRuleHeaderArgs) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.`header` = mapped
    }

    /**
     * @param argument A configuration block containing the stateful 5-tuple inspection criteria for the rule, used to inspect traffic flows. See Header below for details.
     */
    @JvmName("cklqtpvdultyjujc")
    public suspend fun `header`(argument: suspend RuleGroupRuleGroupRulesSourceStatefulRuleHeaderArgsBuilder.() -> Unit) {
        val toBeMapped = RuleGroupRuleGroupRulesSourceStatefulRuleHeaderArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.`header` = mapped
    }

    /**
     * @param value Set of configuration blocks containing additional settings for a stateful rule. See Rule Option below for details.
     */
    @JvmName("fridrdmbktjuyqoh")
    public suspend fun ruleOptions(`value`: List) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.ruleOptions = mapped
    }

    /**
     * @param argument Set of configuration blocks containing additional settings for a stateful rule. See Rule Option below for details.
     */
    @JvmName("ndeuqnwqsjwwfmoy")
    public suspend fun ruleOptions(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            RuleGroupRuleGroupRulesSourceStatefulRuleRuleOptionArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.ruleOptions = mapped
    }

    /**
     * @param argument Set of configuration blocks containing additional settings for a stateful rule. See Rule Option below for details.
     */
    @JvmName("aecurmnpgclakagv")
    public suspend fun ruleOptions(vararg argument: suspend RuleGroupRuleGroupRulesSourceStatefulRuleRuleOptionArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            RuleGroupRuleGroupRulesSourceStatefulRuleRuleOptionArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.ruleOptions = mapped
    }

    /**
     * @param argument Set of configuration blocks containing additional settings for a stateful rule. See Rule Option below for details.
     */
    @JvmName("pjnffpbiwxechjmc")
    public suspend fun ruleOptions(argument: suspend RuleGroupRuleGroupRulesSourceStatefulRuleRuleOptionArgsBuilder.() -> Unit) {
        val toBeMapped =
            listOf(
                RuleGroupRuleGroupRulesSourceStatefulRuleRuleOptionArgsBuilder().applySuspend {
                    argument()
                }.build(),
            )
        val mapped = of(toBeMapped)
        this.ruleOptions = mapped
    }

    /**
     * @param values Set of configuration blocks containing additional settings for a stateful rule. See Rule Option below for details.
     */
    @JvmName("vrwwkjqvempvhrbg")
    public suspend fun ruleOptions(vararg values: RuleGroupRuleGroupRulesSourceStatefulRuleRuleOptionArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.ruleOptions = mapped
    }

    internal fun build(): RuleGroupRuleGroupRulesSourceStatefulRuleArgs =
        RuleGroupRuleGroupRulesSourceStatefulRuleArgs(
            action = action ?: throw PulumiNullFieldException("action"),
            `header` = `header` ?: throw PulumiNullFieldException("header"),
            ruleOptions = ruleOptions ?: throw PulumiNullFieldException("ruleOptions"),
        )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy