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 4.5
 
Container for the parameters to the CreateNetworkInterface operation. Creates a network interface in the specified subnet.

For more information about network interfaces, see Elastic Network Interfaces in the Amazon Elastic Compute Cloud User Guide.

Inheritance Hierarchy

System.Object
  Amazon.Runtime.AmazonWebServiceRequest
    Amazon.EC2.AmazonEC2Request
      Amazon.EC2.Model.CreateNetworkInterfaceRequest

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

Syntax

C#
public class CreateNetworkInterfaceRequest : AmazonEC2Request
         IRequestEvents

The CreateNetworkInterfaceRequest type exposes the following members

Constructors

Properties

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

A description for the network interface.

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 PrivateIpAddress System.String Gets and sets the property PrivateIpAddress.

The primary private IP address of the network interface. If you don't specify an IP address, Amazon EC2 selects one for you from the subnet range. If you specify an IP address, you cannot indicate any IP addresses specified in privateIpAddresses as primary (only one IP address can be designated as primary).

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

One or more private IP addresses.

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

The number of secondary private IP addresses to assign to a network interface. When you specify a number of secondary IP addresses, Amazon EC2 selects these IP addresses within the subnet range. You can't specify this option and specify more than one private IP address using privateIpAddresses.

The number of IP addresses you can assign to a network interface varies by instance type. For more information, see Private IP Addresses Per ENI Per Instance Type in the Amazon Elastic Compute Cloud User Guide.

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

The ID of the subnet to associate with the network interface.

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