0

I have been trying to figure out how to delete multiple EC2 network interfaces using the AWS Java SDK. It is possible to select and delete multiple network interfaces in one operation in the AWS console, however, the DeleteNetworkInterfaceRequest SDK method has no option to pass multiple IDs.

Is there a work around for this, apart from looping over the IDs?

jarmod
  • 71,565
  • 16
  • 115
  • 122
ysaipran
  • 11
  • 1

1 Answers1

0

No, the Java SDK's deleteNetworkInterface method accepts only one DeleteNetworkInterfaceRequest, representing a single network interface.

The AWS console is probably making multiple API calls on your behalf, as a convenience.

jarmod
  • 71,565
  • 16
  • 115
  • 122