Attach Network Interface
ec2_attach_network_interface | R Documentation |
Attaches a network interface to an instance¶
Description¶
Attaches a network interface to an instance.
Usage¶
ec2_attach_network_interface(NetworkCardIndex, EnaSrdSpecification,
DryRun, NetworkInterfaceId, InstanceId, DeviceIndex)
Arguments¶
NetworkCardIndex
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.
EnaSrdSpecification
Configures ENA Express for the network interface that this action attaches to the instance.
DryRun
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 isUnauthorizedOperation
.NetworkInterfaceId
[required] The ID of the network interface.
InstanceId
[required] The ID of the instance.
DeviceIndex
[required] The index of the device for the network interface attachment.
Value¶
A list with the following syntax:
Request syntax¶
svc$attach_network_interface(
NetworkCardIndex = 123,
EnaSrdSpecification = list(
EnaSrdEnabled = TRUE|FALSE,
EnaSrdUdpSpecification = list(
EnaSrdUdpEnabled = TRUE|FALSE
)
),
DryRun = TRUE|FALSE,
NetworkInterfaceId = "string",
InstanceId = "string",
DeviceIndex = 123
)