class Awspec::Type::VpcEndpoints

Constants

STATES

Public Instance Methods

has_route_table?(route_table_id) click to toggle source
# File lib/awspec/type/vpc_endpoints.rb, line 27
def has_route_table?(route_table_id)
  rts = resource_via_client.route_table_ids

  ret = find_route_table(route_table_id)
  if ret && rts.include?(ret.route_table_id)
    return true
  end

  ret = rts.find do |rt|
    rt == route_table_id
  end
  return true if ret
end
has_subnet?(subnet_id) click to toggle source
# File lib/awspec/type/vpc_endpoints.rb, line 41
def has_subnet?(subnet_id)
  subnets = resource_via_client.subnet_ids

  ret = subnets.find do |subnet|
    subnet == subnet_id
  end
  return true if ret

  res = find_subnet(subnet_id)
  ret = subnets.find do |subnet|
    subnet == res.subnet_id
  end
  return true if ret
end
id() click to toggle source
# File lib/awspec/type/vpc_endpoints.rb, line 12
def id
  @id ||= resource_via_client.vpc_endpoint_id if resource_via_client
end
resource_via_client() click to toggle source
# File lib/awspec/type/vpc_endpoints.rb, line 8
def resource_via_client
  @resource_via_client ||= find_vpc_endpoint(@display_name)
end