![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.azurenative.network.kotlin.inputs.ApplicationGatewayWebApplicationFirewallConfigurationArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-azure-native-kotlin Show documentation
Show all versions of pulumi-azure-native-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.azurenative.network.kotlin.inputs
import com.pulumi.azurenative.network.inputs.ApplicationGatewayWebApplicationFirewallConfigurationArgs.builder
import com.pulumi.azurenative.network.kotlin.enums.ApplicationGatewayFirewallMode
import com.pulumi.core.Either
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.Boolean
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName
/**
* Application gateway web application firewall configuration.
* @property disabledRuleGroups The disabled rule groups.
* @property enabled Whether the web application firewall is enabled or not.
* @property exclusions The exclusion list.
* @property fileUploadLimitInMb Maximum file upload size in Mb for WAF.
* @property firewallMode Web application firewall mode.
* @property maxRequestBodySize Maximum request body size for WAF.
* @property maxRequestBodySizeInKb Maximum request body size in Kb for WAF.
* @property requestBodyCheck Whether allow WAF to check request Body.
* @property ruleSetType The type of the web application firewall rule set. Possible values are: 'OWASP'.
* @property ruleSetVersion The version of the rule set type.
*/
public data class ApplicationGatewayWebApplicationFirewallConfigurationArgs(
public val disabledRuleGroups: Output>? =
null,
public val enabled: Output,
public val exclusions: Output>? = null,
public val fileUploadLimitInMb: Output? = null,
public val firewallMode: Output>,
public val maxRequestBodySize: Output? = null,
public val maxRequestBodySizeInKb: Output? = null,
public val requestBodyCheck: Output? = null,
public val ruleSetType: Output,
public val ruleSetVersion: Output,
) :
ConvertibleToJava {
override fun toJava(): com.pulumi.azurenative.network.inputs.ApplicationGatewayWebApplicationFirewallConfigurationArgs =
com.pulumi.azurenative.network.inputs.ApplicationGatewayWebApplicationFirewallConfigurationArgs.builder()
.disabledRuleGroups(
disabledRuleGroups?.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 -> args0.toJava() })
})
}),
)
.enabled(enabled.applyValue({ args0 -> args0 }))
.exclusions(
exclusions?.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
})
}),
)
.fileUploadLimitInMb(fileUploadLimitInMb?.applyValue({ args0 -> args0 }))
.firewallMode(
firewallMode.applyValue({ args0 ->
args0.transform({ args0 -> args0 }, { args0 ->
args0.let({ args0 -> args0.toJava() })
})
}),
)
.maxRequestBodySize(maxRequestBodySize?.applyValue({ args0 -> args0 }))
.maxRequestBodySizeInKb(maxRequestBodySizeInKb?.applyValue({ args0 -> args0 }))
.requestBodyCheck(requestBodyCheck?.applyValue({ args0 -> args0 }))
.ruleSetType(ruleSetType.applyValue({ args0 -> args0 }))
.ruleSetVersion(ruleSetVersion.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [ApplicationGatewayWebApplicationFirewallConfigurationArgs].
*/
@PulumiTagMarker
public class ApplicationGatewayWebApplicationFirewallConfigurationArgsBuilder internal constructor() {
private var disabledRuleGroups: Output>? =
null
private var enabled: Output? = null
private var exclusions: Output>? = null
private var fileUploadLimitInMb: Output? = null
private var firewallMode: Output>? = null
private var maxRequestBodySize: Output? = null
private var maxRequestBodySizeInKb: Output? = null
private var requestBodyCheck: Output? = null
private var ruleSetType: Output? = null
private var ruleSetVersion: Output? = null
/**
* @param value The disabled rule groups.
*/
@JvmName("pncqkmgfjkfwvubn")
public suspend fun disabledRuleGroups(`value`: Output>) {
this.disabledRuleGroups = value
}
@JvmName("migleteopcxsmclb")
public suspend fun disabledRuleGroups(vararg values: Output) {
this.disabledRuleGroups = Output.all(values.asList())
}
/**
* @param values The disabled rule groups.
*/
@JvmName("jpyvsbjwyqvnlkdx")
public suspend fun disabledRuleGroups(values: List
© 2015 - 2025 Weber Informatics LLC | Privacy Policy