Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
com.pulumi.cloudflare.kotlin.inputs.RulesetRuleActionParametersOverridesArgs.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.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.cloudflare.kotlin.inputs
import com.pulumi.cloudflare.inputs.RulesetRuleActionParametersOverridesArgs.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.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
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 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`.
*/
public data class RulesetRuleActionParametersOverridesArgs(
public val action: Output? = null,
public val categories: Output>? = null,
public val enabled: Output? = null,
public val rules: Output>? = null,
public val sensitivityLevel: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.cloudflare.inputs.RulesetRuleActionParametersOverridesArgs =
com.pulumi.cloudflare.inputs.RulesetRuleActionParametersOverridesArgs.builder()
.action(action?.applyValue({ args0 -> args0 }))
.categories(
categories?.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
})
}),
)
.enabled(enabled?.applyValue({ args0 -> args0 }))
.rules(rules?.applyValue({ args0 -> args0.map({ args0 -> args0.let({ args0 -> args0.toJava() }) }) }))
.sensitivityLevel(sensitivityLevel?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [RulesetRuleActionParametersOverridesArgs].
*/
@PulumiTagMarker
public class RulesetRuleActionParametersOverridesArgsBuilder internal constructor() {
private var action: Output? = null
private var categories: Output>? = null
private var enabled: Output? = null
private var rules: 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("ukkjxvoenvfnftqp")
public suspend fun action(`value`: Output) {
this.action = value
}
/**
* @param value List of tag-based overrides.
*/
@JvmName("eirqewfiiuhvhhjg")
public suspend fun categories(`value`: Output>) {
this.categories = value
}
@JvmName("pfydbsjhmriygkrq")
public suspend fun categories(vararg values: Output) {
this.categories = Output.all(values.asList())
}
/**
* @param values List of tag-based overrides.
*/
@JvmName("joxhrmjwcqxtmatw")
public suspend fun categories(values: List>) {
this.categories = Output.all(values)
}
/**
* @param value Defines if the current ruleset-level override enables or disables the ruleset.
*/
@JvmName("cgvmxybbttmpbdhw")
public suspend fun enabled(`value`: Output) {
this.enabled = value
}
/**
* @param value List of rule-based overrides.
*/
@JvmName("hcfcswjwfvgjkdqj")
public suspend fun rules(`value`: Output>) {
this.rules = value
}
@JvmName("uqrgitmkpvgrmqdf")
public suspend fun rules(vararg values: Output) {
this.rules = Output.all(values.asList())
}
/**
* @param values List of rule-based overrides.
*/
@JvmName("fbgnthnklidnbmls")
public suspend fun rules(values: List>) {
this.rules = Output.all(values)
}
/**
* @param value Sensitivity level to override for all ruleset rules. Available values: `default`, `medium`, `low`, `eoff`.
*/
@JvmName("ahfhqlvorceugnmb")
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("xnkvijjmevlsgsfd")
public suspend fun action(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.action = mapped
}
/**
* @param value List of tag-based overrides.
*/
@JvmName("kvvoecbuxnlcaeds")
public suspend fun categories(`value`: List?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.categories = mapped
}
/**
* @param argument List of tag-based overrides.
*/
@JvmName("iukvcxfjjpcofntw")
public suspend fun categories(argument: List Unit>) {
val toBeMapped = argument.toList().map {
RulesetRuleActionParametersOverridesCategoryArgsBuilder().applySuspend { it() }.build()
}
val mapped = of(toBeMapped)
this.categories = mapped
}
/**
* @param argument List of tag-based overrides.
*/
@JvmName("juptkavqisjrsrvw")
public suspend fun categories(vararg argument: suspend RulesetRuleActionParametersOverridesCategoryArgsBuilder.() -> Unit) {
val toBeMapped = argument.toList().map {
RulesetRuleActionParametersOverridesCategoryArgsBuilder().applySuspend { it() }.build()
}
val mapped = of(toBeMapped)
this.categories = mapped
}
/**
* @param argument List of tag-based overrides.
*/
@JvmName("ieirwtuvtqbobfbj")
public suspend fun categories(argument: suspend RulesetRuleActionParametersOverridesCategoryArgsBuilder.() -> Unit) {
val toBeMapped = listOf(
RulesetRuleActionParametersOverridesCategoryArgsBuilder().applySuspend {
argument()
}.build(),
)
val mapped = of(toBeMapped)
this.categories = mapped
}
/**
* @param values List of tag-based overrides.
*/
@JvmName("rldfmcvgnmvfspct")
public suspend fun categories(vararg values: RulesetRuleActionParametersOverridesCategoryArgs) {
val toBeMapped = values.toList()
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.categories = mapped
}
/**
* @param value Defines if the current ruleset-level override enables or disables the ruleset.
*/
@JvmName("dbeqmqbshoigpbwu")
public suspend fun enabled(`value`: Boolean?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.enabled = mapped
}
/**
* @param value List of rule-based overrides.
*/
@JvmName("rtiijllqywnovtsr")
public suspend fun rules(`value`: List?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.rules = mapped
}
/**
* @param argument List of rule-based overrides.
*/
@JvmName("gpddprcnbdnjqcec")
public suspend fun rules(argument: List Unit>) {
val toBeMapped = argument.toList().map {
RulesetRuleActionParametersOverridesRuleArgsBuilder().applySuspend { it() }.build()
}
val mapped = of(toBeMapped)
this.rules = mapped
}
/**
* @param argument List of rule-based overrides.
*/
@JvmName("lfcrybmrepysbdkj")
public suspend fun rules(vararg argument: suspend RulesetRuleActionParametersOverridesRuleArgsBuilder.() -> Unit) {
val toBeMapped = argument.toList().map {
RulesetRuleActionParametersOverridesRuleArgsBuilder().applySuspend { it() }.build()
}
val mapped = of(toBeMapped)
this.rules = mapped
}
/**
* @param argument List of rule-based overrides.
*/
@JvmName("kuythcmibxhnhsmk")
public suspend fun rules(argument: suspend RulesetRuleActionParametersOverridesRuleArgsBuilder.() -> Unit) {
val toBeMapped = listOf(
RulesetRuleActionParametersOverridesRuleArgsBuilder().applySuspend {
argument()
}.build(),
)
val mapped = of(toBeMapped)
this.rules = mapped
}
/**
* @param values List of rule-based overrides.
*/
@JvmName("lmjypoiltkkoecbq")
public suspend fun rules(vararg values: RulesetRuleActionParametersOverridesRuleArgs) {
val toBeMapped = values.toList()
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.rules = mapped
}
/**
* @param value Sensitivity level to override for all ruleset rules. Available values: `default`, `medium`, `low`, `eoff`.
*/
@JvmName("huwsbdeepvtsaken")
public suspend fun sensitivityLevel(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.sensitivityLevel = mapped
}
internal fun build(): RulesetRuleActionParametersOverridesArgs =
RulesetRuleActionParametersOverridesArgs(
action = action,
categories = categories,
enabled = enabled,
rules = rules,
sensitivityLevel = sensitivityLevel,
)
}