com.pulumi.azure.cdn.kotlin.inputs.FrontdoorFirewallPolicyManagedRuleExclusionArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-azure-kotlin Show documentation
Show all versions of pulumi-azure-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.azure.cdn.kotlin.inputs
import com.pulumi.azure.cdn.inputs.FrontdoorFirewallPolicyManagedRuleExclusionArgs.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 kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
*
* @property matchVariable The variable type to be excluded. Possible values are `QueryStringArgNames`, `RequestBodyPostArgNames`, `RequestCookieNames`, `RequestHeaderNames`, `RequestBodyJsonArgNames`
* > **NOTE:** `RequestBodyJsonArgNames` is only available on Default Rule Set (DRS) 2.0 or later
* @property operator Comparison operator to apply to the selector when specifying which elements in the collection this exclusion applies to. Possible values are: `Equals`, `Contains`, `StartsWith`, `EndsWith`, `EqualsAny`.
* @property selector Selector for the value in the `match_variable` attribute this exclusion applies to.
* > **NOTE:** `selector` must be set to `*` if `operator` is set to `EqualsAny`.
*/
public data class FrontdoorFirewallPolicyManagedRuleExclusionArgs(
public val matchVariable: Output,
public val `operator`: Output,
public val selector: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azure.cdn.inputs.FrontdoorFirewallPolicyManagedRuleExclusionArgs =
com.pulumi.azure.cdn.inputs.FrontdoorFirewallPolicyManagedRuleExclusionArgs.builder()
.matchVariable(matchVariable.applyValue({ args0 -> args0 }))
.`operator`(`operator`.applyValue({ args0 -> args0 }))
.selector(selector.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [FrontdoorFirewallPolicyManagedRuleExclusionArgs].
*/
@PulumiTagMarker
public class FrontdoorFirewallPolicyManagedRuleExclusionArgsBuilder internal constructor() {
private var matchVariable: Output? = null
private var `operator`: Output? = null
private var selector: Output? = null
/**
* @param value The variable type to be excluded. Possible values are `QueryStringArgNames`, `RequestBodyPostArgNames`, `RequestCookieNames`, `RequestHeaderNames`, `RequestBodyJsonArgNames`
* > **NOTE:** `RequestBodyJsonArgNames` is only available on Default Rule Set (DRS) 2.0 or later
*/
@JvmName("ekpyhgfmqfhfqaop")
public suspend fun matchVariable(`value`: Output) {
this.matchVariable = value
}
/**
* @param value Comparison operator to apply to the selector when specifying which elements in the collection this exclusion applies to. Possible values are: `Equals`, `Contains`, `StartsWith`, `EndsWith`, `EqualsAny`.
*/
@JvmName("vuhbkcaknooqropa")
public suspend fun `operator`(`value`: Output) {
this.`operator` = value
}
/**
* @param value Selector for the value in the `match_variable` attribute this exclusion applies to.
* > **NOTE:** `selector` must be set to `*` if `operator` is set to `EqualsAny`.
*/
@JvmName("dmlvbyjkyfeytggo")
public suspend fun selector(`value`: Output) {
this.selector = value
}
/**
* @param value The variable type to be excluded. Possible values are `QueryStringArgNames`, `RequestBodyPostArgNames`, `RequestCookieNames`, `RequestHeaderNames`, `RequestBodyJsonArgNames`
* > **NOTE:** `RequestBodyJsonArgNames` is only available on Default Rule Set (DRS) 2.0 or later
*/
@JvmName("drjtcioqlajsfqis")
public suspend fun matchVariable(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.matchVariable = mapped
}
/**
* @param value Comparison operator to apply to the selector when specifying which elements in the collection this exclusion applies to. Possible values are: `Equals`, `Contains`, `StartsWith`, `EndsWith`, `EqualsAny`.
*/
@JvmName("sobcpfupqsisehwc")
public suspend fun `operator`(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.`operator` = mapped
}
/**
* @param value Selector for the value in the `match_variable` attribute this exclusion applies to.
* > **NOTE:** `selector` must be set to `*` if `operator` is set to `EqualsAny`.
*/
@JvmName("dngvikqxvttnnctc")
public suspend fun selector(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.selector = mapped
}
internal fun build(): FrontdoorFirewallPolicyManagedRuleExclusionArgs =
FrontdoorFirewallPolicyManagedRuleExclusionArgs(
matchVariable = matchVariable ?: throw PulumiNullFieldException("matchVariable"),
`operator` = `operator` ?: throw PulumiNullFieldException("operator"),
selector = selector ?: throw PulumiNullFieldException("selector"),
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy