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

com.pulumi.aws.waf.kotlin.inputs.RuleGroupActivatedRuleArgs.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: 6.57.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.aws.waf.kotlin.inputs

import com.pulumi.aws.waf.inputs.RuleGroupActivatedRuleArgs.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 com.pulumi.kotlin.applySuspend
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName

/**
 *
 * @property action Specifies the action that CloudFront or AWS WAF takes when a web request matches the conditions in the rule.
 * @property priority Specifies the order in which the rules are evaluated. Rules with a lower value are evaluated before rules with a higher value.
 * @property ruleId The ID of a rule
 * @property type
 */
public data class RuleGroupActivatedRuleArgs(
    public val action: Output,
    public val priority: Output,
    public val ruleId: Output,
    public val type: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.aws.waf.inputs.RuleGroupActivatedRuleArgs =
        com.pulumi.aws.waf.inputs.RuleGroupActivatedRuleArgs.builder()
            .action(action.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .priority(priority.applyValue({ args0 -> args0 }))
            .ruleId(ruleId.applyValue({ args0 -> args0 }))
            .type(type?.applyValue({ args0 -> args0 })).build()
}

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

    private var priority: Output? = null

    private var ruleId: Output? = null

    private var type: Output? = null

    /**
     * @param value Specifies the action that CloudFront or AWS WAF takes when a web request matches the conditions in the rule.
     */
    @JvmName("nwhycisocqfhlfto")
    public suspend fun action(`value`: Output) {
        this.action = value
    }

    /**
     * @param value Specifies the order in which the rules are evaluated. Rules with a lower value are evaluated before rules with a higher value.
     */
    @JvmName("iwodixwfalwcfyes")
    public suspend fun priority(`value`: Output) {
        this.priority = value
    }

    /**
     * @param value The ID of a rule
     */
    @JvmName("xfimmjhitrcfjvpi")
    public suspend fun ruleId(`value`: Output) {
        this.ruleId = value
    }

    /**
     * @param value
     */
    @JvmName("shnrkplhrsgubjdq")
    public suspend fun type(`value`: Output) {
        this.type = value
    }

    /**
     * @param value Specifies the action that CloudFront or AWS WAF takes when a web request matches the conditions in the rule.
     */
    @JvmName("gbypnoqqudgfnish")
    public suspend fun action(`value`: RuleGroupActivatedRuleActionArgs) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.action = mapped
    }

    /**
     * @param argument Specifies the action that CloudFront or AWS WAF takes when a web request matches the conditions in the rule.
     */
    @JvmName("ioumfwxvliyfffyp")
    public suspend fun action(argument: suspend RuleGroupActivatedRuleActionArgsBuilder.() -> Unit) {
        val toBeMapped = RuleGroupActivatedRuleActionArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.action = mapped
    }

    /**
     * @param value Specifies the order in which the rules are evaluated. Rules with a lower value are evaluated before rules with a higher value.
     */
    @JvmName("wsirduhbwcldunen")
    public suspend fun priority(`value`: Int) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.priority = mapped
    }

    /**
     * @param value The ID of a rule
     */
    @JvmName("oovxyakusbhphitl")
    public suspend fun ruleId(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.ruleId = mapped
    }

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

    internal fun build(): RuleGroupActivatedRuleArgs = RuleGroupActivatedRuleArgs(
        action = action ?: throw PulumiNullFieldException("action"),
        priority = priority ?: throw PulumiNullFieldException("priority"),
        ruleId = ruleId ?: throw PulumiNullFieldException("ruleId"),
        type = type,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy