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

com.pulumi.cloudflare.kotlin.outputs.RulesetRuleActionParametersOverridesRule.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: 5.47.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.cloudflare.kotlin.outputs

import kotlin.Boolean
import kotlin.Int
import kotlin.String
import kotlin.Suppress

/**
 *
 * @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 RulesetRuleActionParametersOverridesRule(
    public val action: String? = null,
    public val enabled: Boolean? = null,
    public val id: String? = null,
    public val scoreThreshold: Int? = null,
    public val sensitivityLevel: String? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.cloudflare.outputs.RulesetRuleActionParametersOverridesRule): RulesetRuleActionParametersOverridesRule = RulesetRuleActionParametersOverridesRule(
            action = javaType.action().map({ args0 -> args0 }).orElse(null),
            enabled = javaType.enabled().map({ args0 -> args0 }).orElse(null),
            id = javaType.id().map({ args0 -> args0 }).orElse(null),
            scoreThreshold = javaType.scoreThreshold().map({ args0 -> args0 }).orElse(null),
            sensitivityLevel = javaType.sensitivityLevel().map({ args0 -> args0 }).orElse(null),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy