com.pulumi.aws.networkfirewall.kotlin.inputs.RuleGroupRuleGroupRulesSourceStatefulRuleArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-aws-kotlin Show documentation
Show all versions of pulumi-aws-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@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
© 2015 - 2024 Weber Informatics LLC | Privacy Policy