![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.awsnative.ec2.kotlin.outputs.GetNetworkInterfaceResult.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.ec2.kotlin.outputs
import com.pulumi.awsnative.kotlin.outputs.Tag
import kotlin.Boolean
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
/**
*
* @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 id Network interface id.
* @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 primaryIpv6Address The primary IPv6 address
* @property primaryPrivateIpAddress Returns the primary private IP address of the network interface.
* @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 secondaryPrivateIpAddresses Returns the secondary private IP addresses of the network interface.
* @property sourceDestCheck Indicates whether traffic to or from the instance is validated.
* @property tags An arbitrary set of tags (key-value pairs) for this network interface.
* @property vpcId The ID of the VPC
*/
public data class GetNetworkInterfaceResult(
public val connectionTrackingSpecification: NetworkInterfaceConnectionTrackingSpecification? =
null,
public val description: String? = null,
public val enablePrimaryIpv6: Boolean? = null,
public val groupSet: List? = null,
public val id: String? = null,
public val ipv4PrefixCount: Int? = null,
public val ipv4Prefixes: List? = null,
public val ipv6AddressCount: Int? = null,
public val ipv6Addresses: List? = null,
public val ipv6PrefixCount: Int? = null,
public val ipv6Prefixes: List? = null,
public val primaryIpv6Address: String? = null,
public val primaryPrivateIpAddress: String? = null,
public val privateIpAddresses: List? = null,
public val secondaryPrivateIpAddressCount: Int? = null,
public val secondaryPrivateIpAddresses: List? = null,
public val sourceDestCheck: Boolean? = null,
public val tags: List? = null,
public val vpcId: String? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.awsnative.ec2.outputs.GetNetworkInterfaceResult): GetNetworkInterfaceResult = GetNetworkInterfaceResult(
connectionTrackingSpecification = javaType.connectionTrackingSpecification().map({ args0 ->
args0.let({ args0 ->
com.pulumi.awsnative.ec2.kotlin.outputs.NetworkInterfaceConnectionTrackingSpecification.Companion.toKotlin(args0)
})
}).orElse(null),
description = javaType.description().map({ args0 -> args0 }).orElse(null),
enablePrimaryIpv6 = javaType.enablePrimaryIpv6().map({ args0 -> args0 }).orElse(null),
groupSet = javaType.groupSet().map({ args0 -> args0 }),
id = javaType.id().map({ args0 -> args0 }).orElse(null),
ipv4PrefixCount = javaType.ipv4PrefixCount().map({ args0 -> args0 }).orElse(null),
ipv4Prefixes = javaType.ipv4Prefixes().map({ args0 ->
args0.let({ args0 ->
com.pulumi.awsnative.ec2.kotlin.outputs.NetworkInterfaceIpv4PrefixSpecification.Companion.toKotlin(args0)
})
}),
ipv6AddressCount = javaType.ipv6AddressCount().map({ args0 -> args0 }).orElse(null),
ipv6Addresses = javaType.ipv6Addresses().map({ args0 ->
args0.let({ args0 ->
com.pulumi.awsnative.ec2.kotlin.outputs.NetworkInterfaceInstanceIpv6Address.Companion.toKotlin(args0)
})
}),
ipv6PrefixCount = javaType.ipv6PrefixCount().map({ args0 -> args0 }).orElse(null),
ipv6Prefixes = javaType.ipv6Prefixes().map({ args0 ->
args0.let({ args0 ->
com.pulumi.awsnative.ec2.kotlin.outputs.NetworkInterfaceIpv6PrefixSpecification.Companion.toKotlin(args0)
})
}),
primaryIpv6Address = javaType.primaryIpv6Address().map({ args0 -> args0 }).orElse(null),
primaryPrivateIpAddress = javaType.primaryPrivateIpAddress().map({ args0 -> args0 }).orElse(null),
privateIpAddresses = javaType.privateIpAddresses().map({ args0 ->
args0.let({ args0 ->
com.pulumi.awsnative.ec2.kotlin.outputs.NetworkInterfacePrivateIpAddressSpecification.Companion.toKotlin(args0)
})
}),
secondaryPrivateIpAddressCount = javaType.secondaryPrivateIpAddressCount().map({ args0 ->
args0
}).orElse(null),
secondaryPrivateIpAddresses = javaType.secondaryPrivateIpAddresses().map({ args0 -> args0 }),
sourceDestCheck = javaType.sourceDestCheck().map({ args0 -> args0 }).orElse(null),
tags = javaType.tags().map({ args0 ->
args0.let({ args0 ->
com.pulumi.awsnative.kotlin.outputs.Tag.Companion.toKotlin(args0)
})
}),
vpcId = javaType.vpcId().map({ args0 -> args0 }).orElse(null),
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy