Sha256: 45300123ec8a79de7bb78288235f32615121485f9098ce85b86b008eedd34d57

Contents?: true

Size: 578 Bytes

Versions: 13

Compression:

Stored size: 578 Bytes

Contents

module Awspec::Type
  class TransitGateway < ResourceBase
    aws_resource Aws::EC2::Types::TransitGateway
    tags_allowed

    def resource_via_client
      @resource_via_client ||= find_transit_gateway(@display_name)
    end

    def id
      @id ||= resource_via_client.transit_gateway_id if resource_via_client
    end

    def options
      resource_via_client.options
    end

    def has_attachment?(att_id)
      atts = find_tgw_attachments_by_tgw_id(@id)
      ret = atts.find_all { |att| att.transit_gateway_attachment_id == att_id }
      ret.any?
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
awspec-1.25.1 lib/awspec/type/transit_gateway.rb
awspec-1.25.0 lib/awspec/type/transit_gateway.rb
awspec-1.24.4 lib/awspec/type/transit_gateway.rb
awspec-1.24.3 lib/awspec/type/transit_gateway.rb
awspec-1.24.2 lib/awspec/type/transit_gateway.rb
awspec-1.24.1 lib/awspec/type/transit_gateway.rb
awspec-1.24.0 lib/awspec/type/transit_gateway.rb
awspec-1.23.0 lib/awspec/type/transit_gateway.rb
awspec-1.22.1 lib/awspec/type/transit_gateway.rb
awspec-1.22.0 lib/awspec/type/transit_gateway.rb
awspec-1.21.1 lib/awspec/type/transit_gateway.rb
awspec-1.21.0 lib/awspec/type/transit_gateway.rb
awspec-1.20.0 lib/awspec/type/transit_gateway.rb