LaunchTemplateNetworkInterface

data class LaunchTemplateNetworkInterface(val associateCarrierIpAddress: Boolean? = null, val associatePublicIpAddress: Boolean? = null, val connectionTrackingSpecification: LaunchTemplateConnectionTrackingSpecification? = null, val deleteOnTermination: Boolean? = null, val description: String? = null, val deviceIndex: Int? = null, val enaSrdSpecification: LaunchTemplateEnaSrdSpecification? = null, val groups: List<String>? = null, val interfaceType: String? = null, val ipv4PrefixCount: Int? = null, val ipv4Prefixes: List<LaunchTemplateIpv4PrefixSpecification>? = null, val ipv6AddressCount: Int? = null, val ipv6Addresses: List<LaunchTemplateIpv6Add>? = null, val ipv6PrefixCount: Int? = null, val ipv6Prefixes: List<LaunchTemplateIpv6PrefixSpecification>? = null, val networkCardIndex: Int? = null, val networkInterfaceId: String? = null, val primaryIpv6: Boolean? = null, val privateIpAddress: String? = null, val privateIpAddresses: List<LaunchTemplatePrivateIpAdd>? = null, val secondaryPrivateIpAddressCount: Int? = null, val subnetId: String? = null)

Specifies the parameters for a network interface. `NetworkInterface` is a property of AWS::EC2::LaunchTemplate LaunchTemplateData.

Constructors

Link copied to clipboard
constructor(associateCarrierIpAddress: Boolean? = null, associatePublicIpAddress: Boolean? = null, connectionTrackingSpecification: LaunchTemplateConnectionTrackingSpecification? = null, deleteOnTermination: Boolean? = null, description: String? = null, deviceIndex: Int? = null, enaSrdSpecification: LaunchTemplateEnaSrdSpecification? = null, groups: List<String>? = null, interfaceType: String? = null, ipv4PrefixCount: Int? = null, ipv4Prefixes: List<LaunchTemplateIpv4PrefixSpecification>? = null, ipv6AddressCount: Int? = null, ipv6Addresses: List<LaunchTemplateIpv6Add>? = null, ipv6PrefixCount: Int? = null, ipv6Prefixes: List<LaunchTemplateIpv6PrefixSpecification>? = null, networkCardIndex: Int? = null, networkInterfaceId: String? = null, primaryIpv6: Boolean? = null, privateIpAddress: String? = null, privateIpAddresses: List<LaunchTemplatePrivateIpAdd>? = null, secondaryPrivateIpAddressCount: Int? = null, subnetId: String? = null)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Associates a Carrier IP address with eth0 for a new network interface. Use this option when you launch an instance in a Wavelength Zone and want to associate a Carrier IP address with the network interface. For more information about Carrier IP addresses, see Carrier IP addresses in the Developer Guide.

Link copied to clipboard

Associates a public IPv4 address with eth0 for a new network interface. AWS charges for all public IPv4 addresses, including public IPv4 addresses associated with running instances and Elastic IP addresses. For more information, see the Public IPv4 Address tab on the Amazon VPC pricing page.

Link copied to clipboard

A connection tracking specification for the network interface.

Link copied to clipboard

Indicates whether the network interface is deleted when the instance is terminated.

Link copied to clipboard
val description: String? = null

A description for the network interface.

Link copied to clipboard
val deviceIndex: Int? = null

The device index for the network interface attachment. Each network interface requires a device index. If you create a launch template that includes secondary network interfaces but not a primary network interface, then you must add a primary network interface as a launch parameter when you launch an instance from the template.

Link copied to clipboard

The ENA Express configuration for the network interface.

Link copied to clipboard
val groups: List<String>? = null

The IDs of one or more security groups.

Link copied to clipboard
val interfaceType: String? = null

The type of network interface. To create an Elastic Fabric Adapter (EFA), specify `efa`. For more information, see Elastic Fabric Adapter in the Amazon EC2 User Guide. If you are not creating an EFA, specify `interface` or omit this parameter. Valid values: `interface` | `efa`

Link copied to clipboard
val ipv4PrefixCount: Int? = null

The number of IPv4 prefixes to be automatically assigned to the network interface. You cannot use this option if you use the `Ipv4Prefix` option.

Link copied to clipboard

One or more IPv4 prefixes to be assigned to the network interface. You cannot use this option if you use the `Ipv4PrefixCount` option.

Link copied to clipboard
val ipv6AddressCount: Int? = null

The number of IPv6 addresses to assign to a network interface. Amazon EC2 automatically selects the IPv6 addresses from the subnet range. You can't use this option if specifying specific IPv6 addresses.

Link copied to clipboard

One or more specific IPv6 addresses from the IPv6 CIDR block range of your subnet. You can't use this option if you're specifying a number of IPv6 addresses.

Link copied to clipboard
val ipv6PrefixCount: Int? = null

The number of IPv6 prefixes to be automatically assigned to the network interface. You cannot use this option if you use the `Ipv6Prefix` option.

Link copied to clipboard

One or more IPv6 prefixes to be assigned to the network interface. You cannot use this option if you use the `Ipv6PrefixCount` option.

Link copied to clipboard
val networkCardIndex: Int? = null

The index of the network card. Some instance types support multiple network cards. The primary network interface must be assigned to network card index 0. The default is network card index 0.

Link copied to clipboard

The ID of the network interface.

Link copied to clipboard
val primaryIpv6: Boolean? = null

The primary IPv6 address of the network interface. When you enable an IPv6 GUA address to be a primary IPv6, the first IPv6 GUA will be made the primary IPv6 address until the instance is terminated or the network interface is detached. For more information about primary IPv6 addresses, see RunInstances.

Link copied to clipboard

The primary private IPv4 address of the network interface.

Link copied to clipboard

One or more private IPv4 addresses.

Link copied to clipboard

The number of secondary private IPv4 addresses to assign to a network interface.

Link copied to clipboard
val subnetId: String? = null

The ID of the subnet for the network interface.