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

com.pulumi.azure.waf.kotlin.inputs.PolicyPolicySettingsArgs.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.PolicyPolicySettingsArgs.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.Boolean
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName

/**
 *
 * @property enabled Describes if the policy is in enabled state or disabled state. Defaults to `true`.
 * @property fileUploadLimitInMb The File Upload Limit in MB. Accepted values are in the range `1` to `4000`. Defaults to `100`.
 * @property logScrubbing One `log_scrubbing` block as defined below.
 * @property maxRequestBodySizeInKb The Maximum Request Body Size in KB. Accepted values are in the range `8` to `2000`. Defaults to `128`.
 * @property mode Describes if it is in detection mode or prevention mode at the policy level. Valid values are `Detection` and `Prevention`. Defaults to `Prevention`.
 * @property requestBodyCheck Is Request Body Inspection enabled? Defaults to `true`.
 * @property requestBodyInspectLimitInKb Specifies the maximum request body inspection limit in KB for the Web Application Firewall. Defaults to `128`.
 */
public data class PolicyPolicySettingsArgs(
    public val enabled: Output? = null,
    public val fileUploadLimitInMb: Output? = null,
    public val logScrubbing: Output? = null,
    public val maxRequestBodySizeInKb: Output? = null,
    public val mode: Output? = null,
    public val requestBodyCheck: Output? = null,
    public val requestBodyInspectLimitInKb: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.waf.inputs.PolicyPolicySettingsArgs =
        com.pulumi.azure.waf.inputs.PolicyPolicySettingsArgs.builder()
            .enabled(enabled?.applyValue({ args0 -> args0 }))
            .fileUploadLimitInMb(fileUploadLimitInMb?.applyValue({ args0 -> args0 }))
            .logScrubbing(logScrubbing?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .maxRequestBodySizeInKb(maxRequestBodySizeInKb?.applyValue({ args0 -> args0 }))
            .mode(mode?.applyValue({ args0 -> args0 }))
            .requestBodyCheck(requestBodyCheck?.applyValue({ args0 -> args0 }))
            .requestBodyInspectLimitInKb(requestBodyInspectLimitInKb?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [PolicyPolicySettingsArgs].
 */
@PulumiTagMarker
public class PolicyPolicySettingsArgsBuilder internal constructor() {
    private var enabled: Output? = null

    private var fileUploadLimitInMb: Output? = null

    private var logScrubbing: Output? = null

    private var maxRequestBodySizeInKb: Output? = null

    private var mode: Output? = null

    private var requestBodyCheck: Output? = null

    private var requestBodyInspectLimitInKb: Output? = null

    /**
     * @param value Describes if the policy is in enabled state or disabled state. Defaults to `true`.
     */
    @JvmName("qydicrpeowaybtcc")
    public suspend fun enabled(`value`: Output) {
        this.enabled = value
    }

    /**
     * @param value The File Upload Limit in MB. Accepted values are in the range `1` to `4000`. Defaults to `100`.
     */
    @JvmName("xrsxhkipoajradfu")
    public suspend fun fileUploadLimitInMb(`value`: Output) {
        this.fileUploadLimitInMb = value
    }

    /**
     * @param value One `log_scrubbing` block as defined below.
     */
    @JvmName("mytqrmdjeaqqumgo")
    public suspend fun logScrubbing(`value`: Output) {
        this.logScrubbing = value
    }

    /**
     * @param value The Maximum Request Body Size in KB. Accepted values are in the range `8` to `2000`. Defaults to `128`.
     */
    @JvmName("gdbcbgqttgcjunbg")
    public suspend fun maxRequestBodySizeInKb(`value`: Output) {
        this.maxRequestBodySizeInKb = value
    }

    /**
     * @param value Describes if it is in detection mode or prevention mode at the policy level. Valid values are `Detection` and `Prevention`. Defaults to `Prevention`.
     */
    @JvmName("wibjaadydmlwnxwv")
    public suspend fun mode(`value`: Output) {
        this.mode = value
    }

    /**
     * @param value Is Request Body Inspection enabled? Defaults to `true`.
     */
    @JvmName("aniamjupjbglciko")
    public suspend fun requestBodyCheck(`value`: Output) {
        this.requestBodyCheck = value
    }

    /**
     * @param value Specifies the maximum request body inspection limit in KB for the Web Application Firewall. Defaults to `128`.
     */
    @JvmName("nwthckspuhjabvyr")
    public suspend fun requestBodyInspectLimitInKb(`value`: Output) {
        this.requestBodyInspectLimitInKb = value
    }

    /**
     * @param value Describes if the policy is in enabled state or disabled state. Defaults to `true`.
     */
    @JvmName("mvulfibfkgonivst")
    public suspend fun enabled(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.enabled = mapped
    }

    /**
     * @param value The File Upload Limit in MB. Accepted values are in the range `1` to `4000`. Defaults to `100`.
     */
    @JvmName("bwhmmkojumfrrjrd")
    public suspend fun fileUploadLimitInMb(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.fileUploadLimitInMb = mapped
    }

    /**
     * @param value One `log_scrubbing` block as defined below.
     */
    @JvmName("tmhdhsgfaqqwwjxh")
    public suspend fun logScrubbing(`value`: PolicyPolicySettingsLogScrubbingArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.logScrubbing = mapped
    }

    /**
     * @param argument One `log_scrubbing` block as defined below.
     */
    @JvmName("ryekqcnghluoigyd")
    public suspend fun logScrubbing(argument: suspend PolicyPolicySettingsLogScrubbingArgsBuilder.() -> Unit) {
        val toBeMapped = PolicyPolicySettingsLogScrubbingArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.logScrubbing = mapped
    }

    /**
     * @param value The Maximum Request Body Size in KB. Accepted values are in the range `8` to `2000`. Defaults to `128`.
     */
    @JvmName("kxgngmlwwweqshko")
    public suspend fun maxRequestBodySizeInKb(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.maxRequestBodySizeInKb = mapped
    }

    /**
     * @param value Describes if it is in detection mode or prevention mode at the policy level. Valid values are `Detection` and `Prevention`. Defaults to `Prevention`.
     */
    @JvmName("cevfnepdxtkvdxvq")
    public suspend fun mode(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.mode = mapped
    }

    /**
     * @param value Is Request Body Inspection enabled? Defaults to `true`.
     */
    @JvmName("wufexktapkgaulcr")
    public suspend fun requestBodyCheck(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.requestBodyCheck = mapped
    }

    /**
     * @param value Specifies the maximum request body inspection limit in KB for the Web Application Firewall. Defaults to `128`.
     */
    @JvmName("ofeusammiaxxcvms")
    public suspend fun requestBodyInspectLimitInKb(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.requestBodyInspectLimitInKb = mapped
    }

    internal fun build(): PolicyPolicySettingsArgs = PolicyPolicySettingsArgs(
        enabled = enabled,
        fileUploadLimitInMb = fileUploadLimitInMb,
        logScrubbing = logScrubbing,
        maxRequestBodySizeInKb = maxRequestBodySizeInKb,
        mode = mode,
        requestBodyCheck = requestBodyCheck,
        requestBodyInspectLimitInKb = requestBodyInspectLimitInKb,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy