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

com.pulumi.awsnative.networkfirewall.kotlin.inputs.RuleGroupRulesSourceArgs.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.networkfirewall.kotlin.inputs

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

/**
 *
 * @property rulesSourceList Stateful inspection criteria for a domain list rule group.
 * @property rulesString Stateful inspection criteria, provided in Suricata compatible rules. Suricata is an open-source threat detection framework that includes a standard rule-based language for network traffic inspection.
 * These rules contain the inspection criteria and the action to take for traffic that matches the criteria, so this type of rule group doesn't have a separate action setting.
 * > You can't use the `priority` keyword if the `RuleOrder` option in `StatefulRuleOptions` is set to `STRICT_ORDER` .
 * @property statefulRules An array of individual stateful rules inspection criteria to be used together in a stateful rule group. Use this option to specify simple Suricata rules with protocol, source and destination, ports, direction, and rule options. For information about the Suricata `Rules` format, see [Rules Format](https://docs.aws.amazon.com/https://suricata.readthedocs.io/en/suricata-6.0.9/rules/intro.html) .
 * @property statelessRulesAndCustomActions Stateless inspection criteria to be used in a stateless rule group.
 */
public data class RuleGroupRulesSourceArgs(
    public val rulesSourceList: Output? = null,
    public val rulesString: Output? = null,
    public val statefulRules: Output>? = null,
    public val statelessRulesAndCustomActions: Output? =
        null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.networkfirewall.inputs.RuleGroupRulesSourceArgs =
        com.pulumi.awsnative.networkfirewall.inputs.RuleGroupRulesSourceArgs.builder()
            .rulesSourceList(rulesSourceList?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .rulesString(rulesString?.applyValue({ args0 -> args0 }))
            .statefulRules(
                statefulRules?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .statelessRulesAndCustomActions(
                statelessRulesAndCustomActions?.applyValue({ args0 ->
                    args0.let({ args0 -> args0.toJava() })
                }),
            ).build()
}

/**
 * Builder for [RuleGroupRulesSourceArgs].
 */
@PulumiTagMarker
public class RuleGroupRulesSourceArgsBuilder internal constructor() {
    private var rulesSourceList: Output? = null

    private var rulesString: Output? = null

    private var statefulRules: Output>? = null

    private var statelessRulesAndCustomActions: Output? =
        null

    /**
     * @param value Stateful inspection criteria for a domain list rule group.
     */
    @JvmName("ijjnddcrcvkrvmqe")
    public suspend fun rulesSourceList(`value`: Output) {
        this.rulesSourceList = value
    }

    /**
     * @param value Stateful inspection criteria, provided in Suricata compatible rules. Suricata is an open-source threat detection framework that includes a standard rule-based language for network traffic inspection.
     * These rules contain the inspection criteria and the action to take for traffic that matches the criteria, so this type of rule group doesn't have a separate action setting.
     * > You can't use the `priority` keyword if the `RuleOrder` option in `StatefulRuleOptions` is set to `STRICT_ORDER` .
     */
    @JvmName("umbucmunmlakteaa")
    public suspend fun rulesString(`value`: Output) {
        this.rulesString = value
    }

    /**
     * @param value An array of individual stateful rules inspection criteria to be used together in a stateful rule group. Use this option to specify simple Suricata rules with protocol, source and destination, ports, direction, and rule options. For information about the Suricata `Rules` format, see [Rules Format](https://docs.aws.amazon.com/https://suricata.readthedocs.io/en/suricata-6.0.9/rules/intro.html) .
     */
    @JvmName("icnydlpfvulfckwv")
    public suspend fun statefulRules(`value`: Output>) {
        this.statefulRules = value
    }

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

    /**
     * @param values An array of individual stateful rules inspection criteria to be used together in a stateful rule group. Use this option to specify simple Suricata rules with protocol, source and destination, ports, direction, and rule options. For information about the Suricata `Rules` format, see [Rules Format](https://docs.aws.amazon.com/https://suricata.readthedocs.io/en/suricata-6.0.9/rules/intro.html) .
     */
    @JvmName("bthmjqvckwxakbjb")
    public suspend fun statefulRules(values: List>) {
        this.statefulRules = Output.all(values)
    }

    /**
     * @param value Stateless inspection criteria to be used in a stateless rule group.
     */
    @JvmName("tglhqatceocjrpcm")
    public suspend fun statelessRulesAndCustomActions(`value`: Output) {
        this.statelessRulesAndCustomActions = value
    }

    /**
     * @param value Stateful inspection criteria for a domain list rule group.
     */
    @JvmName("esfdjqsaaxepmhto")
    public suspend fun rulesSourceList(`value`: RuleGroupRulesSourceListArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.rulesSourceList = mapped
    }

    /**
     * @param argument Stateful inspection criteria for a domain list rule group.
     */
    @JvmName("tmuxevljjmhgudvu")
    public suspend fun rulesSourceList(argument: suspend RuleGroupRulesSourceListArgsBuilder.() -> Unit) {
        val toBeMapped = RuleGroupRulesSourceListArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.rulesSourceList = mapped
    }

    /**
     * @param value Stateful inspection criteria, provided in Suricata compatible rules. Suricata is an open-source threat detection framework that includes a standard rule-based language for network traffic inspection.
     * These rules contain the inspection criteria and the action to take for traffic that matches the criteria, so this type of rule group doesn't have a separate action setting.
     * > You can't use the `priority` keyword if the `RuleOrder` option in `StatefulRuleOptions` is set to `STRICT_ORDER` .
     */
    @JvmName("yuuctoumjvyuajyw")
    public suspend fun rulesString(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.rulesString = mapped
    }

    /**
     * @param value An array of individual stateful rules inspection criteria to be used together in a stateful rule group. Use this option to specify simple Suricata rules with protocol, source and destination, ports, direction, and rule options. For information about the Suricata `Rules` format, see [Rules Format](https://docs.aws.amazon.com/https://suricata.readthedocs.io/en/suricata-6.0.9/rules/intro.html) .
     */
    @JvmName("sesltabmgtovruek")
    public suspend fun statefulRules(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.statefulRules = mapped
    }

    /**
     * @param argument An array of individual stateful rules inspection criteria to be used together in a stateful rule group. Use this option to specify simple Suricata rules with protocol, source and destination, ports, direction, and rule options. For information about the Suricata `Rules` format, see [Rules Format](https://docs.aws.amazon.com/https://suricata.readthedocs.io/en/suricata-6.0.9/rules/intro.html) .
     */
    @JvmName("ddvedfmbkfqidvtw")
    public suspend fun statefulRules(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            RuleGroupStatefulRuleArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.statefulRules = mapped
    }

    /**
     * @param argument An array of individual stateful rules inspection criteria to be used together in a stateful rule group. Use this option to specify simple Suricata rules with protocol, source and destination, ports, direction, and rule options. For information about the Suricata `Rules` format, see [Rules Format](https://docs.aws.amazon.com/https://suricata.readthedocs.io/en/suricata-6.0.9/rules/intro.html) .
     */
    @JvmName("ilwmqwufswvbpcvt")
    public suspend fun statefulRules(vararg argument: suspend RuleGroupStatefulRuleArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            RuleGroupStatefulRuleArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.statefulRules = mapped
    }

    /**
     * @param argument An array of individual stateful rules inspection criteria to be used together in a stateful rule group. Use this option to specify simple Suricata rules with protocol, source and destination, ports, direction, and rule options. For information about the Suricata `Rules` format, see [Rules Format](https://docs.aws.amazon.com/https://suricata.readthedocs.io/en/suricata-6.0.9/rules/intro.html) .
     */
    @JvmName("bxxkgyxtdpcwwnng")
    public suspend fun statefulRules(argument: suspend RuleGroupStatefulRuleArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(RuleGroupStatefulRuleArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.statefulRules = mapped
    }

    /**
     * @param values An array of individual stateful rules inspection criteria to be used together in a stateful rule group. Use this option to specify simple Suricata rules with protocol, source and destination, ports, direction, and rule options. For information about the Suricata `Rules` format, see [Rules Format](https://docs.aws.amazon.com/https://suricata.readthedocs.io/en/suricata-6.0.9/rules/intro.html) .
     */
    @JvmName("hlwlvafaucfvvdoo")
    public suspend fun statefulRules(vararg values: RuleGroupStatefulRuleArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.statefulRules = mapped
    }

    /**
     * @param value Stateless inspection criteria to be used in a stateless rule group.
     */
    @JvmName("hmynmkknxdoosvpg")
    public suspend fun statelessRulesAndCustomActions(`value`: RuleGroupStatelessRulesAndCustomActionsArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.statelessRulesAndCustomActions = mapped
    }

    /**
     * @param argument Stateless inspection criteria to be used in a stateless rule group.
     */
    @JvmName("lkdkfdkfdtqexbvb")
    public suspend fun statelessRulesAndCustomActions(argument: suspend RuleGroupStatelessRulesAndCustomActionsArgsBuilder.() -> Unit) {
        val toBeMapped = RuleGroupStatelessRulesAndCustomActionsArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.statelessRulesAndCustomActions = mapped
    }

    internal fun build(): RuleGroupRulesSourceArgs = RuleGroupRulesSourceArgs(
        rulesSourceList = rulesSourceList,
        rulesString = rulesString,
        statefulRules = statefulRules,
        statelessRulesAndCustomActions = statelessRulesAndCustomActions,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy