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

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

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

import com.pulumi.awsnative.wafv2.inputs.WebAclRuleGroupReferenceStatementArgs.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.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property arn The Amazon Resource Name (ARN) of the entity.
 * @property excludedRules Rules in the referenced rule group whose actions are set to `Count` .
 * > Instead of this option, use `RuleActionOverrides` . It accepts any valid action setting, including `Count` .
 * @property ruleActionOverrides Action overrides for rules in the rule group.
 */
public data class WebAclRuleGroupReferenceStatementArgs(
    public val arn: Output,
    public val excludedRules: Output>? = null,
    public val ruleActionOverrides: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.wafv2.inputs.WebAclRuleGroupReferenceStatementArgs =
        com.pulumi.awsnative.wafv2.inputs.WebAclRuleGroupReferenceStatementArgs.builder()
            .arn(arn.applyValue({ args0 -> args0 }))
            .excludedRules(
                excludedRules?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .ruleActionOverrides(
                ruleActionOverrides?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 -> args0.toJava() })
                    })
                }),
            ).build()
}

/**
 * Builder for [WebAclRuleGroupReferenceStatementArgs].
 */
@PulumiTagMarker
public class WebAclRuleGroupReferenceStatementArgsBuilder internal constructor() {
    private var arn: Output? = null

    private var excludedRules: Output>? = null

    private var ruleActionOverrides: Output>? = null

    /**
     * @param value The Amazon Resource Name (ARN) of the entity.
     */
    @JvmName("pucgjytkddqumgno")
    public suspend fun arn(`value`: Output) {
        this.arn = value
    }

    /**
     * @param value Rules in the referenced rule group whose actions are set to `Count` .
     * > Instead of this option, use `RuleActionOverrides` . It accepts any valid action setting, including `Count` .
     */
    @JvmName("dvfxknlxyvqhldyq")
    public suspend fun excludedRules(`value`: Output>) {
        this.excludedRules = value
    }

    @JvmName("xspwiewnnhwinllc")
    public suspend fun excludedRules(vararg values: Output) {
        this.excludedRules = Output.all(values.asList())
    }

    /**
     * @param values Rules in the referenced rule group whose actions are set to `Count` .
     * > Instead of this option, use `RuleActionOverrides` . It accepts any valid action setting, including `Count` .
     */
    @JvmName("ttmvlmanjjfadjkx")
    public suspend fun excludedRules(values: List>) {
        this.excludedRules = Output.all(values)
    }

    /**
     * @param value Action overrides for rules in the rule group.
     */
    @JvmName("bmbuberurihhgfpa")
    public suspend fun ruleActionOverrides(`value`: Output>) {
        this.ruleActionOverrides = value
    }

    @JvmName("axcjithplvifbnxs")
    public suspend fun ruleActionOverrides(vararg values: Output) {
        this.ruleActionOverrides = Output.all(values.asList())
    }

    /**
     * @param values Action overrides for rules in the rule group.
     */
    @JvmName("xbrsyayofowododu")
    public suspend fun ruleActionOverrides(values: List>) {
        this.ruleActionOverrides = Output.all(values)
    }

    /**
     * @param value The Amazon Resource Name (ARN) of the entity.
     */
    @JvmName("ilcnicjukqknvdvv")
    public suspend fun arn(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.arn = mapped
    }

    /**
     * @param value Rules in the referenced rule group whose actions are set to `Count` .
     * > Instead of this option, use `RuleActionOverrides` . It accepts any valid action setting, including `Count` .
     */
    @JvmName("njanyovvgwgjlpyo")
    public suspend fun excludedRules(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.excludedRules = mapped
    }

    /**
     * @param argument Rules in the referenced rule group whose actions are set to `Count` .
     * > Instead of this option, use `RuleActionOverrides` . It accepts any valid action setting, including `Count` .
     */
    @JvmName("epqskfyclgyalwpa")
    public suspend fun excludedRules(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            WebAclExcludedRuleArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.excludedRules = mapped
    }

    /**
     * @param argument Rules in the referenced rule group whose actions are set to `Count` .
     * > Instead of this option, use `RuleActionOverrides` . It accepts any valid action setting, including `Count` .
     */
    @JvmName("flpdmsivtdcbfrwf")
    public suspend fun excludedRules(vararg argument: suspend WebAclExcludedRuleArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            WebAclExcludedRuleArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.excludedRules = mapped
    }

    /**
     * @param argument Rules in the referenced rule group whose actions are set to `Count` .
     * > Instead of this option, use `RuleActionOverrides` . It accepts any valid action setting, including `Count` .
     */
    @JvmName("xrxxrlqtahlprsjs")
    public suspend fun excludedRules(argument: suspend WebAclExcludedRuleArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(WebAclExcludedRuleArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.excludedRules = mapped
    }

    /**
     * @param values Rules in the referenced rule group whose actions are set to `Count` .
     * > Instead of this option, use `RuleActionOverrides` . It accepts any valid action setting, including `Count` .
     */
    @JvmName("mmkaodvxtqywfugf")
    public suspend fun excludedRules(vararg values: WebAclExcludedRuleArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.excludedRules = mapped
    }

    /**
     * @param value Action overrides for rules in the rule group.
     */
    @JvmName("rtbhjalilnisykgn")
    public suspend fun ruleActionOverrides(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.ruleActionOverrides = mapped
    }

    /**
     * @param argument Action overrides for rules in the rule group.
     */
    @JvmName("jnfofdvfordxnfog")
    public suspend fun ruleActionOverrides(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            WebAclRuleActionOverrideArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.ruleActionOverrides = mapped
    }

    /**
     * @param argument Action overrides for rules in the rule group.
     */
    @JvmName("xmasnfmvpelsomus")
    public suspend fun ruleActionOverrides(vararg argument: suspend WebAclRuleActionOverrideArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            WebAclRuleActionOverrideArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.ruleActionOverrides = mapped
    }

    /**
     * @param argument Action overrides for rules in the rule group.
     */
    @JvmName("apmdjpabqjkwqqrb")
    public suspend fun ruleActionOverrides(argument: suspend WebAclRuleActionOverrideArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            WebAclRuleActionOverrideArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.ruleActionOverrides = mapped
    }

    /**
     * @param values Action overrides for rules in the rule group.
     */
    @JvmName("yxmllahtmeuttwbo")
    public suspend fun ruleActionOverrides(vararg values: WebAclRuleActionOverrideArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.ruleActionOverrides = mapped
    }

    internal fun build(): WebAclRuleGroupReferenceStatementArgs =
        WebAclRuleGroupReferenceStatementArgs(
            arn = arn ?: throw PulumiNullFieldException("arn"),
            excludedRules = excludedRules,
            ruleActionOverrides = ruleActionOverrides,
        )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy