Sha256: 74cbbff745e608e523fe3bf341441ea9ab46247fa4e5eccb9b5ec23bfeeaee9e

Contents?: true

Size: 684 Bytes

Versions: 13

Compression:

Stored size: 684 Bytes

Contents

# frozen_string_literal: true

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

13 entries across 13 versions & 1 rubygems

Version Path
awspec-1.31.0 lib/awspec/helper/finder/directconnect.rb
awspec-1.30.0 lib/awspec/helper/finder/directconnect.rb
awspec-1.29.3 lib/awspec/helper/finder/directconnect.rb
awspec-1.29.2 lib/awspec/helper/finder/directconnect.rb
awspec-1.29.1 lib/awspec/helper/finder/directconnect.rb
awspec-1.29.0 lib/awspec/helper/finder/directconnect.rb
awspec-1.28.2 lib/awspec/helper/finder/directconnect.rb
awspec-1.28.1 lib/awspec/helper/finder/directconnect.rb
awspec-1.28.0 lib/awspec/helper/finder/directconnect.rb
awspec-1.27.1 lib/awspec/helper/finder/directconnect.rb
awspec-1.27.0 lib/awspec/helper/finder/directconnect.rb
awspec-1.26.0 lib/awspec/helper/finder/directconnect.rb
awspec-1.25.2 lib/awspec/helper/finder/directconnect.rb