class AWS::ELB::LoadBalancer


associated with this load balancer.
@attr_reader [String] dns_name Specifies the external DNS name
load balancer. For more information: {docs.amazonwebservices.com/ElasticLoadBalancing/latest/DeveloperGuide/index.html?using-domain-names-with-elb.html}.
the Amazon Route 53 hosted zone name that is associated with the
@attr_reader [String] canonical_hosted_zone_name_id Provides the ID of
balancer. For more information: {docs.amazonwebservices.com/ElasticLoadBalancing/latest/DeveloperGuide/index.html?using-domain-names-with-elb.html}.
the Amazon Route 53 hosted zone that is associated with the load
@attr_reader [String] canonical_hosted_zone_name Provides the name of
the availability zones this load balancer routes traffic to.
@attr_reader [Array<String>] availability_zone_names Return the names of
@attr_reader [String] name The name of the load balancer.

def availability_zones

Returns:
  • (AvailabilityZoneCollection) - Returns a collection that

Other tags:
    Example: list enabled availability zoens -
    Example: disable an availability zone -
    Example: enable an availability zone -
def availability_zones
  AvailabilityZoneCollection.new(self)
end

def backend_server_policies

Returns:
  • (BackendServerPolicyCollection) -
def backend_server_policies
  BackendServerPolicyCollection.new(self)
end

def configure_health_check options = {}

Options Hash: (**options)
  • :target (String) -- Specifies the instance being checked.
  • :timeout (Integer) -- Specifies the amount of time, in
  • :interval (Integer) -- Specifies the approximate
  • :unhealthy_threshold (Integer) -- Specifies the number
  • :healthy_threshold (Integer) -- Specifies the number of

Parameters:
  • options (Hash) --
def configure_health_check options = {}
  new_config = health_check_configuration.merge(options)
  response = client.configure_health_check(
    :load_balancer_name => name,
    :health_check => new_config)
  new_config
end

def delete

Returns:
  • (nil) -
def delete
  client.delete_load_balancer(:load_balancer_name => name)
  nil
end

def exists?

Returns:
  • (Boolean) - Returns true if the load balancer exists.
def exists?
  client.describe_load_balancers(:load_balancer_names => [name])
  true
rescue Errors::LoadBalancerNotFound
  false
end

def get_resource attr_name

def get_resource attr_name
  # describing all, makes memoization more efficient
  client.describe_load_balancers
end

def health_check_configuration

Returns:
  • (Hash) -
def health_check_configuration
  cfg = health_check_description
  {
    :healthy_threshold => cfg.healthy_threshold,
    :unhealthy_threshold => cfg.unhealthy_threshold,
    :interval => cfg.interval,
    :target => cfg.target,
    :timeout => cfg.timeout,
  }
end

def initialize name, options = {}

def initialize name, options = {}
  super(options.merge(:name => name.to_s))
end

def instances

Returns:
  • (InstanceCollection) -
def instances
  InstanceCollection.new(self)
end

def listeners

Returns:
  • (ListenerCollection) -
def listeners
  ListenerCollection.new(self)
end

def policies

Returns:
  • (PolicyCollection) -
def policies
  LoadBalancerPolicyCollection.new(self)
end

def resource_identifiers

def resource_identifiers
  [[:load_balancer_name,name]]
end

def source_security_group

Returns:
  • (Hash) - Returns a hash that can be passed to the following
def source_security_group
  { 
    :group_name => security_group_description.group_name,
    :user_id => security_group_description.owner_alias,
  }
end