AWS SDK for .NET Documentation
WithDeviceIndex Method (deviceIndex)
AmazonAmazon.EC2.ModelInstanceNetworkInterfaceSpecificationWithDeviceIndex(Int32) Did this page help you?   Yes   No    Tell us about it...
The device index. Applies to both attaching an existing network interface and when creating a network interface.
Declaration Syntax
C#
[ObsoleteAttribute("The With methods are obsolete and will be removed in version 2 of the AWS SDK for .NET. See http://aws.amazon.com/sdkfornet/#version2 for more information.")]
public InstanceNetworkInterfaceSpecification WithDeviceIndex(
	int deviceIndex
)
Parameters
deviceIndex (Int32)
The index of the device on the instance for the network interface attachment.
Return Value
this instance
Remarks
Condition: If you are specifying a network interface in the request, you must provide the device index.

Assembly: AWSSDK (Module: AWSSDK) Version: 1.5.60.0 (1.5.60.0)