Sha256: fced7584af3a30f430d7b3bb197e1b8614b573445bc6e4f07f2f6f48a34ea4d0
Contents?: true
Size: 1.16 KB
Versions: 12
Compression:
Stored size: 1.16 KB
Contents
# frozen_string_literal: true 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 StandardError nil end def find_elb_attribute(id) res = elb_client.describe_load_balancer_attributes({ load_balancer_name: id }) res.load_balancer_attributes rescue StandardError 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 def select_all_elb_tags(id) res = elb_client.describe_tags({ load_balancer_names: [id] }) res.tag_descriptions.single_resource(id).tags end end end end
Version data entries
12 entries across 12 versions & 1 rubygems