# File lib/aws/ec2/network_interface.rb, line 145 def detach options = {} if attachment = self.attachment attachment.detach(options) else raise 'unable to detach network interface, no attachment present' end end