def create options = {}
client_opts = {}
client_opts[:subnet_id] = subnet_id_option(options)
client_opts[:private_ip_address] = options[:private_ip_address] if
options.key?(:private_ip_address)
client_opts[:description] = options[:description] if
options.key?(:description)
groups = groups_options(options)
client_opts[:groups] = groups if groups
resp = client.create_network_interface(client_opts)
NetworkInterface.new_from(:create_network_interface,
resp.network_interface,
resp.network_interface.network_interface_id,
:config => config)
end