Sha256: 5fcd65e6acc841002521983c2d105a1e4a14d335c3a604ad20eb76d8ef442d21
Contents?: true
Size: 940 Bytes
Versions: 10
Compression:
Stored size: 940 Bytes
Contents
module Awspec::Type class VpcEndpoints < ResourceBase aws_resource Aws::EC2::Types::VpcEndpoint tags_allowed def resource_via_client @resource_via_client ||= find_vpc_endpoint(@display_name) end def id @id ||= resource_via_client.vpc_endpoint_id if resource_via_client end STATES = %w( pendingacceptance pending available deleting deleted rejected failed expired ) STATES.each do |state| define_method state + '?' do resource_via_client.state == state end end def has_route_table?(route_table_id) rts = resource_via_client.route_table_ids ret = rts.find do |rt| rt == route_table_id end return true if ret end def has_subnet?(subnet_id) subnets = resource_via_client.subnet_ids ret = subnets.find do |subnet| subnet == subnet_id end return true if ret end end end
Version data entries
10 entries across 10 versions & 1 rubygems