Skip to content

/AWS1/CL_EC2=>ATTACHNETWORKINTERFACE()

About AttachNetworkInterface

Attaches a network interface to an instance.

Method Signature

IMPORTING

Required arguments:

IV_DEVICEINDEX TYPE /AWS1/EC2INTEGER /AWS1/EC2INTEGER

The index of the device for the network interface attachment.

IV_INSTANCEID TYPE /AWS1/EC2INSTANCEID /AWS1/EC2INSTANCEID

The ID of the instance.

IV_NETWORKINTERFACEID TYPE /AWS1/EC2NETWORKINTERFACEID /AWS1/EC2NETWORKINTERFACEID

The ID of the network interface.

Optional arguments:

IV_DRYRUN TYPE /AWS1/EC2BOOLEAN /AWS1/EC2BOOLEAN

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

IV_NETWORKCARDINDEX TYPE /AWS1/EC2INTEGER /AWS1/EC2INTEGER

The index of the network card. Some instance types support multiple network cards. The primary network interface must be assigned to network card index 0. The default is network card index 0.

IO_ENASRDSPECIFICATION TYPE REF TO /AWS1/CL_EC2ENASRDSPEC /AWS1/CL_EC2ENASRDSPEC

Configures ENA Express for the network interface that this action attaches to the instance.

RETURNING

OO_OUTPUT TYPE REF TO /AWS1/CL_EC2ATTACHNETWORKINT01 /AWS1/CL_EC2ATTACHNETWORKINT01