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.
Container for the parameters to the DeleteNetworkInterface operation. Deletes the specified network interface. You must detach the network interface before you can delete it.
Namespace: Amazon.EC2.Model
Assembly: AWSSDK.EC2.dll
Version: 3.x.y.z
public class DeleteNetworkInterfaceRequest : AmazonEC2Request IAmazonWebServiceRequest
The DeleteNetworkInterfaceRequest type exposes the following members
Name | Description | |
---|---|---|
DeleteNetworkInterfaceRequest() |
Name | Type | Description | |
---|---|---|---|
NetworkInterfaceId | System.String |
Gets and sets the property NetworkInterfaceId. The ID of the network interface. |
This example deletes the specified network interface.
var client = new AmazonEC2Client(); var response = client.DeleteNetworkInterface(new DeleteNetworkInterfaceRequest { NetworkInterfaceId = "eni-e5aa89a3" });
.NET:
Supported in: 8.0 and newer, Core 3.1
.NET Standard:
Supported in: 2.0
.NET Framework:
Supported in: 4.5 and newer, 3.5