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
 
All of the metadata associated with a network interface on the instance.

Inheritance Hierarchy

System.Object
  Amazon.EC2.Util.NetworkInterface

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

Syntax

C#
public class NetworkInterface : Object

The NetworkInterface type exposes the following members

Constructors

NameDescription
Public Method NetworkInterface(string)

Properties

NameTypeDescription
Public Property LocalHostname System.String The interface's local hostname.
Public Property LocalIPv4s System.Collections.Generic.IEnumerable<System.String> The private IP addresses associated with the interface.
Public Property MacAddress System.String The interface's Media Access Control (mac) address.
Public Property OwnerId System.String The ID of the owner of the network interface.
Public Property Profile System.String The interface's profile
Public Property PublicHostname System.String The interface's public hostname.
Public Property PublicIPv4s System.Collections.Generic.IEnumerable<System.String> The elastic IP addresses associated with the interface.
Public Property SecurityGroupIds System.Collections.Generic.IEnumerable<System.String> IDs of the security groups to which the network interface belongs. Returned only for Amazon EC2 instances launched into a VPC.
Public Property SecurityGroups System.Collections.Generic.IEnumerable<System.String> Security groups to which the network interface belongs.
Public Property SubnetId System.String The ID of the Amazon EC2-VPC subnet in which the interface resides.
Public Property SubnetIPv4CidrBlock System.String The CIDR block of the Amazon EC2-VPC subnet in which the interface resides.
Public Property VpcId System.String The CIDR block of the Amazon EC2-VPC subnet in which the interface resides.

Methods

NameDescription
Public Method GetIpV4Association(string) Get the private IPv4 address(es) that are associated with the public-ip address and assigned to that interface.

Version Information

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