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

com.pulumi.cloudflare.kotlin.inputs.RulesetRuleActionParametersOverridesRuleArgs.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.

The newest version!
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.cloudflare.kotlin.inputs

import com.pulumi.cloudflare.inputs.RulesetRuleActionParametersOverridesRuleArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Boolean
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 *
 * @property action Action to perform in the rule-level override. Available values: `block`, `challenge`, `compress_response`, `ddos_dynamic`, `ddos_mitigation`, `execute`, `force_connection_close`, `js_challenge`, `log`, `log_custom_field`, `managed_challenge`, `redirect`, `rewrite`, `route`, `score`, `serve_error`, `set_cache_settings`, `set_config`, `skip`.
 * @property enabled Defines if the current rule-level override enables or disables the rule.
 * @property id Rule ID to apply the override to.
 * @property scoreThreshold Anomaly score threshold to apply in the ruleset rule override. Only applicable to modsecurity-based rulesets.
 * @property sensitivityLevel Sensitivity level for a ruleset rule override.
 */
public data class RulesetRuleActionParametersOverridesRuleArgs(
    public val action: Output? = null,
    public val enabled: Output? = null,
    public val id: Output? = null,
    public val scoreThreshold: Output? = null,
    public val sensitivityLevel: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.cloudflare.inputs.RulesetRuleActionParametersOverridesRuleArgs =
        com.pulumi.cloudflare.inputs.RulesetRuleActionParametersOverridesRuleArgs.builder()
            .action(action?.applyValue({ args0 -> args0 }))
            .enabled(enabled?.applyValue({ args0 -> args0 }))
            .id(id?.applyValue({ args0 -> args0 }))
            .scoreThreshold(scoreThreshold?.applyValue({ args0 -> args0 }))
            .sensitivityLevel(sensitivityLevel?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [RulesetRuleActionParametersOverridesRuleArgs].
 */
@PulumiTagMarker
public class RulesetRuleActionParametersOverridesRuleArgsBuilder internal constructor() {
    private var action: Output? = null

    private var enabled: Output? = null

    private var id: Output? = null

    private var scoreThreshold: Output? = null

    private var sensitivityLevel: Output? = null

    /**
     * @param value Action to perform in the rule-level override. Available values: `block`, `challenge`, `compress_response`, `ddos_dynamic`, `ddos_mitigation`, `execute`, `force_connection_close`, `js_challenge`, `log`, `log_custom_field`, `managed_challenge`, `redirect`, `rewrite`, `route`, `score`, `serve_error`, `set_cache_settings`, `set_config`, `skip`.
     */
    @JvmName("spbdqxlajlmcxnup")
    public suspend fun action(`value`: Output) {
        this.action = value
    }

    /**
     * @param value Defines if the current rule-level override enables or disables the rule.
     */
    @JvmName("ipgqeswvsjguapnp")
    public suspend fun enabled(`value`: Output) {
        this.enabled = value
    }

    /**
     * @param value Rule ID to apply the override to.
     */
    @JvmName("rlfqaeljckhohpfb")
    public suspend fun id(`value`: Output) {
        this.id = value
    }

    /**
     * @param value Anomaly score threshold to apply in the ruleset rule override. Only applicable to modsecurity-based rulesets.
     */
    @JvmName("apvedojkhcpprksr")
    public suspend fun scoreThreshold(`value`: Output) {
        this.scoreThreshold = value
    }

    /**
     * @param value Sensitivity level for a ruleset rule override.
     */
    @JvmName("atkehthjoobbposf")
    public suspend fun sensitivityLevel(`value`: Output) {
        this.sensitivityLevel = value
    }

    /**
     * @param value Action to perform in the rule-level override. Available values: `block`, `challenge`, `compress_response`, `ddos_dynamic`, `ddos_mitigation`, `execute`, `force_connection_close`, `js_challenge`, `log`, `log_custom_field`, `managed_challenge`, `redirect`, `rewrite`, `route`, `score`, `serve_error`, `set_cache_settings`, `set_config`, `skip`.
     */
    @JvmName("chwjdmvjkgnvgjnd")
    public suspend fun action(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.action = mapped
    }

    /**
     * @param value Defines if the current rule-level override enables or disables the rule.
     */
    @JvmName("lnyiegmueuycbsts")
    public suspend fun enabled(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.enabled = mapped
    }

    /**
     * @param value Rule ID to apply the override to.
     */
    @JvmName("wgmhbxfchewgpadp")
    public suspend fun id(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.id = mapped
    }

    /**
     * @param value Anomaly score threshold to apply in the ruleset rule override. Only applicable to modsecurity-based rulesets.
     */
    @JvmName("sdnqrwupuretigsb")
    public suspend fun scoreThreshold(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.scoreThreshold = mapped
    }

    /**
     * @param value Sensitivity level for a ruleset rule override.
     */
    @JvmName("tdmfvpilegxxyxmm")
    public suspend fun sensitivityLevel(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.sensitivityLevel = mapped
    }

    internal fun build(): RulesetRuleActionParametersOverridesRuleArgs =
        RulesetRuleActionParametersOverridesRuleArgs(
            action = action,
            enabled = enabled,
            id = id,
            scoreThreshold = scoreThreshold,
            sensitivityLevel = sensitivityLevel,
        )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy