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

com.pulumi.azure.frontdoor.kotlin.inputs.FirewallPolicyManagedRuleOverrideArgs.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.frontdoor.kotlin.inputs

import com.pulumi.azure.frontdoor.inputs.FirewallPolicyManagedRuleOverrideArgs.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 exclusions One or more `exclusion` blocks as defined below.
 * @property ruleGroupName The managed rule group to override.
 * @property rules One or more `rule` blocks as defined below. If none are specified, all of the rules in the group will be disabled.
 */
public data class FirewallPolicyManagedRuleOverrideArgs(
    public val exclusions: Output>? = null,
    public val ruleGroupName: Output,
    public val rules: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.frontdoor.inputs.FirewallPolicyManagedRuleOverrideArgs =
        com.pulumi.azure.frontdoor.inputs.FirewallPolicyManagedRuleOverrideArgs.builder()
            .exclusions(
                exclusions?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .ruleGroupName(ruleGroupName.applyValue({ args0 -> args0 }))
            .rules(
                rules?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

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

    private var ruleGroupName: Output? = null

    private var rules: Output>? = null

    /**
     * @param value One or more `exclusion` blocks as defined below.
     */
    @JvmName("inafkckuweasmyyv")
    public suspend fun exclusions(`value`: Output>) {
        this.exclusions = value
    }

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

    /**
     * @param values One or more `exclusion` blocks as defined below.
     */
    @JvmName("kvkkeqcdcnimiwfm")
    public suspend fun exclusions(values: List>) {
        this.exclusions = Output.all(values)
    }

    /**
     * @param value The managed rule group to override.
     */
    @JvmName("shlgumiqfcqytaxy")
    public suspend fun ruleGroupName(`value`: Output) {
        this.ruleGroupName = value
    }

    /**
     * @param value One or more `rule` blocks as defined below. If none are specified, all of the rules in the group will be disabled.
     */
    @JvmName("eqorvmgfffpykplw")
    public suspend fun rules(`value`: Output>) {
        this.rules = value
    }

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

    /**
     * @param values One or more `rule` blocks as defined below. If none are specified, all of the rules in the group will be disabled.
     */
    @JvmName("vfrouiaprjbvceii")
    public suspend fun rules(values: List>) {
        this.rules = Output.all(values)
    }

    /**
     * @param value One or more `exclusion` blocks as defined below.
     */
    @JvmName("wcbpfihyxnwmgvlb")
    public suspend fun exclusions(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.exclusions = mapped
    }

    /**
     * @param argument One or more `exclusion` blocks as defined below.
     */
    @JvmName("dlwmvnhcnecerbxj")
    public suspend fun exclusions(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            FirewallPolicyManagedRuleOverrideExclusionArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.exclusions = mapped
    }

    /**
     * @param argument One or more `exclusion` blocks as defined below.
     */
    @JvmName("bmoincwoefdlccxb")
    public suspend fun exclusions(vararg argument: suspend FirewallPolicyManagedRuleOverrideExclusionArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            FirewallPolicyManagedRuleOverrideExclusionArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.exclusions = mapped
    }

    /**
     * @param argument One or more `exclusion` blocks as defined below.
     */
    @JvmName("nuwtkcesfofyyjcu")
    public suspend fun exclusions(argument: suspend FirewallPolicyManagedRuleOverrideExclusionArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            FirewallPolicyManagedRuleOverrideExclusionArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.exclusions = mapped
    }

    /**
     * @param values One or more `exclusion` blocks as defined below.
     */
    @JvmName("dttjaiurahqjqaxq")
    public suspend fun exclusions(vararg values: FirewallPolicyManagedRuleOverrideExclusionArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.exclusions = mapped
    }

    /**
     * @param value The managed rule group to override.
     */
    @JvmName("lmdlvecgtpfpckfu")
    public suspend fun ruleGroupName(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.ruleGroupName = mapped
    }

    /**
     * @param value One or more `rule` blocks as defined below. If none are specified, all of the rules in the group will be disabled.
     */
    @JvmName("lfrfqsltjdrrdxjs")
    public suspend fun rules(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.rules = mapped
    }

    /**
     * @param argument One or more `rule` blocks as defined below. If none are specified, all of the rules in the group will be disabled.
     */
    @JvmName("alpuxxkcymxhaodt")
    public suspend fun rules(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            FirewallPolicyManagedRuleOverrideRuleArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.rules = mapped
    }

    /**
     * @param argument One or more `rule` blocks as defined below. If none are specified, all of the rules in the group will be disabled.
     */
    @JvmName("qnhxxqutpwnyovia")
    public suspend fun rules(vararg argument: suspend FirewallPolicyManagedRuleOverrideRuleArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            FirewallPolicyManagedRuleOverrideRuleArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.rules = mapped
    }

    /**
     * @param argument One or more `rule` blocks as defined below. If none are specified, all of the rules in the group will be disabled.
     */
    @JvmName("sivxmlbktpkdxyul")
    public suspend fun rules(argument: suspend FirewallPolicyManagedRuleOverrideRuleArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            FirewallPolicyManagedRuleOverrideRuleArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.rules = mapped
    }

    /**
     * @param values One or more `rule` blocks as defined below. If none are specified, all of the rules in the group will be disabled.
     */
    @JvmName("jamipuvxvicsfrwj")
    public suspend fun rules(vararg values: FirewallPolicyManagedRuleOverrideRuleArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.rules = mapped
    }

    internal fun build(): FirewallPolicyManagedRuleOverrideArgs =
        FirewallPolicyManagedRuleOverrideArgs(
            exclusions = exclusions,
            ruleGroupName = ruleGroupName ?: throw PulumiNullFieldException("ruleGroupName"),
            rules = rules,
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy