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

Describes a network interface.

Inheritance Hierarchy

System.Object
  Amazon.EC2.Model.NetworkInterface

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

Syntax

C#
public class NetworkInterface

The NetworkInterface type exposes the following members

Constructors

NameDescription
Public Method NetworkInterface()

Properties

NameTypeDescription
Public Property AssociatedSubnets System.Collections.Generic.List<System.String>

Gets and sets the property AssociatedSubnets.

The subnets associated with this network interface.

Starting with version 4 of the SDK this property will default to null. If no data for this property is returned from the service the property will also be null. This was changed to improve performance and allow the SDK and caller to distinguish between a property not set or a property being empty to clear out a value. To retain the previous SDK behavior set the AWSConfigs.InitializeCollections static property to true.

Public Property Association Amazon.EC2.Model.NetworkInterfaceAssociation

Gets and sets the property Association.

The association information for an Elastic IP address (IPv4) associated with the network interface.

Public Property Attachment Amazon.EC2.Model.NetworkInterfaceAttachment

Gets and sets the property Attachment.

The network interface attachment.

Public Property AvailabilityZone System.String

Gets and sets the property AvailabilityZone.

The Availability Zone.

Public Property ConnectionTrackingConfiguration Amazon.EC2.Model.ConnectionTrackingConfiguration

Gets and sets the property ConnectionTrackingConfiguration.

A security group connection tracking configuration 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 EC2 User Guide.

Public Property DenyAllIgwTraffic System.Nullable<System.Boolean>

Gets and sets the property DenyAllIgwTraffic.

Indicates whether a network interface with an IPv6 address is unreachable from the public internet. If the value is true, inbound traffic from the internet is dropped and you cannot assign an elastic IP address to the network interface. The network interface is reachable from peered VPCs and resources connected through a transit gateway, including on-premises networks.

Public Property Description System.String

Gets and sets the property Description.

A description.

Public Property Groups System.Collections.Generic.List<Amazon.EC2.Model.GroupIdentifier>

Gets and sets the property Groups.

Any security groups for the network interface.

Starting with version 4 of the SDK this property will default to null. If no data for this property is returned from the service the property will also be null. This was changed to improve performance and allow the SDK and caller to distinguish between a property not set or a property being empty to clear out a value. To retain the previous SDK behavior set the AWSConfigs.InitializeCollections static property to true.

Public Property InterfaceType Amazon.EC2.NetworkInterfaceType

Gets and sets the property InterfaceType.

The type of network interface.

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

Gets and sets the property Ipv4Prefixes.

The IPv4 prefixes that are assigned to the network interface.

Starting with version 4 of the SDK this property will default to null. If no data for this property is returned from the service the property will also be null. This was changed to improve performance and allow the SDK and caller to distinguish between a property not set or a property being empty to clear out a value. To retain the previous SDK behavior set the AWSConfigs.InitializeCollections static property to true.

Public Property Ipv6Address System.String

Gets and sets the property Ipv6Address.

The IPv6 globally unique address associated with the network interface.

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

Gets and sets the property Ipv6Addresses.

The IPv6 addresses associated with the network interface.

Starting with version 4 of the SDK this property will default to null. If no data for this property is returned from the service the property will also be null. This was changed to improve performance and allow the SDK and caller to distinguish between a property not set or a property being empty to clear out a value. To retain the previous SDK behavior set the AWSConfigs.InitializeCollections static property to true.

Public Property Ipv6Native System.Nullable<System.Boolean>

Gets and sets the property Ipv6Native.

Indicates whether this is an IPv6 only network interface.

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

Gets and sets the property Ipv6Prefixes.

The IPv6 prefixes that are assigned to the network interface.

Starting with version 4 of the SDK this property will default to null. If no data for this property is returned from the service the property will also be null. This was changed to improve performance and allow the SDK and caller to distinguish between a property not set or a property being empty to clear out a value. To retain the previous SDK behavior set the AWSConfigs.InitializeCollections static property to true.

Public Property MacAddress System.String

Gets and sets the property MacAddress.

The MAC address.

Public Property NetworkInterfaceId System.String

Gets and sets the property NetworkInterfaceId.

The ID of the network interface.

Public Property Operator Amazon.EC2.Model.OperatorResponse

Gets and sets the property Operator.

The service provider that manages the network interface.

Public Property OutpostArn System.String

Gets and sets the property OutpostArn.

The Amazon Resource Name (ARN) of the Outpost.

Public Property OwnerId System.String

Gets and sets the property OwnerId.

The Amazon Web Services account ID of the owner of the network interface.

Public Property PrivateDnsName System.String

Gets and sets the property PrivateDnsName.

The private hostname. For more information, see EC2 instance hostnames, DNS names, and domains in the Amazon EC2 User Guide.

Public Property PrivateIpAddress System.String

Gets and sets the property PrivateIpAddress.

The IPv4 address of the network interface within the subnet.

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

Gets and sets the property PrivateIpAddresses.

The private IPv4 addresses associated with the network interface.

Starting with version 4 of the SDK this property will default to null. If no data for this property is returned from the service the property will also be null. This was changed to improve performance and allow the SDK and caller to distinguish between a property not set or a property being empty to clear out a value. To retain the previous SDK behavior set the AWSConfigs.InitializeCollections static property to true.

Public Property PublicDnsName System.String

Gets and sets the property PublicDnsName.

A public hostname. For more information, see EC2 instance hostnames, DNS names, and domains in the Amazon EC2 User Guide.

Public Property PublicIpDnsNameOptions Amazon.EC2.Model.PublicIpDnsNameOptions

Gets and sets the property PublicIpDnsNameOptions.

Public hostname type options. For more information, see EC2 instance hostnames, DNS names, and domains in the Amazon EC2 User Guide.

Public Property RequesterId System.String

Gets and sets the property RequesterId.

The alias or Amazon Web Services account ID of the principal or service that created the network interface.

Public Property RequesterManaged System.Nullable<System.Boolean>

Gets and sets the property RequesterManaged.

Indicates whether the network interface is being managed by Amazon Web Services.

Public Property SourceDestCheck System.Nullable<System.Boolean>

Gets and sets the property SourceDestCheck.

Indicates whether source/destination checking is enabled.

Public Property Status Amazon.EC2.NetworkInterfaceStatus

Gets and sets the property Status.

The status of the network interface.

Public Property SubnetId System.String

Gets and sets the property SubnetId.

The ID of the subnet.

Public Property TagSet System.Collections.Generic.List<Amazon.EC2.Model.Tag>

Gets and sets the property TagSet.

Any tags assigned to the network interface.

Starting with version 4 of the SDK this property will default to null. If no data for this property is returned from the service the property will also be null. This was changed to improve performance and allow the SDK and caller to distinguish between a property not set or a property being empty to clear out a value. To retain the previous SDK behavior set the AWSConfigs.InitializeCollections static property to true.

Public Property VpcId System.String

Gets and sets the property VpcId.

The ID of the VPC.

Version Information

.NET:
Supported in: 8.0 and newer, Core 3.1

.NET Standard:
Supported in: 2.0

.NET Framework:
Supported in: 4.7.2 and newer