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

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

package com.pulumi.cloudflare.kotlin.inputs

import com.pulumi.cloudflare.inputs.WaitingRoomRulesRuleArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 *
 * @property action Action to perform in the ruleset rule. Available values: `bypass_waiting_room`.
 * @property description Brief summary of the waiting room rule and its intended use.
 * @property expression Criteria for an HTTP request to trigger the waiting room rule action. Uses the Firewall Rules expression language based on Wireshark display filters. Refer to the [Waiting Room Rules Docs](https://developers.cloudflare.com/waiting-room/additional-options/waiting-room-rules/bypass-rules/).
 * @property id Unique rule identifier.
 * @property status Whether the rule is enabled or disabled. Available values: `enabled`, `disabled`.
 * @property version Version of the waiting room rule.
 */
public data class WaitingRoomRulesRuleArgs(
    public val action: Output,
    public val description: Output? = null,
    public val expression: Output,
    public val id: Output? = null,
    public val status: Output? = null,
    public val version: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.cloudflare.inputs.WaitingRoomRulesRuleArgs =
        com.pulumi.cloudflare.inputs.WaitingRoomRulesRuleArgs.builder()
            .action(action.applyValue({ args0 -> args0 }))
            .description(description?.applyValue({ args0 -> args0 }))
            .expression(expression.applyValue({ args0 -> args0 }))
            .id(id?.applyValue({ args0 -> args0 }))
            .status(status?.applyValue({ args0 -> args0 }))
            .version(version?.applyValue({ args0 -> args0 })).build()
}

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

    private var description: Output? = null

    private var expression: Output? = null

    private var id: Output? = null

    private var status: Output? = null

    private var version: Output? = null

    /**
     * @param value Action to perform in the ruleset rule. Available values: `bypass_waiting_room`.
     */
    @JvmName("qadafuiqlakwciqq")
    public suspend fun action(`value`: Output) {
        this.action = value
    }

    /**
     * @param value Brief summary of the waiting room rule and its intended use.
     */
    @JvmName("muhybwudguxqkjfo")
    public suspend fun description(`value`: Output) {
        this.description = value
    }

    /**
     * @param value Criteria for an HTTP request to trigger the waiting room rule action. Uses the Firewall Rules expression language based on Wireshark display filters. Refer to the [Waiting Room Rules Docs](https://developers.cloudflare.com/waiting-room/additional-options/waiting-room-rules/bypass-rules/).
     */
    @JvmName("ipxicvkulpxeceny")
    public suspend fun expression(`value`: Output) {
        this.expression = value
    }

    /**
     * @param value Unique rule identifier.
     */
    @JvmName("hdpeqgplubimbfnr")
    public suspend fun id(`value`: Output) {
        this.id = value
    }

    /**
     * @param value Whether the rule is enabled or disabled. Available values: `enabled`, `disabled`.
     */
    @JvmName("gqxaviesvnybavaq")
    public suspend fun status(`value`: Output) {
        this.status = value
    }

    /**
     * @param value Version of the waiting room rule.
     */
    @JvmName("aytjovaylfpdbjkm")
    public suspend fun version(`value`: Output) {
        this.version = value
    }

    /**
     * @param value Action to perform in the ruleset rule. Available values: `bypass_waiting_room`.
     */
    @JvmName("txculgrkbbfqginw")
    public suspend fun action(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.action = mapped
    }

    /**
     * @param value Brief summary of the waiting room rule and its intended use.
     */
    @JvmName("wgcfbbtjinehydxa")
    public suspend fun description(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.description = mapped
    }

    /**
     * @param value Criteria for an HTTP request to trigger the waiting room rule action. Uses the Firewall Rules expression language based on Wireshark display filters. Refer to the [Waiting Room Rules Docs](https://developers.cloudflare.com/waiting-room/additional-options/waiting-room-rules/bypass-rules/).
     */
    @JvmName("udqpvaxrrnwwkwpx")
    public suspend fun expression(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.expression = mapped
    }

    /**
     * @param value Unique rule identifier.
     */
    @JvmName("rklrlvkbnawgpjia")
    public suspend fun id(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.id = mapped
    }

    /**
     * @param value Whether the rule is enabled or disabled. Available values: `enabled`, `disabled`.
     */
    @JvmName("vngnowypxipynqjc")
    public suspend fun status(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.status = mapped
    }

    /**
     * @param value Version of the waiting room rule.
     */
    @JvmName("dcrxdqgshtockcwg")
    public suspend fun version(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.version = mapped
    }

    internal fun build(): WaitingRoomRulesRuleArgs = WaitingRoomRulesRuleArgs(
        action = action ?: throw PulumiNullFieldException("action"),
        description = description,
        expression = expression ?: throw PulumiNullFieldException("expression"),
        id = id,
        status = status,
        version = version,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy