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

com.pulumi.cloudflare.kotlin.outputs.GetRulesetsRulesetRuleActionParametersOverridesRule.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.outputs

import kotlin.Boolean
import kotlin.Deprecated
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 The ID of this resource.
 * @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.
 * @property status Defines if the current rule-level override enables or disables the rule. Available values: `enabled`, `disabled`
 */
public data class GetRulesetsRulesetRuleActionParametersOverridesRule(
    public val action: String? = null,
    @Deprecated(
        message = """
  Use `status` instead. Continuing to use `enabled` will result in an inconsistent state for your
      Ruleset configuration.
  """,
    )
    public val enabled: Boolean? = null,
    public val id: String? = null,
    public val scoreThreshold: Int? = null,
    public val sensitivityLevel: String? = null,
    public val status: String? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.cloudflare.outputs.GetRulesetsRulesetRuleActionParametersOverridesRule): GetRulesetsRulesetRuleActionParametersOverridesRule =
            GetRulesetsRulesetRuleActionParametersOverridesRule(
                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),
                status = javaType.status().map({ args0 -> args0 }).orElse(null),
            )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy