class AWS::ELB::ListenerCollection

def create options = {}

Returns:
  • (Listener) -

Options Hash: (**options)
  • :server_certificate (String, IAM::ServerCertificate) -- The
  • :instance_protocol (String, Symbol) -- Specifies the
  • :instance_port (Integer) -- Specifies the TCP port on
  • :protocol (String, Symbol) -- Specifies the load balancer
  • :port (Integer) -- Specifies the external

Parameters:
  • options (Hash) --
def create options = {}
  format_listener_opts(options)
  client.create_load_balancer_listeners(
    :load_balancer_name => load_balancer.name,
    :listeners => [options])
  Listener.new(load_balancer,
    options[:load_balancer_port],
    options.merge(:config => config))
end