Sha256: 56a309f78c0fde01b5614b56cd927a7a8cd5ced438b93bb5ec7b915989f0f4f5

Contents?: true

Size: 609 Bytes

Versions: 11

Compression:

Stored size: 609 Bytes

Contents

# frozen_string_literal: true

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

11 entries across 11 versions & 1 rubygems

Version Path
awspec-1.29.3 lib/awspec/type/transit_gateway.rb
awspec-1.29.2 lib/awspec/type/transit_gateway.rb
awspec-1.29.1 lib/awspec/type/transit_gateway.rb
awspec-1.29.0 lib/awspec/type/transit_gateway.rb
awspec-1.28.2 lib/awspec/type/transit_gateway.rb
awspec-1.28.1 lib/awspec/type/transit_gateway.rb
awspec-1.28.0 lib/awspec/type/transit_gateway.rb
awspec-1.27.1 lib/awspec/type/transit_gateway.rb
awspec-1.27.0 lib/awspec/type/transit_gateway.rb
awspec-1.26.0 lib/awspec/type/transit_gateway.rb
awspec-1.25.2 lib/awspec/type/transit_gateway.rb