class Stax::Aws::Alb

Public Class Methods

client() click to toggle source
# File lib/stax/aws/alb.rb, line 9
def client
  @_client ||= ::Aws::ElasticLoadBalancingV2::Client.new
end
describe(alb_arns) click to toggle source
# File lib/stax/aws/alb.rb, line 13
def describe(alb_arns)
  client.describe_load_balancers(load_balancer_arns: alb_arns).load_balancers
end
target_groups(alb_arn) click to toggle source
# File lib/stax/aws/alb.rb, line 17
def target_groups(alb_arn)
  paginate(:target_groups) do |marker|
    client.describe_target_groups(load_balancer_arn: alb_arn, marker: marker)
  end
end
target_health(tg_arn) click to toggle source
# File lib/stax/aws/alb.rb, line 23
def target_health(tg_arn)
  client.describe_target_health(target_group_arn: tg_arn).target_health_descriptions.flatten(1)
end