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

com.pulumi.awsnative.networkfirewall.kotlin.inputs.RuleGroupMatchAttributesArgs.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.RuleGroupMatchAttributesArgs.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.Int
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property destinationPorts The destination ports to inspect for. If not specified, this matches with any destination port. This setting is only used for protocols 6 (TCP) and 17 (UDP).
 * You can specify individual ports, for example `1994` and you can specify port ranges, for example `1990:1994` .
 * @property destinations The destination IP addresses and address ranges to inspect for, in CIDR notation. If not specified, this matches with any destination address.
 * @property protocols The protocols to inspect for, specified using each protocol's assigned internet protocol number (IANA). If not specified, this matches with any protocol.
 * @property sourcePorts The source ports to inspect for. If not specified, this matches with any source port. This setting is only used for protocols 6 (TCP) and 17 (UDP).
 * You can specify individual ports, for example `1994` and you can specify port ranges, for example `1990:1994` .
 * @property sources The source IP addresses and address ranges to inspect for, in CIDR notation. If not specified, this matches with any source address.
 * @property tcpFlags The TCP flags and masks to inspect for. If not specified, this matches with any settings. This setting is only used for protocol 6 (TCP).
 */
public data class RuleGroupMatchAttributesArgs(
    public val destinationPorts: Output>? = null,
    public val destinations: Output>? = null,
    public val protocols: Output>? = null,
    public val sourcePorts: Output>? = null,
    public val sources: Output>? = null,
    public val tcpFlags: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.networkfirewall.inputs.RuleGroupMatchAttributesArgs =
        com.pulumi.awsnative.networkfirewall.inputs.RuleGroupMatchAttributesArgs.builder()
            .destinationPorts(
                destinationPorts?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .destinations(
                destinations?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .protocols(protocols?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .sourcePorts(
                sourcePorts?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .sources(
                sources?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .tcpFlags(
                tcpFlags?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

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

    private var destinations: Output>? = null

    private var protocols: Output>? = null

    private var sourcePorts: Output>? = null

    private var sources: Output>? = null

    private var tcpFlags: Output>? = null

    /**
     * @param value The destination ports to inspect for. If not specified, this matches with any destination port. This setting is only used for protocols 6 (TCP) and 17 (UDP).
     * You can specify individual ports, for example `1994` and you can specify port ranges, for example `1990:1994` .
     */
    @JvmName("nijfbmfexufccwgh")
    public suspend fun destinationPorts(`value`: Output>) {
        this.destinationPorts = value
    }

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

    /**
     * @param values The destination ports to inspect for. If not specified, this matches with any destination port. This setting is only used for protocols 6 (TCP) and 17 (UDP).
     * You can specify individual ports, for example `1994` and you can specify port ranges, for example `1990:1994` .
     */
    @JvmName("jaoqnelrcswxnrwi")
    public suspend fun destinationPorts(values: List>) {
        this.destinationPorts = Output.all(values)
    }

    /**
     * @param value The destination IP addresses and address ranges to inspect for, in CIDR notation. If not specified, this matches with any destination address.
     */
    @JvmName("usogihkdtkdtueeh")
    public suspend fun destinations(`value`: Output>) {
        this.destinations = value
    }

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

    /**
     * @param values The destination IP addresses and address ranges to inspect for, in CIDR notation. If not specified, this matches with any destination address.
     */
    @JvmName("hdqwukceklbkukji")
    public suspend fun destinations(values: List>) {
        this.destinations = Output.all(values)
    }

    /**
     * @param value The protocols to inspect for, specified using each protocol's assigned internet protocol number (IANA). If not specified, this matches with any protocol.
     */
    @JvmName("ckacbjfyqfysuati")
    public suspend fun protocols(`value`: Output>) {
        this.protocols = value
    }

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

    /**
     * @param values The protocols to inspect for, specified using each protocol's assigned internet protocol number (IANA). If not specified, this matches with any protocol.
     */
    @JvmName("jjkaunfcglqsjdss")
    public suspend fun protocols(values: List>) {
        this.protocols = Output.all(values)
    }

    /**
     * @param value The source ports to inspect for. If not specified, this matches with any source port. This setting is only used for protocols 6 (TCP) and 17 (UDP).
     * You can specify individual ports, for example `1994` and you can specify port ranges, for example `1990:1994` .
     */
    @JvmName("towesbvugukiburh")
    public suspend fun sourcePorts(`value`: Output>) {
        this.sourcePorts = value
    }

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

    /**
     * @param values The source ports to inspect for. If not specified, this matches with any source port. This setting is only used for protocols 6 (TCP) and 17 (UDP).
     * You can specify individual ports, for example `1994` and you can specify port ranges, for example `1990:1994` .
     */
    @JvmName("ttsxytfyxymfsssl")
    public suspend fun sourcePorts(values: List>) {
        this.sourcePorts = Output.all(values)
    }

    /**
     * @param value The source IP addresses and address ranges to inspect for, in CIDR notation. If not specified, this matches with any source address.
     */
    @JvmName("nuruwsjrppilxrei")
    public suspend fun sources(`value`: Output>) {
        this.sources = value
    }

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

    /**
     * @param values The source IP addresses and address ranges to inspect for, in CIDR notation. If not specified, this matches with any source address.
     */
    @JvmName("wsfqoqwrqykohurd")
    public suspend fun sources(values: List>) {
        this.sources = Output.all(values)
    }

    /**
     * @param value The TCP flags and masks to inspect for. If not specified, this matches with any settings. This setting is only used for protocol 6 (TCP).
     */
    @JvmName("dfdprwnutwkpxero")
    public suspend fun tcpFlags(`value`: Output>) {
        this.tcpFlags = value
    }

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

    /**
     * @param values The TCP flags and masks to inspect for. If not specified, this matches with any settings. This setting is only used for protocol 6 (TCP).
     */
    @JvmName("medxotqpcqrevtsp")
    public suspend fun tcpFlags(values: List>) {
        this.tcpFlags = Output.all(values)
    }

    /**
     * @param value The destination ports to inspect for. If not specified, this matches with any destination port. This setting is only used for protocols 6 (TCP) and 17 (UDP).
     * You can specify individual ports, for example `1994` and you can specify port ranges, for example `1990:1994` .
     */
    @JvmName("mejhwyivcdoxchlk")
    public suspend fun destinationPorts(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.destinationPorts = mapped
    }

    /**
     * @param argument The destination ports to inspect for. If not specified, this matches with any destination port. This setting is only used for protocols 6 (TCP) and 17 (UDP).
     * You can specify individual ports, for example `1994` and you can specify port ranges, for example `1990:1994` .
     */
    @JvmName("ddsxsrkpmwyghigb")
    public suspend fun destinationPorts(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            RuleGroupPortRangeArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.destinationPorts = mapped
    }

    /**
     * @param argument The destination ports to inspect for. If not specified, this matches with any destination port. This setting is only used for protocols 6 (TCP) and 17 (UDP).
     * You can specify individual ports, for example `1994` and you can specify port ranges, for example `1990:1994` .
     */
    @JvmName("valyecaeivpyhqpa")
    public suspend fun destinationPorts(vararg argument: suspend RuleGroupPortRangeArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            RuleGroupPortRangeArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.destinationPorts = mapped
    }

    /**
     * @param argument The destination ports to inspect for. If not specified, this matches with any destination port. This setting is only used for protocols 6 (TCP) and 17 (UDP).
     * You can specify individual ports, for example `1994` and you can specify port ranges, for example `1990:1994` .
     */
    @JvmName("wmwgnhxvqcvtwnht")
    public suspend fun destinationPorts(argument: suspend RuleGroupPortRangeArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(RuleGroupPortRangeArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.destinationPorts = mapped
    }

    /**
     * @param values The destination ports to inspect for. If not specified, this matches with any destination port. This setting is only used for protocols 6 (TCP) and 17 (UDP).
     * You can specify individual ports, for example `1994` and you can specify port ranges, for example `1990:1994` .
     */
    @JvmName("kwjyvdwcxsqydjkj")
    public suspend fun destinationPorts(vararg values: RuleGroupPortRangeArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.destinationPorts = mapped
    }

    /**
     * @param value The destination IP addresses and address ranges to inspect for, in CIDR notation. If not specified, this matches with any destination address.
     */
    @JvmName("mubjyuewwrxpjdyp")
    public suspend fun destinations(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.destinations = mapped
    }

    /**
     * @param argument The destination IP addresses and address ranges to inspect for, in CIDR notation. If not specified, this matches with any destination address.
     */
    @JvmName("vmecpwgjnmwgosrh")
    public suspend fun destinations(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            RuleGroupAddressArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.destinations = mapped
    }

    /**
     * @param argument The destination IP addresses and address ranges to inspect for, in CIDR notation. If not specified, this matches with any destination address.
     */
    @JvmName("dwkynsbrbmpmrrun")
    public suspend fun destinations(vararg argument: suspend RuleGroupAddressArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            RuleGroupAddressArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.destinations = mapped
    }

    /**
     * @param argument The destination IP addresses and address ranges to inspect for, in CIDR notation. If not specified, this matches with any destination address.
     */
    @JvmName("qeeqlhubiyrlnxgh")
    public suspend fun destinations(argument: suspend RuleGroupAddressArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(RuleGroupAddressArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.destinations = mapped
    }

    /**
     * @param values The destination IP addresses and address ranges to inspect for, in CIDR notation. If not specified, this matches with any destination address.
     */
    @JvmName("okfibaqjheqfqwof")
    public suspend fun destinations(vararg values: RuleGroupAddressArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.destinations = mapped
    }

    /**
     * @param value The protocols to inspect for, specified using each protocol's assigned internet protocol number (IANA). If not specified, this matches with any protocol.
     */
    @JvmName("oufwuomroiauyvpe")
    public suspend fun protocols(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.protocols = mapped
    }

    /**
     * @param values The protocols to inspect for, specified using each protocol's assigned internet protocol number (IANA). If not specified, this matches with any protocol.
     */
    @JvmName("eshmsvpdwoirqpjv")
    public suspend fun protocols(vararg values: Int) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.protocols = mapped
    }

    /**
     * @param value The source ports to inspect for. If not specified, this matches with any source port. This setting is only used for protocols 6 (TCP) and 17 (UDP).
     * You can specify individual ports, for example `1994` and you can specify port ranges, for example `1990:1994` .
     */
    @JvmName("onsvbpjwhfgjbhgq")
    public suspend fun sourcePorts(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.sourcePorts = mapped
    }

    /**
     * @param argument The source ports to inspect for. If not specified, this matches with any source port. This setting is only used for protocols 6 (TCP) and 17 (UDP).
     * You can specify individual ports, for example `1994` and you can specify port ranges, for example `1990:1994` .
     */
    @JvmName("ycgpwhrbsplmgasb")
    public suspend fun sourcePorts(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            RuleGroupPortRangeArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.sourcePorts = mapped
    }

    /**
     * @param argument The source ports to inspect for. If not specified, this matches with any source port. This setting is only used for protocols 6 (TCP) and 17 (UDP).
     * You can specify individual ports, for example `1994` and you can specify port ranges, for example `1990:1994` .
     */
    @JvmName("nxnggspgqfrmvmgr")
    public suspend fun sourcePorts(vararg argument: suspend RuleGroupPortRangeArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            RuleGroupPortRangeArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.sourcePorts = mapped
    }

    /**
     * @param argument The source ports to inspect for. If not specified, this matches with any source port. This setting is only used for protocols 6 (TCP) and 17 (UDP).
     * You can specify individual ports, for example `1994` and you can specify port ranges, for example `1990:1994` .
     */
    @JvmName("ygmvuuqscqqixvkr")
    public suspend fun sourcePorts(argument: suspend RuleGroupPortRangeArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(RuleGroupPortRangeArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.sourcePorts = mapped
    }

    /**
     * @param values The source ports to inspect for. If not specified, this matches with any source port. This setting is only used for protocols 6 (TCP) and 17 (UDP).
     * You can specify individual ports, for example `1994` and you can specify port ranges, for example `1990:1994` .
     */
    @JvmName("shbvwlwthfuxichf")
    public suspend fun sourcePorts(vararg values: RuleGroupPortRangeArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.sourcePorts = mapped
    }

    /**
     * @param value The source IP addresses and address ranges to inspect for, in CIDR notation. If not specified, this matches with any source address.
     */
    @JvmName("bqehexftolqokmln")
    public suspend fun sources(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.sources = mapped
    }

    /**
     * @param argument The source IP addresses and address ranges to inspect for, in CIDR notation. If not specified, this matches with any source address.
     */
    @JvmName("ahwggsnqnmfbdbyu")
    public suspend fun sources(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            RuleGroupAddressArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.sources = mapped
    }

    /**
     * @param argument The source IP addresses and address ranges to inspect for, in CIDR notation. If not specified, this matches with any source address.
     */
    @JvmName("tktaglpsbjebmrjo")
    public suspend fun sources(vararg argument: suspend RuleGroupAddressArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            RuleGroupAddressArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.sources = mapped
    }

    /**
     * @param argument The source IP addresses and address ranges to inspect for, in CIDR notation. If not specified, this matches with any source address.
     */
    @JvmName("ubphhvxmqsgxjdnh")
    public suspend fun sources(argument: suspend RuleGroupAddressArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(RuleGroupAddressArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.sources = mapped
    }

    /**
     * @param values The source IP addresses and address ranges to inspect for, in CIDR notation. If not specified, this matches with any source address.
     */
    @JvmName("sfpgyfvonsiroytx")
    public suspend fun sources(vararg values: RuleGroupAddressArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.sources = mapped
    }

    /**
     * @param value The TCP flags and masks to inspect for. If not specified, this matches with any settings. This setting is only used for protocol 6 (TCP).
     */
    @JvmName("yjatvpencrplqbbk")
    public suspend fun tcpFlags(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tcpFlags = mapped
    }

    /**
     * @param argument The TCP flags and masks to inspect for. If not specified, this matches with any settings. This setting is only used for protocol 6 (TCP).
     */
    @JvmName("sqkoxrmpxphoohfe")
    public suspend fun tcpFlags(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            RuleGroupTcpFlagFieldArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.tcpFlags = mapped
    }

    /**
     * @param argument The TCP flags and masks to inspect for. If not specified, this matches with any settings. This setting is only used for protocol 6 (TCP).
     */
    @JvmName("ykawngeyobsshkvh")
    public suspend fun tcpFlags(vararg argument: suspend RuleGroupTcpFlagFieldArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            RuleGroupTcpFlagFieldArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.tcpFlags = mapped
    }

    /**
     * @param argument The TCP flags and masks to inspect for. If not specified, this matches with any settings. This setting is only used for protocol 6 (TCP).
     */
    @JvmName("watmobxpsneqdhmi")
    public suspend fun tcpFlags(argument: suspend RuleGroupTcpFlagFieldArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(RuleGroupTcpFlagFieldArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.tcpFlags = mapped
    }

    /**
     * @param values The TCP flags and masks to inspect for. If not specified, this matches with any settings. This setting is only used for protocol 6 (TCP).
     */
    @JvmName("kfdoogfjheljaoru")
    public suspend fun tcpFlags(vararg values: RuleGroupTcpFlagFieldArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tcpFlags = mapped
    }

    internal fun build(): RuleGroupMatchAttributesArgs = RuleGroupMatchAttributesArgs(
        destinationPorts = destinationPorts,
        destinations = destinations,
        protocols = protocols,
        sourcePorts = sourcePorts,
        sources = sources,
        tcpFlags = tcpFlags,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy