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

com.pulumi.awsnative.networkfirewall.kotlin.inputs.RuleGroupRuleVariablesArgs.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.networkfirewall.kotlin.inputs

import com.pulumi.awsnative.networkfirewall.inputs.RuleGroupRuleVariablesArgs.builder
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.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.Map
import kotlin.jvm.JvmName

/**
 *
 * @property ipSets A list of IP addresses and address ranges, in CIDR notation.
 * @property portSets A list of port ranges.
 */
public data class RuleGroupRuleVariablesArgs(
    public val ipSets: Output>? = null,
    public val portSets: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.networkfirewall.inputs.RuleGroupRuleVariablesArgs =
        com.pulumi.awsnative.networkfirewall.inputs.RuleGroupRuleVariablesArgs.builder()
            .ipSets(
                ipSets?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.key.to(
                            args0.value.let({ args0 ->
                                args0.toJava()
                            }),
                        )
                    }).toMap()
                }),
            )
            .portSets(
                portSets?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.key.to(args0.value.let({ args0 -> args0.toJava() }))
                    }).toMap()
                }),
            ).build()
}

/**
 * Builder for [RuleGroupRuleVariablesArgs].
 */
@PulumiTagMarker
public class RuleGroupRuleVariablesArgsBuilder internal constructor() {
    private var ipSets: Output>? = null

    private var portSets: Output>? = null

    /**
     * @param value A list of IP addresses and address ranges, in CIDR notation.
     */
    @JvmName("noeleimjoakopvln")
    public suspend fun ipSets(`value`: Output>) {
        this.ipSets = value
    }

    /**
     * @param value A list of port ranges.
     */
    @JvmName("mhystxhtbtnqkrrq")
    public suspend fun portSets(`value`: Output>) {
        this.portSets = value
    }

    /**
     * @param value A list of IP addresses and address ranges, in CIDR notation.
     */
    @JvmName("bqiurbofsmqdoero")
    public suspend fun ipSets(`value`: Map?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.ipSets = mapped
    }

    /**
     * @param argument A list of IP addresses and address ranges, in CIDR notation.
     */
    @JvmName("cqmjawmieutmqvrf")
    public suspend fun ipSets(vararg argument: Pair Unit>) {
        val toBeMapped = argument.toList().map { (left, right) ->
            left to
                RuleGroupIpSetArgsBuilder().applySuspend { right() }.build()
        }.toMap()
        val mapped = of(toBeMapped)
        this.ipSets = mapped
    }

    /**
     * @param values A list of IP addresses and address ranges, in CIDR notation.
     */
    @JvmName("lutccforciojohgs")
    public fun ipSets(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.ipSets = mapped
    }

    /**
     * @param value A list of port ranges.
     */
    @JvmName("hqfkcnfmhvesvllm")
    public suspend fun portSets(`value`: Map?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.portSets = mapped
    }

    /**
     * @param argument A list of port ranges.
     */
    @JvmName("kitigvryfbyltglx")
    public suspend fun portSets(vararg argument: Pair Unit>) {
        val toBeMapped = argument.toList().map { (left, right) ->
            left to
                RuleGroupPortSetArgsBuilder().applySuspend { right() }.build()
        }.toMap()
        val mapped = of(toBeMapped)
        this.portSets = mapped
    }

    /**
     * @param values A list of port ranges.
     */
    @JvmName("nghkjtmxjfadfqxv")
    public fun portSets(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.portSets = mapped
    }

    internal fun build(): RuleGroupRuleVariablesArgs = RuleGroupRuleVariablesArgs(
        ipSets = ipSets,
        portSets = portSets,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy