Sha256: 682b5d9c99d41c6451b670202ae749924764de5c4e8bb2df71788fbcb2014e8a

Contents?: true

Size: 500 Bytes

Versions: 13

Compression:

Stored size: 500 Bytes

Contents

module Awspec::Type
  class DirectconnectVirtualInterface < Base
    def initialize(id)
      super
      @resource_via_client = find_virtual_interface(id)
      @id = @resource_via_client[:virtual_interface_id] if @resource_via_client
    end

    STATES = %w(
      confirming verifying pending available
      deleting deleted rejected
    )

    STATES.each do |state|
      define_method state + '?' do
        @resource_via_client[:virtual_interface_state] == state
      end
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
awspec-0.33.0 lib/awspec/type/directconnect_virtual_interface.rb
awspec-0.32.0 lib/awspec/type/directconnect_virtual_interface.rb
awspec-0.31.0 lib/awspec/type/directconnect_virtual_interface.rb
awspec-0.30.0 lib/awspec/type/directconnect_virtual_interface.rb
awspec-0.29.0 lib/awspec/type/directconnect_virtual_interface.rb
awspec-0.28.1 lib/awspec/type/directconnect_virtual_interface.rb
awspec-0.28.0 lib/awspec/type/directconnect_virtual_interface.rb
awspec-0.27.2 lib/awspec/type/directconnect_virtual_interface.rb
awspec-0.27.1 lib/awspec/type/directconnect_virtual_interface.rb
awspec-0.27.0 lib/awspec/type/directconnect_virtual_interface.rb
awspec-0.26.2 lib/awspec/type/directconnect_virtual_interface.rb
awspec-0.26.1 lib/awspec/type/directconnect_virtual_interface.rb
awspec-0.26.0 lib/awspec/type/directconnect_virtual_interface.rb