Module: Awspec::Helper::Finder::Directconnect
- Included in:
- Awspec::Helper::Finder
- Defined in:
- lib/awspec/helper/finder/directconnect.rb
Instance Method Summary collapse
Instance Method Details
#find_virtual_interface(virtual_interface_id) ⇒ Object
6 7 8 9 10 11 12 13 |
# File 'lib/awspec/helper/finder/directconnect.rb', line 6 def find_virtual_interface(virtual_interface_id) res = directconnect_client.describe_virtual_interfaces ret = res.virtual_interfaces.select do |virtual_interface| next true if virtual_interface.virtual_interface_id == virtual_interface_id next true if virtual_interface.virtual_interface_name == virtual_interface_id end ret.single_resource(virtual_interface_id) end |
#select_virtual_interfaces ⇒ Object
15 16 17 18 |
# File 'lib/awspec/helper/finder/directconnect.rb', line 15 def select_virtual_interfaces res = directconnect_client.describe_virtual_interfaces res.virtual_interfaces end |