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

com.pulumi.awsnative.ec2.kotlin.NetworkInterfaceArgs.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.ec2.kotlin

import com.pulumi.awsnative.ec2.NetworkInterfaceArgs.builder
import com.pulumi.awsnative.ec2.kotlin.inputs.NetworkInterfaceConnectionTrackingSpecificationArgs
import com.pulumi.awsnative.ec2.kotlin.inputs.NetworkInterfaceConnectionTrackingSpecificationArgsBuilder
import com.pulumi.awsnative.ec2.kotlin.inputs.NetworkInterfaceInstanceIpv6AddressArgs
import com.pulumi.awsnative.ec2.kotlin.inputs.NetworkInterfaceInstanceIpv6AddressArgsBuilder
import com.pulumi.awsnative.ec2.kotlin.inputs.NetworkInterfaceIpv4PrefixSpecificationArgs
import com.pulumi.awsnative.ec2.kotlin.inputs.NetworkInterfaceIpv4PrefixSpecificationArgsBuilder
import com.pulumi.awsnative.ec2.kotlin.inputs.NetworkInterfaceIpv6PrefixSpecificationArgs
import com.pulumi.awsnative.ec2.kotlin.inputs.NetworkInterfaceIpv6PrefixSpecificationArgsBuilder
import com.pulumi.awsnative.ec2.kotlin.inputs.NetworkInterfacePrivateIpAddressSpecificationArgs
import com.pulumi.awsnative.ec2.kotlin.inputs.NetworkInterfacePrivateIpAddressSpecificationArgsBuilder
import com.pulumi.awsnative.kotlin.inputs.TagArgs
import com.pulumi.awsnative.kotlin.inputs.TagArgsBuilder
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.Boolean
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 * The AWS::EC2::NetworkInterface resource creates network interface
 * @property connectionTrackingSpecification A connection tracking specification for the network interface.
 * @property description A description for the network interface.
 * @property enablePrimaryIpv6 If you have instances or ENIs that rely on the IPv6 address not changing, to avoid disrupting traffic to instances or ENIs, you can enable a primary IPv6 address. Enable this option to automatically assign an IPv6 associated with the ENI attached to your instance to be the primary IPv6 address. When you enable an IPv6 address to be a primary IPv6, you cannot disable it. Traffic will be routed to the primary IPv6 address until the instance is terminated or the ENI is detached. If you have multiple IPv6 addresses associated with an ENI and you enable a primary IPv6 address, the first IPv6 address associated with the ENI becomes the primary IPv6 address.
 * @property groupSet A list of security group IDs associated with this network interface.
 * @property interfaceType Indicates the type of network interface.
 * @property ipv4PrefixCount The number of IPv4 prefixes to assign to a network interface. When you specify a number of IPv4 prefixes, Amazon EC2 selects these prefixes from your existing subnet CIDR reservations, if available, or from free spaces in the subnet. By default, these will be /28 prefixes. You can't specify a count of IPv4 prefixes if you've specified one of the following: specific IPv4 prefixes, specific private IPv4 addresses, or a count of private IPv4 addresses.
 * @property ipv4Prefixes Assigns a list of IPv4 prefixes to the network interface. If you want EC2 to automatically assign IPv4 prefixes, use the Ipv4PrefixCount property and do not specify this property. Presently, only /28 prefixes are supported. You can't specify IPv4 prefixes if you've specified one of the following: a count of IPv4 prefixes, specific private IPv4 addresses, or a count of private IPv4 addresses.
 * @property ipv6AddressCount The number of IPv6 addresses to assign to a network interface. Amazon EC2 automatically selects the IPv6 addresses from the subnet range. To specify specific IPv6 addresses, use the Ipv6Addresses property and don't specify this property.
 * @property ipv6Addresses One or more specific IPv6 addresses from the IPv6 CIDR block range of your subnet to associate with the network interface. If you're specifying a number of IPv6 addresses, use the Ipv6AddressCount property and don't specify this property.
 * @property ipv6PrefixCount The number of IPv6 prefixes to assign to a network interface. When you specify a number of IPv6 prefixes, Amazon EC2 selects these prefixes from your existing subnet CIDR reservations, if available, or from free spaces in the subnet. By default, these will be /80 prefixes. You can't specify a count of IPv6 prefixes if you've specified one of the following: specific IPv6 prefixes, specific IPv6 addresses, or a count of IPv6 addresses.
 * @property ipv6Prefixes Assigns a list of IPv6 prefixes to the network interface. If you want EC2 to automatically assign IPv6 prefixes, use the Ipv6PrefixCount property and do not specify this property. Presently, only /80 prefixes are supported. You can't specify IPv6 prefixes if you've specified one of the following: a count of IPv6 prefixes, specific IPv6 addresses, or a count of IPv6 addresses.
 * @property privateIpAddress Assigns a single private IP address to the network interface, which is used as the primary private IP address. If you want to specify multiple private IP address, use the PrivateIpAddresses property.
 * @property privateIpAddresses Assigns a list of private IP addresses to the network interface. You can specify a primary private IP address by setting the value of the Primary property to true in the PrivateIpAddressSpecification property. If you want EC2 to automatically assign private IP addresses, use the SecondaryPrivateIpAddressCount property and do not specify this property.
 * @property secondaryPrivateIpAddressCount The number of secondary private IPv4 addresses to assign to a network interface. When you specify a number of secondary IPv4 addresses, Amazon EC2 selects these IP addresses within the subnet's IPv4 CIDR range. You can't specify this option and specify more than one private IP address using privateIpAddresses
 * @property sourceDestCheck Indicates whether traffic to or from the instance is validated.
 * @property subnetId The ID of the subnet to associate with the network interface.
 * @property tags An arbitrary set of tags (key-value pairs) for this network interface.
 */
