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

com.pulumi.aws.finspace.kotlin.inputs.KxEnvironmentTransitGatewayConfigurationAttachmentNetworkAclConfigurationArgs.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: 6.57.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.aws.finspace.kotlin.inputs

import com.pulumi.aws.finspace.inputs.KxEnvironmentTransitGatewayConfigurationAttachmentNetworkAclConfigurationArgs.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.Int
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName

/**
 *
 * @property cidrBlock The IPv4 network range to allow or deny, in CIDR notation. The specified CIDR block is modified to its canonical form. For example, `100.68.0.18/18` will be converted to `100.68.0.0/18`.
 * @property icmpTypeCode Defines the ICMP protocol that consists of the ICMP type and code. Defined below.
 * @property portRange Range of ports the rule applies to. Defined below.
 * @property protocol Protocol number. A value of `1` means all the protocols.
 * @property ruleAction Indicates whether to `allow` or `deny` the traffic that matches the rule.
 * @property ruleNumber Rule number for the entry. All the network ACL entries are processed in ascending order by rule number.
 */
public data class KxEnvironmentTransitGatewayConfigurationAttachmentNetworkAclConfigurationArgs(
    public val cidrBlock: Output,
    public val icmpTypeCode: Output? =
        null,
    public val portRange: Output? =
        null,
    public val protocol: Output,
    public val ruleAction: Output,
    public val ruleNumber: Output,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.aws.finspace.inputs.KxEnvironmentTransitGatewayConfigurationAttachmentNetworkAclConfigurationArgs =
        com.pulumi.aws.finspace.inputs.KxEnvironmentTransitGatewayConfigurationAttachmentNetworkAclConfigurationArgs.builder()
            .cidrBlock(cidrBlock.applyValue({ args0 -> args0 }))
            .icmpTypeCode(icmpTypeCode?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .portRange(portRange?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .protocol(protocol.applyValue({ args0 -> args0 }))
            .ruleAction(ruleAction.applyValue({ args0 -> args0 }))
            .ruleNumber(ruleNumber.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [KxEnvironmentTransitGatewayConfigurationAttachmentNetworkAclConfigurationArgs].
 */
@PulumiTagMarker
public class KxEnvironmentTransitGatewayConfigurationAttachmentNetworkAclConfigurationArgsBuilder
internal constructor() {
    private var cidrBlock: Output? = null

    private var icmpTypeCode:
        Output? =
        null

    private var portRange:
        Output? =
        null

    private var protocol: Output? = null

    private var ruleAction: Output? = null

    private var ruleNumber: Output? = null

    /**
     * @param value The IPv4 network range to allow or deny, in CIDR notation. The specified CIDR block is modified to its canonical form. For example, `100.68.0.18/18` will be converted to `100.68.0.0/18`.
     */
    @JvmName("abshyufyiceijtvw")
    public suspend fun cidrBlock(`value`: Output) {
        this.cidrBlock = value
    }

    /**
     * @param value Defines the ICMP protocol that consists of the ICMP type and code. Defined below.
     */
    @JvmName("dduafoilrvabscgm")
    public suspend fun icmpTypeCode(`value`: Output) {
        this.icmpTypeCode = value
    }

    /**
     * @param value Range of ports the rule applies to. Defined below.
     */
    @JvmName("psuollhvjrvtgccp")
    public suspend fun portRange(`value`: Output) {
        this.portRange = value
    }

    /**
     * @param value Protocol number. A value of `1` means all the protocols.
     */
    @JvmName("eaxasvguxkoxotqw")
    public suspend fun protocol(`value`: Output) {
        this.protocol = value
    }

    /**
     * @param value Indicates whether to `allow` or `deny` the traffic that matches the rule.
     */
    @JvmName("demsyijktvybhcsr")
    public suspend fun ruleAction(`value`: Output) {
        this.ruleAction = value
    }

    /**
     * @param value Rule number for the entry. All the network ACL entries are processed in ascending order by rule number.
     */
    @JvmName("iapvmruumhpfyvms")
    public suspend fun ruleNumber(`value`: Output) {
        this.ruleNumber = value
    }

    /**
     * @param value The IPv4 network range to allow or deny, in CIDR notation. The specified CIDR block is modified to its canonical form. For example, `100.68.0.18/18` will be converted to `100.68.0.0/18`.
     */
    @JvmName("nfrwiwyurwvjagva")
    public suspend fun cidrBlock(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.cidrBlock = mapped
    }

    /**
     * @param value Defines the ICMP protocol that consists of the ICMP type and code. Defined below.
     */
    @JvmName("axpxhnjtbjnlkuyl")
    public suspend fun icmpTypeCode(`value`: KxEnvironmentTransitGatewayConfigurationAttachmentNetworkAclConfigurationIcmpTypeCodeArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.icmpTypeCode = mapped
    }

    /**
     * @param argument Defines the ICMP protocol that consists of the ICMP type and code. Defined below.
     */
    @JvmName("tavxtyicnchsjxcr")
    public suspend fun icmpTypeCode(argument: suspend KxEnvironmentTransitGatewayConfigurationAttachmentNetworkAclConfigurationIcmpTypeCodeArgsBuilder.() -> Unit) {
        val toBeMapped =
            KxEnvironmentTransitGatewayConfigurationAttachmentNetworkAclConfigurationIcmpTypeCodeArgsBuilder().applySuspend {
                argument()
            }.build()
        val mapped = of(toBeMapped)
        this.icmpTypeCode = mapped
    }

    /**
     * @param value Range of ports the rule applies to. Defined below.
     */
    @JvmName("cyfrbdkylgbnqfnb")
    public suspend fun portRange(`value`: KxEnvironmentTransitGatewayConfigurationAttachmentNetworkAclConfigurationPortRangeArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.portRange = mapped
    }

    /**
     * @param argument Range of ports the rule applies to. Defined below.
     */
    @JvmName("ewrfveyopleqbkqw")
    public suspend fun portRange(argument: suspend KxEnvironmentTransitGatewayConfigurationAttachmentNetworkAclConfigurationPortRangeArgsBuilder.() -> Unit) {
        val toBeMapped =
            KxEnvironmentTransitGatewayConfigurationAttachmentNetworkAclConfigurationPortRangeArgsBuilder().applySuspend {
                argument()
            }.build()
        val mapped = of(toBeMapped)
        this.portRange = mapped
    }

    /**
     * @param value Protocol number. A value of `1` means all the protocols.
     */
    @JvmName("dexiuepjawxftsuk")
    public suspend fun protocol(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.protocol = mapped
    }

    /**
     * @param value Indicates whether to `allow` or `deny` the traffic that matches the rule.
     */
    @JvmName("fpfxtfyjavyberku")
    public suspend fun ruleAction(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.ruleAction = mapped
    }

    /**
     * @param value Rule number for the entry. All the network ACL entries are processed in ascending order by rule number.
     */
    @JvmName("chvnerancccfvtgu")
    public suspend fun ruleNumber(`value`: Int) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.ruleNumber = mapped
    }

    internal fun build(): KxEnvironmentTransitGatewayConfigurationAttachmentNetworkAclConfigurationArgs =
        KxEnvironmentTransitGatewayConfigurationAttachmentNetworkAclConfigurationArgs(
            cidrBlock = cidrBlock ?: throw PulumiNullFieldException("cidrBlock"),
            icmpTypeCode = icmpTypeCode,
            portRange = portRange,
            protocol = protocol ?: throw PulumiNullFieldException("protocol"),
            ruleAction = ruleAction ?: throw PulumiNullFieldException("ruleAction"),
            ruleNumber = ruleNumber ?: throw PulumiNullFieldException("ruleNumber"),
        )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy