Sha256: f9ce22f058494ab19c1163c7a628ab2c86e4952d860d9936cb9b36c492d67a0e

Contents?: true

Size: 653 Bytes

Versions: 178

Compression:

Stored size: 653 Bytes

Contents

module Awspec::Helper
  module Finder
    module Directconnect
      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

      def select_virtual_interfaces
        res = directconnect_client.describe_virtual_interfaces
        res.virtual_interfaces
      end
    end
  end
end

Version data entries

178 entries across 178 versions & 4 rubygems

Version Path
awspec-1.25.1 lib/awspec/helper/finder/directconnect.rb
awspec-1.25.0 lib/awspec/helper/finder/directconnect.rb
awspec-1.24.4 lib/awspec/helper/finder/directconnect.rb
awspec-1.24.3 lib/awspec/helper/finder/directconnect.rb
awspec-1.24.2 lib/awspec/helper/finder/directconnect.rb
awspec-1.24.1 lib/awspec/helper/finder/directconnect.rb
awspec-1.24.0 lib/awspec/helper/finder/directconnect.rb
awspec-1.23.0 lib/awspec/helper/finder/directconnect.rb
awspec-1.22.1 lib/awspec/helper/finder/directconnect.rb
awspec-1.22.0 lib/awspec/helper/finder/directconnect.rb
awspec-1.21.1 lib/awspec/helper/finder/directconnect.rb
awspec-1.21.0 lib/awspec/helper/finder/directconnect.rb
awspec-1.20.0 lib/awspec/helper/finder/directconnect.rb
awspec-1.19.2 lib/awspec/helper/finder/directconnect.rb
awspec-1.19.1 lib/awspec/helper/finder/directconnect.rb
awspec-1.19.0 lib/awspec/helper/finder/directconnect.rb
cthiesfork-awspec-1.2.4 lib/awspec/helper/finder/directconnect.rb
awspec-api_gateway_extended-1.2.4 lib/awspec/helper/finder/directconnect.rb
awspec-api_gateway_extended-1.2.3 lib/awspec/helper/finder/directconnect.rb
awspec-1.18.6 lib/awspec/helper/finder/directconnect.rb