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

com.pulumi.azure.waf.kotlin.inputs.PolicyManagedRulesExclusionArgs.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.PolicyManagedRulesExclusionArgs.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.jvm.JvmName

/**
 *
 * @property excludedRuleSet One or more `excluded_rule_set` block defined below.
 * @property matchVariable The name of the Match Variable. Possible values: `RequestArgKeys`, `RequestArgNames`, `RequestArgValues`, `RequestCookieKeys`, `RequestCookieNames`, `RequestCookieValues`, `RequestHeaderKeys`, `RequestHeaderNames`, `RequestHeaderValues`.
 * @property selector Describes field of the matchVariable collection.
 * @property selectorMatchOperator Describes operator to be matched. Possible values: `Contains`, `EndsWith`, `Equals`, `EqualsAny`, `StartsWith`.
 */
public data class PolicyManagedRulesExclusionArgs(
    public val excludedRuleSet: Output? = null,
    public val matchVariable: Output,
    public val selector: Output,
    public val selectorMatchOperator: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.waf.inputs.PolicyManagedRulesExclusionArgs =
        com.pulumi.azure.waf.inputs.PolicyManagedRulesExclusionArgs.builder()
            .excludedRuleSet(excludedRuleSet?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .matchVariable(matchVariable.applyValue({ args0 -> args0 }))
            .selector(selector.applyValue({ args0 -> args0 }))
            .selectorMatchOperator(selectorMatchOperator.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [PolicyManagedRulesExclusionArgs].
 */
@PulumiTagMarker
public class PolicyManagedRulesExclusionArgsBuilder internal constructor() {
    private var excludedRuleSet: Output? = null

    private var matchVariable: Output? = null

    private var selector: Output? = null

    private var selectorMatchOperator: Output? = null

    /**
     * @param value One or more `excluded_rule_set` block defined below.
     */
    @JvmName("nmganksyqhrprhsi")
    public suspend fun excludedRuleSet(`value`: Output) {
        this.excludedRuleSet = value
    }

    /**
     * @param value The name of the Match Variable. Possible values: `RequestArgKeys`, `RequestArgNames`, `RequestArgValues`, `RequestCookieKeys`, `RequestCookieNames`, `RequestCookieValues`, `RequestHeaderKeys`, `RequestHeaderNames`, `RequestHeaderValues`.
     */
    @JvmName("pnipnlqghdulxalh")
    public suspend fun matchVariable(`value`: Output) {
        this.matchVariable = value
    }

    /**
     * @param value Describes field of the matchVariable collection.
     */
    @JvmName("fljyoxobgfquuvgk")
    public suspend fun selector(`value`: Output) {
        this.selector = value
    }

    /**
     * @param value Describes operator to be matched. Possible values: `Contains`, `EndsWith`, `Equals`, `EqualsAny`, `StartsWith`.
     */
    @JvmName("dyfnuinsohrenbxi")
    public suspend fun selectorMatchOperator(`value`: Output) {
        this.selectorMatchOperator = value
    }

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

    /**
     * @param argument One or more `excluded_rule_set` block defined below.
     */
    @JvmName("tavdaupgsejagwic")
    public suspend fun excludedRuleSet(argument: suspend PolicyManagedRulesExclusionExcludedRuleSetArgsBuilder.() -> Unit) {
        val toBeMapped = PolicyManagedRulesExclusionExcludedRuleSetArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.excludedRuleSet = mapped
    }

    /**
     * @param value The name of the Match Variable. Possible values: `RequestArgKeys`, `RequestArgNames`, `RequestArgValues`, `RequestCookieKeys`, `RequestCookieNames`, `RequestCookieValues`, `RequestHeaderKeys`, `RequestHeaderNames`, `RequestHeaderValues`.
     */
    @JvmName("vqqfkreyaamsniqg")
    public suspend fun matchVariable(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.matchVariable = mapped
    }

    /**
     * @param value Describes field of the matchVariable collection.
     */
    @JvmName("jqsujgsrchekndvi")
    public suspend fun selector(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.selector = mapped
    }

    /**
     * @param value Describes operator to be matched. Possible values: `Contains`, `EndsWith`, `Equals`, `EqualsAny`, `StartsWith`.
     */
    @JvmName("ajwvdangnjwsctil")
    public suspend fun selectorMatchOperator(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.selectorMatchOperator = mapped
    }

    internal fun build(): PolicyManagedRulesExclusionArgs = PolicyManagedRulesExclusionArgs(
        excludedRuleSet = excludedRuleSet,
        matchVariable = matchVariable ?: throw PulumiNullFieldException("matchVariable"),
        selector = selector ?: throw PulumiNullFieldException("selector"),
        selectorMatchOperator = selectorMatchOperator ?: throw
            PulumiNullFieldException("selectorMatchOperator"),
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy