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

com.pulumi.azure.waf.kotlin.inputs.PolicyManagedRulesExclusionExcludedRuleSetArgs.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.15.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azure.waf.kotlin.inputs

import com.pulumi.azure.waf.inputs.PolicyManagedRulesExclusionExcludedRuleSetArgs.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 ruleGroups One or more `rule_group` block defined below.
 * @property type The rule set type. Possible values are `Microsoft_DefaultRuleSet`, `Microsoft_BotManagerRuleSet` and `OWASP`. Defaults to `OWASP`.
 * @property version The rule set version. Possible values are `1.0` (for rule set type `Microsoft_BotManagerRuleSet`), `2.1` (for rule set type `Microsoft_DefaultRuleSet`) and `3.2` (for rule set type `OWASP`). Defaults to `3.2`.
 */
public data class PolicyManagedRulesExclusionExcludedRuleSetArgs(
    public val ruleGroups: Output>? =
        null,
    public val type: Output? = null,
    public val version: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.waf.inputs.PolicyManagedRulesExclusionExcludedRuleSetArgs = com.pulumi.azure.waf.inputs.PolicyManagedRulesExclusionExcludedRuleSetArgs.builder()
        .ruleGroups(
            ruleGroups?.applyValue({ args0 ->
                args0.map({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                })
            }),
        )
        .type(type?.applyValue({ args0 -> args0 }))
        .version(version?.applyValue({ args0 -> args0 })).build()
}

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

    private var type: Output? = null

    private var version: Output? = null

    /**
     * @param value One or more `rule_group` block defined below.
     */
    @JvmName("qtsrnmsctxhglash")
    public suspend fun ruleGroups(`value`: Output>) {
        this.ruleGroups = value
    }

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

    /**
     * @param values One or more `rule_group` block defined below.
     */
    @JvmName("avxawkmflvbgaknj")
    public suspend fun ruleGroups(values: List>) {
        this.ruleGroups = Output.all(values)
    }

    /**
     * @param value The rule set type. Possible values are `Microsoft_DefaultRuleSet`, `Microsoft_BotManagerRuleSet` and `OWASP`. Defaults to `OWASP`.
     */
    @JvmName("hycahwfsnsrsedqb")
    public suspend fun type(`value`: Output) {
        this.type = value
    }

    /**
     * @param value The rule set version. Possible values are `1.0` (for rule set type `Microsoft_BotManagerRuleSet`), `2.1` (for rule set type `Microsoft_DefaultRuleSet`) and `3.2` (for rule set type `OWASP`). Defaults to `3.2`.
     */
    @JvmName("bembuvnjhwqhgdhj")
    public suspend fun version(`value`: Output) {
        this.version = value
    }

    /**
     * @param value One or more `rule_group` block defined below.
     */
    @JvmName("sikqycydxpkosdbj")
    public suspend fun ruleGroups(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.ruleGroups = mapped
    }

    /**
     * @param argument One or more `rule_group` block defined below.
     */
    @JvmName("fupxkbwokfeypfbd")
    public suspend fun ruleGroups(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            PolicyManagedRulesExclusionExcludedRuleSetRuleGroupArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.ruleGroups = mapped
    }

    /**
     * @param argument One or more `rule_group` block defined below.
     */
    @JvmName("ddtarjsfplumepjx")
    public suspend fun ruleGroups(vararg argument: suspend PolicyManagedRulesExclusionExcludedRuleSetRuleGroupArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            PolicyManagedRulesExclusionExcludedRuleSetRuleGroupArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.ruleGroups = mapped
    }

    /**
     * @param argument One or more `rule_group` block defined below.
     */
    @JvmName("seguffovdrbhutaa")
    public suspend fun ruleGroups(argument: suspend PolicyManagedRulesExclusionExcludedRuleSetRuleGroupArgsBuilder.() -> Unit) {
        val toBeMapped =
            listOf(
                PolicyManagedRulesExclusionExcludedRuleSetRuleGroupArgsBuilder().applySuspend {
                    argument()
                }.build(),
            )
        val mapped = of(toBeMapped)
        this.ruleGroups = mapped
    }

    /**
     * @param values One or more `rule_group` block defined below.
     */
    @JvmName("sbecvholnnuylycg")
    public suspend fun ruleGroups(vararg values: PolicyManagedRulesExclusionExcludedRuleSetRuleGroupArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.ruleGroups = mapped
    }

    /**
     * @param value The rule set type. Possible values are `Microsoft_DefaultRuleSet`, `Microsoft_BotManagerRuleSet` and `OWASP`. Defaults to `OWASP`.
     */
    @JvmName("mmfpreykytgeotmn")
    public suspend fun type(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.type = mapped
    }

    /**
     * @param value The rule set version. Possible values are `1.0` (for rule set type `Microsoft_BotManagerRuleSet`), `2.1` (for rule set type `Microsoft_DefaultRuleSet`) and `3.2` (for rule set type `OWASP`). Defaults to `3.2`.
     */
    @JvmName("nwjxikxyaodoadjb")
    public suspend fun version(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.version = mapped
    }

    internal fun build(): PolicyManagedRulesExclusionExcludedRuleSetArgs =
        PolicyManagedRulesExclusionExcludedRuleSetArgs(
            ruleGroups = ruleGroups,
            type = type,
            version = version,
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy