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

com.pulumi.awsnative.wafv2.kotlin.inputs.WebAclRuleActionOverrideArgs.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: 1.24.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.wafv2.kotlin.inputs

import com.pulumi.awsnative.wafv2.inputs.WebAclRuleActionOverrideArgs.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.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName

/**
 * Action override for rules in the rule group.
 * @property actionToUse The override action to use, in place of the configured action of the rule in the rule group.
 * @property name The name of the rule to override.
 */
public data class WebAclRuleActionOverrideArgs(
    public val actionToUse: Output,
    public val name: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.wafv2.inputs.WebAclRuleActionOverrideArgs =
        com.pulumi.awsnative.wafv2.inputs.WebAclRuleActionOverrideArgs.builder()
            .actionToUse(actionToUse.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .name(name.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [WebAclRuleActionOverrideArgs].
 */
@PulumiTagMarker
public class WebAclRuleActionOverrideArgsBuilder internal constructor() {
    private var actionToUse: Output? = null

    private var name: Output? = null

    /**
     * @param value The override action to use, in place of the configured action of the rule in the rule group.
     */
    @JvmName("fnmmoxoixihhjokg")
    public suspend fun actionToUse(`value`: Output) {
        this.actionToUse = value
    }

    /**
     * @param value The name of the rule to override.
     */
    @JvmName("poyjvlphpgvpdfmk")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value The override action to use, in place of the configured action of the rule in the rule group.
     */
    @JvmName("frgicgrixwgaooox")
    public suspend fun actionToUse(`value`: WebAclRuleActionArgs) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.actionToUse = mapped
    }

    /**
     * @param argument The override action to use, in place of the configured action of the rule in the rule group.
     */
    @JvmName("xctjgkqqthjetnut")
    public suspend fun actionToUse(argument: suspend WebAclRuleActionArgsBuilder.() -> Unit) {
        val toBeMapped = WebAclRuleActionArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.actionToUse = mapped
    }

    /**
     * @param value The name of the rule to override.
     */
    @JvmName("imknpbxeugheknad")
    public suspend fun name(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.name = mapped
    }

    internal fun build(): WebAclRuleActionOverrideArgs = WebAclRuleActionOverrideArgs(
        actionToUse = actionToUse ?: throw PulumiNullFieldException("actionToUse"),
        name = name ?: throw PulumiNullFieldException("name"),
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy