AWS SDK Version 3 for .NET
API Reference

AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

The parameters for a network interface.

Inheritance Hierarchy

System.Object
  Amazon.EC2.Model.LaunchTemplateInstanceNetworkInterfaceSpecificationRequest

Namespace: Amazon.EC2.Model
Assembly: AWSSDK.EC2.dll
Version: 3.x.y.z

Syntax

C#
public class LaunchTemplateInstanceNetworkInterfaceSpecificationRequest

The LaunchTemplateInstanceNetworkInterfaceSpecificationRequest type exposes the following members

Constructors

Properties

NameTypeDescription
Public Property AssociateCarrierIpAddress System.Boolean

Gets and sets the property AssociateCarrierIpAddress.

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 Wavelength Developer Guide.

Public Property AssociatePublicIpAddress System.Boolean

Gets and sets the property AssociatePublicIpAddress.

Associates a public IPv4 address with eth0 for a new network interface.

Amazon Web Services 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.

Public Property ConnectionTrackingSpecification Amazon.EC2.Model.ConnectionTrackingSpecificationRequest

Gets and sets the property ConnectionTrackingSpecification.

A security group connection tracking specification that enables you to set the timeout for connection tracking on an Elastic network interface. For more information, see Connection tracking timeouts in the Amazon Elastic Compute Cloud User Guide.

Public Property DeleteOnTermination System.Boolean

Gets and sets the property DeleteOnTermination.

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

Public Property Description System.String

Gets and sets the property Description.

A description for the network interface.

Public Property DeviceIndex System.Int32

Gets and sets the property DeviceIndex.

The device index for the network interface attachment.

Public Property EnaSrdSpecification Amazon.EC2.Model.EnaSrdSpecificationRequest

Gets and sets the property EnaSrdSpecification.

Configure ENA Express settings for your launch template.

Public Property Groups System.Collections.Generic.List<System.String>

Gets and sets the property Groups.

The IDs of one or more security groups.

Public Property InterfaceType System.String

Gets and sets the property InterfaceType.

The type of network interface. To create an Elastic Fabric Adapter (EFA), specify efa. For more information, see Elastic Fabric Adapter in the Amazon Elastic Compute Cloud User Guide.

If you are not creating an EFA, specify interface or omit this parameter.

Valid values: interface | efa

Public Property Ipv4PrefixCount System.Int32

Gets and sets the property Ipv4PrefixCount.

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

Public Property Ipv4Prefixes System.Collections.Generic.List<Amazon.EC2.Model.Ipv4PrefixSpecificationRequest>

Gets and sets the property Ipv4Prefixes.

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

Public Property Ipv6AddressCount System.Int32

Gets and sets the property Ipv6AddressCount.

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.

Public Property Ipv6Addresses System.Collections.Generic.List<Amazon.EC2.Model.InstanceIpv6AddressRequest>

Gets and sets the property Ipv6Addresses.

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.

Public Property Ipv6PrefixCount System.Int32

Gets and sets the property Ipv6PrefixCount.

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

Public Property Ipv6Prefixes System.Collections.Generic.List<Amazon.EC2.Model.Ipv6PrefixSpecificationRequest>

Gets and sets the property Ipv6Prefixes.

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

Public Property NetworkCardIndex System.Int32

Gets and sets the property NetworkCardIndex.

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.

Public Property NetworkInterfaceId System.String

Gets and sets the property NetworkInterfaceId.

The ID of the network interface.

Public Property PrimaryIpv6 System.Boolean

Gets and sets the property PrimaryIpv6.

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.

Public Property PrivateIpAddress System.String

Gets and sets the property PrivateIpAddress.

The primary private IPv4 address of the network interface.

Public Property PrivateIpAddresses System.Collections.Generic.List<Amazon.EC2.Model.PrivateIpAddressSpecification>

Gets and sets the property PrivateIpAddresses.

One or more private IPv4 addresses.

Public Property SecondaryPrivateIpAddressCount System.Int32

Gets and sets the property SecondaryPrivateIpAddressCount.

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

Public Property SubnetId System.String

Gets and sets the property SubnetId.

The ID of the subnet for the network interface.

Version Information

.NET Core App:
Supported in: 3.1

.NET Standard:
Supported in: 2.0

.NET Framework:
Supported in: 4.5, 4.0, 3.5