paws.compute (version 0.1.0)

ec2_attach_network_interface: Attaches a network interface to an instance

Description

Attaches a network interface to an instance.

Usage

ec2_attach_network_interface(DeviceIndex, DryRun, InstanceId,
  NetworkInterfaceId)

Arguments

DeviceIndex

[required] The index of the device for the network interface attachment.

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 is UnauthorizedOperation.

InstanceId

[required] The ID of the instance.

NetworkInterfaceId

[required] The ID of the network interface.

Request syntax

svc$attach_network_interface(
  DeviceIndex = 123,
  DryRun = TRUE|FALSE,
  InstanceId = "string",
  NetworkInterfaceId = "string"
)

Examples

Run this code
# NOT RUN {
# This example attaches the specified network interface to the specified
# instance.
# }
# NOT RUN {
svc$attach_network_interface(
  DeviceIndex = 1L,
  InstanceId = "i-1234567890abcdef0",
  NetworkInterfaceId = "eni-e5aa89a3"
)
# }
# NOT RUN {
# }

Run the code above in your browser using DataCamp Workspace