Class AWS::ELB::Listener
In: lib/aws/elb/listener.rb
Parent: Object

Methods

Included Modules

Core::Model

Attributes

load_balancer  [R]  @return [LoadBalancer]
port  [R]  @return [Integer]

Public Class methods

@param [LoadBalancer] load_balancer The load balancer this listener

  belongs to.

@param [Integer] port The external load balancer port number.

@param [Hash] options

@option (see ListenerCollection#create)

Public Instance methods

==(other)

Alias for eql?

Deletes the listener from its load balancer. @return [nil]

@api private

Returns true if this listener exists.

    load_balancer = ELB.new.load_balancers['my-load-balancer']
    listener = load_balancer.listeners[80] # port 80
    listener.exists?

@return [Boolean] Returns true if the load balancer has a listener

  on this port.

@api private

@return [Integer]

@return [Symbol]

@return [LoadBalancerPolicy,nil] Returns the current policy for this

  listener.  Returns nil if no load balancer policy has been
  associated with it.

@param [String,LoadBalancerPolicy] policy_or_policy_name Sets

  the policy for this listener.

@return [LoadBalancerPolicy]

@return [Symbol] Returns the protocl for this listener.

Removes the current policy from this listener. @return [nil]

@return [IAM::ServerCertificate,nil] Returns the IAM::ServerCertificate

  associated with this listener, or nil if there is none.

Sets the certificate that terminates the specified listener‘s SSL connections. The specified certificate replaces any prior certificate for this listener.

@param [String,IAM::ServerCertificate] server_certificate The ARN

  of an IAM::ServerCertificate or an IAM::ServerCertificate object.

@return [nil]

Protected Instance methods

[Validate]