AWS SDK Version 2 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.

.NET Framework 3.5
 
Describes a network interface.

Inheritance Hierarchy

System.Object
  Amazon.EC2.Model.InstanceNetworkInterfaceSpecification

Namespace: Amazon.EC2.Model
Assembly: AWSSDK.dll
Version: (assembly version)

Syntax

C#
public class InstanceNetworkInterfaceSpecification : Object

The InstanceNetworkInterfaceSpecification type exposes the following members

Constructors

Properties

NameTypeDescription
Public Property AssociatePublicIpAddress System.Boolean Gets and sets the property AssociatePublicIpAddress.

Indicates whether to assign a public IP address to an instance you launch in a VPC. The public IP address can only be assigned to a network interface for eth0, and can only be assigned to a new network interface, not an existing one. You cannot specify more than one network interface in the request. If launching into a default subnet, the default value is true.

Public Property DeleteOnTermination System.Boolean Gets and sets the property DeleteOnTermination.

If set to true, the interface is deleted when the instance is terminated. You can specify true only if creating a new network interface when launching an instance.

Public Property Description System.String Gets and sets the property Description.

The description of the network interface. Applies only if creating a network interface when launching an instance.

Public Property DeviceIndex System.Int32 Gets and sets the property DeviceIndex.

The index of the device on the instance for the network interface attachment. If you are specifying a network interface in a RunInstances request, you must provide the device index.

Public Property Groups System.Collections.Generic.List<System.String> Gets and sets the property Groups.

The IDs of the security groups for the network interface. Applies only if creating a network interface when launching an instance.

Public Property NetworkInterfaceId System.String Gets and sets the property NetworkInterfaceId.

The ID of the network interface.

Public Property PrivateIpAddress System.String Gets and sets the property PrivateIpAddress.

The private IP address of the network interface. Applies only if creating a network interface when launching an instance.

Public Property PrivateIpAddresses System.Collections.Generic.List<Amazon.EC2.Model.PrivateIpAddressSpecification> Gets and sets the property PrivateIpAddresses.

One or more private IP addresses to assign to the network interface. Only one private IP address can be designated as primary.

Public Property SecondaryPrivateIpAddressCount System.Int32 Gets and sets the property SecondaryPrivateIpAddressCount.

The number of secondary private IP addresses. You can't specify this option and specify more than one private IP address using the private IP addresses option.

Public Property SubnetId System.String Gets and sets the property SubnetId.

The ID of the subnet associated with the network string. Applies only if creating a network interface when launching an instance.

Version Information

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

.NET for Windows Store apps:
Supported in: Windows 8.1, Windows 8

.NET for Windows Phone:
Supported in: Windows Phone 8.1, Windows Phone 8