Sha256: ffbc061e14b72a1ba003006cc521dfe7d94f27240d8cac4f5598af91947e5add
Contents?: true
Size: 492 Bytes
Versions: 4
Compression:
Stored size: 492 Bytes
Contents
module Awspec::Type class InternetGateway < ResourceBase aws_resource Aws::EC2::InternetGateway tags_allowed def resource_via_client @resource_via_client ||= find_internet_gateway(@display_name) end def id @id ||= resource_via_client.internet_gateway_id if resource_via_client end def attached_to?(vpc) resource_via_client.attachments.find do |a| a.vpc_id == find_vpc(vpc).vpc_id && a.state == 'attached' end end end end
Version data entries
4 entries across 4 versions & 1 rubygems