public data class NetworkInterfaceArgs(
    public val connectionTrackingSpecification: Output? = null,
    public val description: Output? = null,
    public val enablePrimaryIpv6: Output? = null,
    public val groupSet: Output>? = null,
    public val interfaceType: Output? = null,
    public val ipv4PrefixCount: Output? = null,
    public val ipv4Prefixes: Output>? = null,
    public val ipv6AddressCount: Output? = null,
    public val ipv6Addresses: Output>? = null,
    public val ipv6PrefixCount: Output? = null,
    public val ipv6Prefixes: Output>? = null,
    public val privateIpAddress: Output? = null,
    public val privateIpAddresses: Output>? =
        null,
    public val secondaryPrivateIpAddressCount: Output? = null,
    public val sourceDestCheck: Output? = null,
    public val subnetId: Output? = null,
    public val tags: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.ec2.NetworkInterfaceArgs =
        com.pulumi.awsnative.ec2.NetworkInterfaceArgs.builder()
            .connectionTrackingSpecification(
                connectionTrackingSpecification?.applyValue({ args0 ->
                    args0.let({ args0 -> args0.toJava() })
                }),
            )
            .description(description?.applyValue({ args0 -> args0 }))
            .enablePrimaryIpv6(enablePrimaryIpv6?.applyValue({ args0 -> args0 }))
            .groupSet(groupSet?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .interfaceType(interfaceType?.applyValue({ args0 -> args0 }))
            .ipv4PrefixCount(ipv4PrefixCount?.applyValue({ args0 -> args0 }))
            .ipv4Prefixes(
                ipv4Prefixes?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .ipv6AddressCount(ipv6AddressCount?.applyValue({ args0 -> args0 }))
            .ipv6Addresses(
                ipv6Addresses?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .ipv6PrefixCount(ipv6PrefixCount?.applyValue({ args0 -> args0 }))
            .ipv6Prefixes(
                ipv6Prefixes?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .privateIpAddress(privateIpAddress?.applyValue({ args0 -> args0 }))
            .privateIpAddresses(
                privateIpAddresses?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 -> args0.toJava() })
                    })
                }),
            )
            .secondaryPrivateIpAddressCount(secondaryPrivateIpAddressCount?.applyValue({ args0 -> args0 }))
            .sourceDestCheck(sourceDestCheck?.applyValue({ args0 -> args0 }))
            .subnetId(subnetId?.applyValue({ args0 -> args0 }))
            .tags(
                tags?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

/**
 * Builder for [NetworkInterfaceArgs].
 */
@PulumiTagMarker
public class NetworkInterfaceArgsBuilder internal constructor() {
    private var connectionTrackingSpecification:
        Output? = null

    private var description: Output? = null

    private var enablePrimaryIpv6: Output? = null

    private var groupSet: Output>? = null

    private var interfaceType: Output? = null

    private var ipv4PrefixCount: Output? = null

    private var ipv4Prefixes: Output>? = null

    private var ipv6AddressCount: Output? = null

    private var ipv6Addresses: Output>? = null

    private var ipv6PrefixCount: Output? = null

    private var ipv6Prefixes: Output>? = null

    private var privateIpAddress: Output? = null

    private var privateIpAddresses: Output>? =
        null

    private var secondaryPrivateIpAddressCount: Output? = null

    private var sourceDestCheck: Output? = null

    private var subnetId: Output? = null

    private var tags: Output>? = null

    /**
     * @param value A connection tracking specification for the network interface.
     */
    @JvmName("cyplqijpiygljnvy")
    public suspend fun connectionTrackingSpecification(`value`: Output) {
        this.connectionTrackingSpecification = value
    }

    /**
     * @param value A description for the network interface.
     */
    @JvmName("uqwqyhdicdemgjst")
    public suspend fun description(`value`: Output) {
        this.description = value
    }

    /**
     * @param value If you have instances or ENIs that rely on the IPv6 address not changing, to avoid disrupting traffic to instances or ENIs, you can enable a primary IPv6 address. Enable this option to automatically assign an IPv6 associated with the ENI attached to your instance to be the primary IPv6 address. When you enable an IPv6 address to be a primary IPv6, you cannot disable it. Traffic will be routed to the primary IPv6 address until the instance is terminated or the ENI is detached. If you have multiple IPv6 addresses associated with an ENI and you enable a primary IPv6 address, the first IPv6 address associated with the ENI becomes the primary IPv6 address.
     */
    @JvmName("roboukdsuiuahrow")
    public suspend fun enablePrimaryIpv6(`value`: Output) {
        this.enablePrimaryIpv6 = value
    }

    /**
     * @param value A list of security group IDs associated with this network interface.
     */
    @JvmName("uwmbmgjhkhrsngno")
    public suspend fun groupSet(`value`: Output>) {
        this.groupSet = value
    }

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

    /**
     * @param values A list of security group IDs associated with this network interface.
     */
    @JvmName("gvqvonhccgjtxodt")
    public suspend fun groupSet(values: List>) {
        this.groupSet = Output.all(values)
    }

    /**
     * @param value Indicates the type of network interface.
     */
    @JvmName("skibrqfejeqrhslv")
    public suspend fun interfaceType(`value`: Output) {
        this.interfaceType = value
    }

    /**
     * @param value The number of IPv4 prefixes to assign to a network interface. When you specify a number of IPv4 prefixes, Amazon EC2 selects these prefixes from your existing subnet CIDR reservations, if available, or from free spaces in the subnet. By default, these will be /28 prefixes. You can't specify a count of IPv4 prefixes if you've specified one of the following: specific IPv4 prefixes, specific private IPv4 addresses, or a count of private IPv4 addresses.
     */
    @JvmName("lxvsdlngvsslrnqn")
    public suspend fun ipv4PrefixCount(`value`: Output) {
        this.ipv4PrefixCount = value
    }

    /**
     * @param value Assigns a list of IPv4 prefixes to the network interface. If you want EC2 to automatically assign IPv4 prefixes, use the Ipv4PrefixCount property and do not specify this property. Presently, only /28 prefixes are supported. You can't specify IPv4 prefixes if you've specified one of the following: a count of IPv4 prefixes, specific private IPv4 addresses, or a count of private IPv4 addresses.
     */
    @JvmName("yckplyopaxorwccd")
    public suspend fun ipv4Prefixes(`value`: Output>) {
        this.ipv4Prefixes = value
    }

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

    /**
     * @param values Assigns a list of IPv4 prefixes to the network interface. If you want EC2 to automatically assign IPv4 prefixes, use the Ipv4PrefixCount property and do not specify this property. Presently, only /28 prefixes are supported. You can't specify IPv4 prefixes if you've specified one of the following: a count of IPv4 prefixes, specific private IPv4 addresses, or a count of private IPv4 addresses.
     */
    @JvmName("cemjfnstuawsewlp")
    public suspend fun ipv4Prefixes(values: List>) {
        this.ipv4Prefixes = Output.all(values)
    }

    /**
     * @param value The number of IPv6 addresses to assign to a network interface. Amazon EC2 automatically selects the IPv6 addresses from the subnet range. To specify specific IPv6 addresses, use the Ipv6Addresses property and don't specify this property.
     */
    @JvmName("gduldhatqkpulyde")
    public suspend fun ipv6AddressCount(`value`: Output) {
        this.ipv6AddressCount = value
    }

    /**
     * @param value One or more specific IPv6 addresses from the IPv6 CIDR block range of your subnet to associate with the network interface. If you're specifying a number of IPv6 addresses, use the Ipv6AddressCount property and don't specify this property.
     */
    @JvmName("ehqphpexfcyjopqi")
    public suspend fun ipv6Addresses(`value`: Output>) {
        this.ipv6Addresses = value
    }

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

    /**
     * @param values One or more specific IPv6 addresses from the IPv6 CIDR block range of your subnet to associate with the network interface. If you're specifying a number of IPv6 addresses, use the Ipv6AddressCount property and don't specify this property.
     */
    @JvmName("rvmyclxyagsmrvjr")
    public suspend fun ipv6Addresses(values: List>) {
        this.ipv6Addresses = Output.all(values)
    }

    /**
     * @param value The number of IPv6 prefixes to assign to a network interface. When you specify a number of IPv6 prefixes, Amazon EC2 selects these prefixes from your existing subnet CIDR reservations, if available, or from free spaces in the subnet. By default, these will be /80 prefixes. You can't specify a count of IPv6 prefixes if you've specified one of the following: specific IPv6 prefixes, specific IPv6 addresses, or a count of IPv6 addresses.
     */
    @JvmName("ogyeyxhpkkwvmcmo")
    public suspend fun ipv6PrefixCount(`value`: Output) {
        this.ipv6PrefixCount = value
    }

    /**
     * @param value Assigns a list of IPv6 prefixes to the network interface. If you want EC2 to automatically assign IPv6 prefixes, use the Ipv6PrefixCount property and do not specify this property. Presently, only /80 prefixes are supported. You can't specify IPv6 prefixes if you've specified one of the following: a count of IPv6 prefixes, specific IPv6 addresses, or a count of IPv6 addresses.
     */
    @JvmName("ubndrgqqaketqhvb")
    public suspend fun ipv6Prefixes(`value`: Output>) {
        this.ipv6Prefixes = value
    }

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

    /**
     * @param values Assigns a list of IPv6 prefixes to the network interface. If you want EC2 to automatically assign IPv6 prefixes, use the Ipv6PrefixCount property and do not specify this property. Presently, only /80 prefixes are supported. You can't specify IPv6 prefixes if you've specified one of the following: a count of IPv6 prefixes, specific IPv6 addresses, or a count of IPv6 addresses.
     */
    @JvmName("ibboudeyguancmlc")
    public suspend fun ipv6Prefixes(values: List>) {
        this.ipv6Prefixes = Output.all(values)
    }

    /**
     * @param value Assigns a single private IP address to the network interface, which is used as the primary private IP address. If you want to specify multiple private IP address, use the PrivateIpAddresses property.
     */
    @JvmName("mwhmsrviameebqge")
    public suspend fun privateIpAddress(`value`: Output) {
        this.privateIpAddress = value
    }

    /**
     * @param value Assigns a list of private IP addresses to the network interface. You can specify a primary private IP address by setting the value of the Primary property to true in the PrivateIpAddressSpecification property. If you want EC2 to automatically assign private IP addresses, use the SecondaryPrivateIpAddressCount property and do not specify this property.
     */
    @JvmName("adjafyxgrcckwgum")
    public suspend fun privateIpAddresses(`value`: Output>) {
        this.privateIpAddresses = value
    }

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

    /**
     * @param values Assigns a list of private IP addresses to the network interface. You can specify a primary private IP address by setting the value of the Primary property to true in the PrivateIpAddressSpecification property. If you want EC2 to automatically assign private IP addresses, use the SecondaryPrivateIpAddressCount property and do not specify this property.
     */
    @JvmName("pdnxbprvsubgjtie")
    public suspend fun privateIpAddresses(values: List>) {
        this.privateIpAddresses = Output.all(values)
    }

    /**
     * @param value The number of secondary private IPv4 addresses to assign to a network interface. When you specify a number of secondary IPv4 addresses, Amazon EC2 selects these IP addresses within the subnet's IPv4 CIDR range. You can't specify this option and specify more than one private IP address using privateIpAddresses
     */
    @JvmName("etxinmkhfulbmvwe")
    public suspend fun secondaryPrivateIpAddressCount(`value`: Output) {
        this.secondaryPrivateIpAddressCount = value
    }

    /**
     * @param value Indicates whether traffic to or from the instance is validated.
     */
    @JvmName("unxtxulodshmqsaq")
    public suspend fun sourceDestCheck(`value`: Output) {
        this.sourceDestCheck = value
    }

    /**
     * @param value The ID of the subnet to associate with the network interface.
     */
    @JvmName("djarngkwobhbkefi")
    public suspend fun subnetId(`value`: Output) {
        this.subnetId = value
    }

    /**
     * @param value An arbitrary set of tags (key-value pairs) for this network interface.
     */
    @JvmName("xgsqfjcifmbedmik")
    public suspend fun tags(`value`: Output>) {
        this.tags = value
    }

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

    /**
     * @param values An arbitrary set of tags (key-value pairs) for this network interface.
     */
    @JvmName("uethmxmhttyepnud")
    public suspend fun tags(values: List>) {
        this.tags = Output.all(values)
    }

    /**
     * @param value A connection tracking specification for the network interface.
     */
    @JvmName("bcmvksnodhvxerhh")
    public suspend fun connectionTrackingSpecification(`value`: NetworkInterfaceConnectionTrackingSpecificationArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.connectionTrackingSpecification = mapped
    }

    /**
     * @param argument A connection tracking specification for the network interface.
     */
    @JvmName("ovxljgytkbpnuwou")
    public suspend fun connectionTrackingSpecification(argument: suspend NetworkInterfaceConnectionTrackingSpecificationArgsBuilder.() -> Unit) {
        val toBeMapped = NetworkInterfaceConnectionTrackingSpecificationArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.connectionTrackingSpecification = mapped
    }

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

    /**
     * @param value If you have instances or ENIs that rely on the IPv6 address not changing, to avoid disrupting traffic to instances or ENIs, you can enable a primary IPv6 address. Enable this option to automatically assign an IPv6 associated with the ENI attached to your instance to be the primary IPv6 address. When you enable an IPv6 address to be a primary IPv6, you cannot disable it. Traffic will be routed to the primary IPv6 address until the instance is terminated or the ENI is detached. If you have multiple IPv6 addresses associated with an ENI and you enable a primary IPv6 address, the first IPv6 address associated with the ENI becomes the primary IPv6 address.
     */
    @JvmName("spktcvfnwnhlhubc")
    public suspend fun enablePrimaryIpv6(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.enablePrimaryIpv6 = mapped
    }

    /**
     * @param value A list of security group IDs associated with this network interface.
     */
    @JvmName("irfjymowhgmbcxpb")
    public suspend fun groupSet(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.groupSet = mapped
    }

    /**
     * @param values A list of security group IDs associated with this network interface.
     */
    @JvmName("wwrvyxsccbgxydhb")
    public suspend fun groupSet(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.groupSet = mapped
    }

    /**
     * @param value Indicates the type of network interface.
     */
    @JvmName("qrphysjmrtlnyvmo")
    public suspend fun interfaceType(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.interfaceType = mapped
    }

    /**
     * @param value The number of IPv4 prefixes to assign to a network interface. When you specify a number of IPv4 prefixes, Amazon EC2 selects these prefixes from your existing subnet CIDR reservations, if available, or from free spaces in the subnet. By default, these will be /28 prefixes. You can't specify a count of IPv4 prefixes if you've specified one of the following: specific IPv4 prefixes, specific private IPv4 addresses, or a count of private IPv4 addresses.
     */
    @JvmName("brbljhgbwgvpanuo")
    public suspend fun ipv4PrefixCount(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.ipv4PrefixCount = mapped
    }

    /**
     * @param value Assigns a list of IPv4 prefixes to the network interface. If you want EC2 to automatically assign IPv4 prefixes, use the Ipv4PrefixCount property and do not specify this property. Presently, only /28 prefixes are supported. You can't specify IPv4 prefixes if you've specified one of the following: a count of IPv4 prefixes, specific private IPv4 addresses, or a count of private IPv4 addresses.
     */
    @JvmName("nsrdfhffthbhlvcb")
    public suspend fun ipv4Prefixes(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.ipv4Prefixes = mapped
    }

    /**
     * @param argument Assigns a list of IPv4 prefixes to the network interface. If you want EC2 to automatically assign IPv4 prefixes, use the Ipv4PrefixCount property and do not specify this property. Presently, only /28 prefixes are supported. You can't specify IPv4 prefixes if you've specified one of the following: a count of IPv4 prefixes, specific private IPv4 addresses, or a count of private IPv4 addresses.
     */
    @JvmName("adpoimfvlptpxcmm")
    public suspend fun ipv4Prefixes(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            NetworkInterfaceIpv4PrefixSpecificationArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.ipv4Prefixes = mapped
    }

    /**
     * @param argument Assigns a list of IPv4 prefixes to the network interface. If you want EC2 to automatically assign IPv4 prefixes, use the Ipv4PrefixCount property and do not specify this property. Presently, only /28 prefixes are supported. You can't specify IPv4 prefixes if you've specified one of the following: a count of IPv4 prefixes, specific private IPv4 addresses, or a count of private IPv4 addresses.
     */
    @JvmName("ohsuvrquqgenthvp")
    public suspend fun ipv4Prefixes(vararg argument: suspend NetworkInterfaceIpv4PrefixSpecificationArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            NetworkInterfaceIpv4PrefixSpecificationArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.ipv4Prefixes = mapped
    }

    /**
     * @param argument Assigns a list of IPv4 prefixes to the network interface. If you want EC2 to automatically assign IPv4 prefixes, use the Ipv4PrefixCount property and do not specify this property. Presently, only /28 prefixes are supported. You can't specify IPv4 prefixes if you've specified one of the following: a count of IPv4 prefixes, specific private IPv4 addresses, or a count of private IPv4 addresses.
     */
    @JvmName("uqlwjatqaphhngio")
    public suspend fun ipv4Prefixes(argument: suspend NetworkInterfaceIpv4PrefixSpecificationArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            NetworkInterfaceIpv4PrefixSpecificationArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.ipv4Prefixes = mapped
    }

    /**
     * @param values Assigns a list of IPv4 prefixes to the network interface. If you want EC2 to automatically assign IPv4 prefixes, use the Ipv4PrefixCount property and do not specify this property. Presently, only /28 prefixes are supported. You can't specify IPv4 prefixes if you've specified one of the following: a count of IPv4 prefixes, specific private IPv4 addresses, or a count of private IPv4 addresses.
     */
    @JvmName("johxfuinnjysxxab")
    public suspend fun ipv4Prefixes(vararg values: NetworkInterfaceIpv4PrefixSpecificationArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.ipv4Prefixes = mapped
    }

    /**
     * @param value The number of IPv6 addresses to assign to a network interface. Amazon EC2 automatically selects the IPv6 addresses from the subnet range. To specify specific IPv6 addresses, use the Ipv6Addresses property and don't specify this property.
     */
    @JvmName("hceaaubcaltpjnsi")
    public suspend fun ipv6AddressCount(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.ipv6AddressCount = mapped
    }

    /**
     * @param value One or more specific IPv6 addresses from the IPv6 CIDR block range of your subnet to associate with the network interface. If you're specifying a number of IPv6 addresses, use the Ipv6AddressCount property and don't specify this property.
     */
    @JvmName("oiqpavaeuasgicmf")
    public suspend fun ipv6Addresses(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.ipv6Addresses = mapped
    }

    /**
     * @param argument One or more specific IPv6 addresses from the IPv6 CIDR block range of your subnet to associate with the network interface. If you're specifying a number of IPv6 addresses, use the Ipv6AddressCount property and don't specify this property.
     */
    @JvmName("fnjrnsocmghnrdwk")
    public suspend fun ipv6Addresses(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            NetworkInterfaceInstanceIpv6AddressArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.ipv6Addresses = mapped
    }

    /**
     * @param argument One or more specific IPv6 addresses from the IPv6 CIDR block range of your subnet to associate with the network interface. If you're specifying a number of IPv6 addresses, use the Ipv6AddressCount property and don't specify this property.
     */
    @JvmName("nksesmdiiwkksqne")
    public suspend fun ipv6Addresses(vararg argument: suspend NetworkInterfaceInstanceIpv6AddressArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            NetworkInterfaceInstanceIpv6AddressArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.ipv6Addresses = mapped
    }

    /**
     * @param argument One or more specific IPv6 addresses from the IPv6 CIDR block range of your subnet to associate with the network interface. If you're specifying a number of IPv6 addresses, use the Ipv6AddressCount property and don't specify this property.
     */
    @JvmName("nhsrtohogltsmhtw")
    public suspend fun ipv6Addresses(argument: suspend NetworkInterfaceInstanceIpv6AddressArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            NetworkInterfaceInstanceIpv6AddressArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.ipv6Addresses = mapped
    }

    /**
     * @param values One or more specific IPv6 addresses from the IPv6 CIDR block range of your subnet to associate with the network interface. If you're specifying a number of IPv6 addresses, use the Ipv6AddressCount property and don't specify this property.
     */
    @JvmName("oqfwvwrpnjaiamsf")
    public suspend fun ipv6Addresses(vararg values: NetworkInterfaceInstanceIpv6AddressArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.ipv6Addresses = mapped
    }

    /**
     * @param value The number of IPv6 prefixes to assign to a network interface. When you specify a number of IPv6 prefixes, Amazon EC2 selects these prefixes from your existing subnet CIDR reservations, if available, or from free spaces in the subnet. By default, these will be /80 prefixes. You can't specify a count of IPv6 prefixes if you've specified one of the following: specific IPv6 prefixes, specific IPv6 addresses, or a count of IPv6 addresses.
     */
    @JvmName("wstihyfxjtcrroxk")
    public suspend fun ipv6PrefixCount(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.ipv6PrefixCount = mapped
    }

    /**
     * @param value Assigns a list of IPv6 prefixes to the network interface. If you want EC2 to automatically assign IPv6 prefixes, use the Ipv6PrefixCount property and do not specify this property. Presently, only /80 prefixes are supported. You can't specify IPv6 prefixes if you've specified one of the following: a count of IPv6 prefixes, specific IPv6 addresses, or a count of IPv6 addresses.
     */
    @JvmName("ykeckvwhoestncaq")
    public suspend fun ipv6Prefixes(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.ipv6Prefixes = mapped
    }

    /**
     * @param argument Assigns a list of IPv6 prefixes to the network interface. If you want EC2 to automatically assign IPv6 prefixes, use the Ipv6PrefixCount property and do not specify this property. Presently, only /80 prefixes are supported. You can't specify IPv6 prefixes if you've specified one of the following: a count of IPv6 prefixes, specific IPv6 addresses, or a count of IPv6 addresses.
     */
    @JvmName("luahqqqyaogbddmb")
    public suspend fun ipv6Prefixes(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            NetworkInterfaceIpv6PrefixSpecificationArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.ipv6Prefixes = mapped
    }

    /**
     * @param argument Assigns a list of IPv6 prefixes to the network interface. If you want EC2 to automatically assign IPv6 prefixes, use the Ipv6PrefixCount property and do not specify this property. Presently, only /80 prefixes are supported. You can't specify IPv6 prefixes if you've specified one of the following: a count of IPv6 prefixes, specific IPv6 addresses, or a count of IPv6 addresses.
     */
    @JvmName("atyejljldocsjlbw")
    public suspend fun ipv6Prefixes(vararg argument: suspend NetworkInterfaceIpv6PrefixSpecificationArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            NetworkInterfaceIpv6PrefixSpecificationArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.ipv6Prefixes = mapped
    }

    /**
     * @param argument Assigns a list of IPv6 prefixes to the network interface. If you want EC2 to automatically assign IPv6 prefixes, use the Ipv6PrefixCount property and do not specify this property. Presently, only /80 prefixes are supported. You can't specify IPv6 prefixes if you've specified one of the following: a count of IPv6 prefixes, specific IPv6 addresses, or a count of IPv6 addresses.
     */
    @JvmName("swegltdhtsqldcle")
    public suspend fun ipv6Prefixes(argument: suspend NetworkInterfaceIpv6PrefixSpecificationArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            NetworkInterfaceIpv6PrefixSpecificationArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.ipv6Prefixes = mapped
    }

    /**
     * @param values Assigns a list of IPv6 prefixes to the network interface. If you want EC2 to automatically assign IPv6 prefixes, use the Ipv6PrefixCount property and do not specify this property. Presently, only /80 prefixes are supported. You can't specify IPv6 prefixes if you've specified one of the following: a count of IPv6 prefixes, specific IPv6 addresses, or a count of IPv6 addresses.
     */
    @JvmName("qbgpayassartbgnk")
    public suspend fun ipv6Prefixes(vararg values: NetworkInterfaceIpv6PrefixSpecificationArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.ipv6Prefixes = mapped
    }

    /**
     * @param value Assigns a single private IP address to the network interface, which is used as the primary private IP address. If you want to specify multiple private IP address, use the PrivateIpAddresses property.
     */
    @JvmName("eeixukqfkdrdnnyw")
    public suspend fun privateIpAddress(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.privateIpAddress = mapped
    }

    /**
     * @param value Assigns a list of private IP addresses to the network interface. You can specify a primary private IP address by setting the value of the Primary property to true in the PrivateIpAddressSpecification property. If you want EC2 to automatically assign private IP addresses, use the SecondaryPrivateIpAddressCount property and do not specify this property.
     */
    @JvmName("mghoprpqyimqycmg")
    public suspend fun privateIpAddresses(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.privateIpAddresses = mapped
    }

    /**
     * @param argument Assigns a list of private IP addresses to the network interface. You can specify a primary private IP address by setting the value of the Primary property to true in the PrivateIpAddressSpecification property. If you want EC2 to automatically assign private IP addresses, use the SecondaryPrivateIpAddressCount property and do not specify this property.
     */
    @JvmName("qvyvlgdlcgtscftb")
    public suspend fun privateIpAddresses(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            NetworkInterfacePrivateIpAddressSpecificationArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.privateIpAddresses = mapped
    }

    /**
     * @param argument Assigns a list of private IP addresses to the network interface. You can specify a primary private IP address by setting the value of the Primary property to true in the PrivateIpAddressSpecification property. If you want EC2 to automatically assign private IP addresses, use the SecondaryPrivateIpAddressCount property and do not specify this property.
     */
    @JvmName("uvofoookvlcqlndv")
    public suspend fun privateIpAddresses(vararg argument: suspend NetworkInterfacePrivateIpAddressSpecificationArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            NetworkInterfacePrivateIpAddressSpecificationArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.privateIpAddresses = mapped
    }

    /**
     * @param argument Assigns a list of private IP addresses to the network interface. You can specify a primary private IP address by setting the value of the Primary property to true in the PrivateIpAddressSpecification property. If you want EC2 to automatically assign private IP addresses, use the SecondaryPrivateIpAddressCount property and do not specify this property.
     */
    @JvmName("rioixqacstrkqmnt")
    public suspend fun privateIpAddresses(argument: suspend NetworkInterfacePrivateIpAddressSpecificationArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            NetworkInterfacePrivateIpAddressSpecificationArgsBuilder().applySuspend
                { argument() }.build(),
        )
        val mapped = of(toBeMapped)
        this.privateIpAddresses = mapped
    }

    /**
     * @param values Assigns a list of private IP addresses to the network interface. You can specify a primary private IP address by setting the value of the Primary property to true in the PrivateIpAddressSpecification property. If you want EC2 to automatically assign private IP addresses, use the SecondaryPrivateIpAddressCount property and do not specify this property.
     */
    @JvmName("sjfsiemqwirceclr")
    public suspend fun privateIpAddresses(vararg values: NetworkInterfacePrivateIpAddressSpecificationArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.privateIpAddresses = mapped
    }

    /**
     * @param value The number of secondary private IPv4 addresses to assign to a network interface. When you specify a number of secondary IPv4 addresses, Amazon EC2 selects these IP addresses within the subnet's IPv4 CIDR range. You can't specify this option and specify more than one private IP address using privateIpAddresses
     */
    @JvmName("nwiyxpidipslvqim")
    public suspend fun secondaryPrivateIpAddressCount(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.secondaryPrivateIpAddressCount = mapped
    }

    /**
     * @param value Indicates whether traffic to or from the instance is validated.
     */
    @JvmName("jgaglasxtbrjifws")
    public suspend fun sourceDestCheck(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.sourceDestCheck = mapped
    }

    /**
     * @param value The ID of the subnet to associate with the network interface.
     */
    @JvmName("qmlglivevvyhgyij")
    public suspend fun subnetId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.subnetId = mapped
    }

    /**
     * @param value An arbitrary set of tags (key-value pairs) for this network interface.
     */
    @JvmName("licmpaxbuekkcxoo")
    public suspend fun tags(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param argument An arbitrary set of tags (key-value pairs) for this network interface.
     */
    @JvmName("dnkxixfyydigkmho")
    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 arbitrary set of tags (key-value pairs) for this network interface.
     */
    @JvmName("nmddyykyhykoqbyg")
    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 arbitrary set of tags (key-value pairs) for this network interface.
     */
    @JvmName("iscbhgabhexlceax")
    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 arbitrary set of tags (key-value pairs) for this network interface.
     */
    @JvmName("xnieqwjlvjhdnbsd")
    public suspend fun tags(vararg values: TagArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    internal fun build(): NetworkInterfaceArgs = NetworkInterfaceArgs(
        connectionTrackingSpecification = connectionTrackingSpecification,
        description = description,
        enablePrimaryIpv6 = enablePrimaryIpv6,
        groupSet = groupSet,
        interfaceType = interfaceType,
        ipv4PrefixCount = ipv4PrefixCount,
        ipv4Prefixes = ipv4Prefixes,
        ipv6AddressCount = ipv6AddressCount,
        ipv6Addresses = ipv6Addresses,
        ipv6PrefixCount = ipv6PrefixCount,
        ipv6Prefixes = ipv6Prefixes,
        privateIpAddress = privateIpAddress,
        privateIpAddresses = privateIpAddresses,
        secondaryPrivateIpAddressCount = secondaryPrivateIpAddressCount,
        sourceDestCheck = sourceDestCheck,
        subnetId = subnetId,
        tags = tags,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy