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

com.pulumi.awsnative.networkfirewall.kotlin.RuleGroupArgs.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.networkfirewall.kotlin

import com.pulumi.awsnative.kotlin.inputs.TagArgs
import com.pulumi.awsnative.kotlin.inputs.TagArgsBuilder
import com.pulumi.awsnative.networkfirewall.RuleGroupArgs.builder
import com.pulumi.awsnative.networkfirewall.kotlin.enums.RuleGroupTypeEnum
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.Int
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 * Resource type definition for AWS::NetworkFirewall::RuleGroup
 * @property capacity The maximum operating resources that this rule group can use. You can't change a rule group's capacity setting after you create the rule group. When you update a rule group, you are limited to this capacity. When you reference a rule group from a firewall policy, Network Firewall reserves this capacity for the rule group.
 * @property description A description of the rule group.
 * @property ruleGroup An object that defines the rule group rules.
 * @property ruleGroupName The descriptive name of the rule group. You can't change the name of a rule group after you create it.
 * @property tags An array of key-value pairs to apply to this resource.
 * For more information, see [Tag](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-resource-tags.html) .
 * @property type Indicates whether the rule group is stateless or stateful. If the rule group is stateless, it contains
 * stateless rules. If it is stateful, it contains stateful rules.
 */
public data class RuleGroupArgs(
    public val capacity: Output? = null,
    public val description: Output? = null,
    public val ruleGroup: Output? =
        null,
    public val ruleGroupName: Output? = null,
    public val tags: Output>? = null,
    public val type: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.networkfirewall.RuleGroupArgs =
        com.pulumi.awsnative.networkfirewall.RuleGroupArgs.builder()
            .capacity(capacity?.applyValue({ args0 -> args0 }))
            .description(description?.applyValue({ args0 -> args0 }))
            .ruleGroup(ruleGroup?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .ruleGroupName(ruleGroupName?.applyValue({ args0 -> args0 }))
            .tags(tags?.applyValue({ args0 -> args0.map({ args0 -> args0.let({ args0 -> args0.toJava() }) }) }))
            .type(type?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}

/**
 * Builder for [RuleGroupArgs].
 */
@PulumiTagMarker
public class RuleGroupArgsBuilder internal constructor() {
    private var capacity: Output? = null

    private var description: Output? = null

    private var ruleGroup: Output? =
        null

    private var ruleGroupName: Output? = null

    private var tags: Output>? = null

    private var type: Output? = null

    /**
     * @param value The maximum operating resources that this rule group can use. You can't change a rule group's capacity setting after you create the rule group. When you update a rule group, you are limited to this capacity. When you reference a rule group from a firewall policy, Network Firewall reserves this capacity for the rule group.
     */
    @JvmName("etlnygrhipmyagqq")
    public suspend fun capacity(`value`: Output) {
        this.capacity = value
    }

    /**
     * @param value A description of the rule group.
     */
    @JvmName("tfrijrhwkihliodk")
    public suspend fun description(`value`: Output) {
        this.description = value
    }

    /**
     * @param value An object that defines the rule group rules.
     */
    @JvmName("hxtxhytkuljnlhyg")
    public suspend fun ruleGroup(`value`: Output) {
        this.ruleGroup = value
    }

    /**
     * @param value The descriptive name of the rule group. You can't change the name of a rule group after you create it.
     */
    @JvmName("srpdxdepcjleqrnb")
    public suspend fun ruleGroupName(`value`: Output) {
        this.ruleGroupName = value
    }

    /**
     * @param value An array of key-value pairs to apply to this resource.
     * For more information, see [Tag](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-resource-tags.html) .
     */
    @JvmName("rrsweqjibcmlnjkt")
    public suspend fun tags(`value`: Output>) {
        this.tags = value
    }

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

    /**
     * @param values An array of key-value pairs to apply to this resource.
     * For more information, see [Tag](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-resource-tags.html) .
     */
    @JvmName("yfbmspcjpqislyip")
    public suspend fun tags(values: List>) {
        this.tags = Output.all(values)
    }

    /**
     * @param value Indicates whether the rule group is stateless or stateful. If the rule group is stateless, it contains
     * stateless rules. If it is stateful, it contains stateful rules.
     */
    @JvmName("tapwmhcicwofwukm")
    public suspend fun type(`value`: Output) {
        this.type = value
    }

    /**
     * @param value The maximum operating resources that this rule group can use. You can't change a rule group's capacity setting after you create the rule group. When you update a rule group, you are limited to this capacity. When you reference a rule group from a firewall policy, Network Firewall reserves this capacity for the rule group.
     */
    @JvmName("kghxbmvbglwlbnrn")
    public suspend fun capacity(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.capacity = mapped
    }

    /**
     * @param value A description of the rule group.
     */
    @JvmName("lhjrupnnisnvssxa")
    public suspend fun description(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.description = mapped
    }

    /**
     * @param value An object that defines the rule group rules.
     */
    @JvmName("ctcjqopleoqyluwe")
    public suspend fun ruleGroup(`value`: com.pulumi.awsnative.networkfirewall.kotlin.inputs.RuleGroupArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.ruleGroup = mapped
    }

    /**
     * @param argument An object that defines the rule group rules.
     */
    @JvmName("ldcfevvarlpuydmq")
    public suspend fun ruleGroup(argument: suspend com.pulumi.awsnative.networkfirewall.kotlin.inputs.RuleGroupArgsBuilder.() -> Unit) {
        val toBeMapped =
            com.pulumi.awsnative.networkfirewall.kotlin.inputs.RuleGroupArgsBuilder().applySuspend {
                argument()
            }.build()
        val mapped = of(toBeMapped)
        this.ruleGroup = mapped
    }

    /**
     * @param value The descriptive name of the rule group. You can't change the name of a rule group after you create it.
     */
    @JvmName("bpnvguhqekbjolwm")
    public suspend fun ruleGroupName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.ruleGroupName = mapped
    }

    /**
     * @param value An array of key-value pairs to apply to this resource.
     * For more information, see [Tag](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-resource-tags.html) .
     */
    @JvmName("wnyofcaxfrxqtqco")
    public suspend fun tags(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param argument An array of key-value pairs to apply to this resource.
     * For more information, see [Tag](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-resource-tags.html) .
     */
    @JvmName("skbwbwesplfptygb")
    public suspend fun tags(argument: List Unit>) {
        val toBeMapped = argument.toList().map { TagArgsBuilder().applySuspend { it() }.build() }
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param argument An array of key-value pairs to apply to this resource.
     * For more information, see [Tag](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-resource-tags.html) .
     */
    @JvmName("iytarvohwnnxxpia")
    public suspend fun tags(vararg argument: suspend TagArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map { TagArgsBuilder().applySuspend { it() }.build() }
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param argument An array of key-value pairs to apply to this resource.
     * For more information, see [Tag](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-resource-tags.html) .
     */
    @JvmName("yoivwglwymvfhjkx")
    public suspend fun tags(argument: suspend TagArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(TagArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param values An array of key-value pairs to apply to this resource.
     * For more information, see [Tag](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-resource-tags.html) .
     */
    @JvmName("ubclvcvpcsqrupkh")
    public suspend fun tags(vararg values: TagArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param value Indicates whether the rule group is stateless or stateful. If the rule group is stateless, it contains
     * stateless rules. If it is stateful, it contains stateful rules.
     */
    @JvmName("gmosjrgjuidvtmqb")
    public suspend fun type(`value`: RuleGroupTypeEnum?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.type = mapped
    }

    internal fun build(): RuleGroupArgs = RuleGroupArgs(
        capacity = capacity,
        description = description,
        ruleGroup = ruleGroup,
        ruleGroupName = ruleGroupName,
        tags = tags,
        type = type,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy