Sha256: 369ff10550319dbfb0e2d660ff99ace8db1b5c4bf2bb4d6784b16f0245826e51
Contents?: true
Size: 570 Bytes
Versions: 109
Compression:
Stored size: 570 Bytes
Contents
module Awspec::Helper module Finder module Elb def find_elb(id) res = elb_client.describe_load_balancers({ load_balancer_names: [id] }) res.load_balancer_descriptions.single_resource(id) rescue return nil end def select_elb_by_vpc_id(vpc_id) res = elb_client.describe_load_balancers res.load_balancer_descriptions.select do |lb| lb.vpc_id == vpc_id end end end end end
Version data entries
109 entries across 109 versions & 2 rubygems