com.pulumi.cloudflare.kotlin.outputs.GetRulesetsRulesetRuleActionParametersOverrides.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-cloudflare-kotlin Show documentation
Show all versions of pulumi-cloudflare-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.
The newest version!
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.cloudflare.kotlin.outputs
import kotlin.Boolean
import kotlin.Deprecated
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
/**
*
* @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 categories List of tag-based overrides.
* @property enabled Defines if the current ruleset-level override enables or disables the ruleset.
* @property rules List of rule-based overrides.
* @property sensitivityLevel Sensitivity level to override for all ruleset rules. Available values: `default`, `medium`, `low`, `eoff`
* @property status Defines if the current ruleset-level override enables or disables the ruleset. Available values: `enabled`, `disabled`
*/
public data class GetRulesetsRulesetRuleActionParametersOverrides(
public val action: String? = null,
public val categories: List? = 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 rules: List? = null,
public val sensitivityLevel: String? = null,
public val status: String? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.cloudflare.outputs.GetRulesetsRulesetRuleActionParametersOverrides): GetRulesetsRulesetRuleActionParametersOverrides =
GetRulesetsRulesetRuleActionParametersOverrides(
action = javaType.action().map({ args0 -> args0 }).orElse(null),
categories = javaType.categories().map({ args0 ->
args0.let({ args0 ->
com.pulumi.cloudflare.kotlin.outputs.GetRulesetsRulesetRuleActionParametersOverridesCategory.Companion.toKotlin(args0)
})
}),
enabled = javaType.enabled().map({ args0 -> args0 }).orElse(null),
rules = javaType.rules().map({ args0 ->
args0.let({ args0 ->
com.pulumi.cloudflare.kotlin.outputs.GetRulesetsRulesetRuleActionParametersOverridesRule.Companion.toKotlin(args0)
})
}),
sensitivityLevel = javaType.sensitivityLevel().map({ args0 -> args0 }).orElse(null),
status = javaType.status().map({ args0 -> args0 }).orElse(null),
)
}
}